Help needed in removing the duplicate nodes in an xml file

Hi Friends,
I need some help in removing the duplicates from a xml file using the Excel Spreadsheet. The xml Im using does not have any schema.
Can some one please let me know the steps.
Thanks a lot.

Hi,
I got the answer.
Go to the developers Tab and click on export.
Select the column where we want to delete the duplicates and click on Remove Duplicates from Data Tab.
OR go to Home Tab> Conditional Formatting> High light Cell Rules> Duplicate Values. It will highlight all the duplicate values and then remove them manually.
Thanks.

Similar Messages

  • Help needed in accessing the url from which a swf file has been loaded

    Hi All,
    Can anyone help me out in finding the url of the swf file
    from which it has been loaded? The purpose of the url is, I am
    loading some flv files using relative path. I just want to achieve
    the same by appending the relative path to the parent swf url from
    where the parent was loaded.
    I am a newbie to AS3, So please don t mind if this is a silly
    question.
    Can anyone help me on this.
    Thanks in advance,
    Prabakaran Srinivasan.

    Hi,
    Thanks for the reply. I think the option you gave is only
    applicable when the AS3 class comes in the DisplayObject hierarchy.
    I want this information in an AS3 class which does not extend any
    of the Sprite or its super class hierarchy. Can you let me know the
    possibility of fetching the value from such a class which i
    specified???
    Thanks,
    Prabakaran Srinivasan.

  • Read two CSV files and remove the duplicate values within them.

    Hi,
    I want to read two CSV files(which contains more than 100 rows and 100 columns) and remove the duplicate values within that two files and merge all the unique values and display it as a single file.
    Can anyone help me out.
    Thanks in advance.

    kirthi wrote:
    Can you help me....Yeah, I've just finished... Here's a skeleton of my solution.
    The first thing I think you should do is write a line-parser which splits your input data up into fields, and test it.
    Then fill out the below parse method, and test it with that debugPrint method.
    Then go to work on the print method.
    I can help a bit along the way, but if you want to do this then you have to do it yourself. I'm not going to do it for you.
    Cheers. Keith.
    package forums.kirthi;
    import java.util.*;
    import java.io.PrintStream;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import krc.utilz.io.ParseException;
    import krc.utilz.io.Filez.LineParser;
    import krc.utilz.io.Filez.CsvLineParser;
    public class DistinctColumnValuesFromCsvFiles
      public static void main(String[] args) {
        if (args.length==0) args = new String[] {"input1.csv", "input2.csv"};
        try {
          // data is a Map of ColumnNames to Sets-Of-Values
          Map<String,Set<String>> data = new HashMap<String,Set<String>>();
          // add the contents of each file to the data
          for ( String filename : args ) {
            data.putAll(parse(filename));
          // print the data to output.csv
          print(data);
        } catch (Exception e) {
          e.printStackTrace();
      private static Map<String,Set<String>> parse(String filename) throws IOException, ParseException {
        BufferedReader reader = null;
        try {
          reader = new BufferedReader(new FileReader(filename));
          CsvLineParser.squeeze = true; // field.trim().replaceAll("\\s+"," ")
          LineParser<String[]> parser = new CsvLineParser();
          int lineNumber = 1;
          // 1. read the column names (first line of file) into a List
          // 2. read the column values (subsequent lines of file) into a List of Set's of String's
          // 3. build a Map of columnName --> columnValues and return it
        } finally {
          if(reader!=null)reader.close();
      private static void debugPrint(Map<String,Set<String>> data) {
        for ( Map.Entry<String,Set<String>> entry : data.entrySet() ) {
          System.out.println("DEBUG: "+entry.getKey()+" "+Arrays.toString(entry.getValue().toArray(new String[0])));
      private static void print(Map<String,Set<String>> data) {
        // 1. get the column names from the table.
        // 2. create a List of List's of String's called matrix; logically [COL][ROW]
        // 3. print the column names and add the List<String> for this col to the matrix
        // 4. print the matrix by inerating columns and then rows
    }

  • I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

    I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

        Jennymbell, never fear help is here!
    Have you tried contacting your IT department for assistance? You can visit http://bit.ly/QECbGh for steps on how to enterprise activation.
    Keep me posted if you need further assistance.
    John B
    Follow us on Twitter @VZWSupport

  • Do I need to remove the application?

    I am working on iPlanet 6.0SP4.Do i need to remove the old application when I redeploy the new one. Because there is also an option called "override" when doing the deployment, what that mean?
    If I didn't remove the application, and redeploy with override option, is it possible that two same classes will be stored in the ldap server with different id

    Hi,
    See when you deploy any ear application it first copy it in "<iAS-install-dir>/ias/JAR" dir and extract all the war/jar modules in it. And after it picks the modules from here and explode in respective directory under "<iAS-install-dir>/ias/APPS or .../APPS/modules". When you say Override modules, it replaces all the old modules having the same name with the new one and then explode them.
    Moreover when you deploy any module it will make entries in LDAP under "Application server/6.0/J2EE-Modules/<war/jar-module-name>" and for each Servlet/JSP/EJB under "Application server/ClassDef/<GUID>".
    So when you redeploy same application again and you don't change the module names then it will overwrite this registry information as the module names and GUID is same (in this case you have to restart iAS). But if you reassemble application using deploytool, then it will create new GUIDs for each components in your app and the second entry will be change in this case.
    Now when ever plugin will send the request for the new app it will read GUID from the "J2EE-Modules/<war/jar-module-name>" node and will send it to the KXS and the KXS will see what class to load after looking at "ClassDef/<GUID>" node.
    If the modules have the same name as original Application, then the old GUID entries in registry are of no use and will make iAS slow only as it reads the whole registry while starting.
    Please feel free to ask further questions.
    Sanjeev,
    Developer Support, Sun ONE Application Server-India.

  • Insert data into table 1 but remove the duplicate data

    hello friends,
    i m trying to insert data into table tab0 using hints,
    query is like this..
    INSERT INTO /*+ APPEND PARALLEL(tab0) */ tab NOLOGGING
    (select /*+ parallel(tab1)*/
    colu1,col2
    from tab1 a
    where a.rowid =(select max (b.rowid) from tab2 b))
    but this query takes too much time around 5 hrs...
    bz data almost 40-50 lacs.
    i m using
    a.rowid =(select max (b.rowid) from tab2 b))....
    this is for remove the duplicate data..
    but it takes too much time..
    so please can u suggest me any ohter option to remove the duplicate data so it
    resolved the optimization problem.
    thanks in advance.

    In the code you posted, you're inserting two columns into the destination table. Are you saying that you are allowed to have duplicates in those two columns but you need to filter out duplicates based on additional columns that are not being inserted?
    If you've traced the session, please post your tkprof results.
    What does "table makes bulky" mean? You understand that the APPEND hint is forcing the insert to happen above the high water mark of the table, right? And you understand that this prevents the insert from reusing space that has been freed up because of deleted in the table? And that this can substantially increase the cost of full scans on the table. Did you benchmark the INSERT without the APPEND hint?
    Justin

  • If I'm selling an iPhone 3G, do I need to remove the SIM card?

    I'm putting my old iPhone 3G on ebay.  Other than resetting and wiping it clean, do I need to remove the SIM card as well?  I haven't used that phone in years and there is nothing on there I need.  I'm just concerned that the new owner would get my personal information.
    Any help would be appreciated.  Thanks!

    Must people would sell a phone without a simcard

  • Is it true? Do I need to remove the battery?

    Another post mentions the need to remove the battery when the laptop is on AC power  I hadn't heard this before.  Should I be removing the battery when I have it plugged in?  (Which is most of the time)

    Hi
        When computer is connected to wall outlet it will charge the battery until 100%. Is it harmful to battery if it is kept at 100% charged for     long time.
    This is now becoming an urban myth   Once upon a time it might have some basis in fact however with lithium-ion batteries it doesn't matter.  For a start, they are not constantly charged, as this would cause an explosion, so they charge to full and then the charging stops.
        Some articles state it is best to keep battery at 40-50% when it is not to be used for long time. How to achieve when it is always     attached to the computer?
    That's only required for long term storage when the battery isn't being used to help prevent it aging.
    Lithium-ion batteries whether being used or not slowly degrade from the very first day they leave the factory, you might as well have it in the laptop even if you use the mains 99% of the time to get some benefit of an un-interruptible power supply rather than leave it in the box where it will age anyway.
    Regards
    Phil

  • How to remove the duplicate Columns in Multiple Rows?

    Hi,
    I want to remove the duplicate columns in a Multiple Rows.
    For example:
    Now i'm getting the output like this
    S_NO Order_number Assy_item Assy_Desp Item_Number
    1     S3123 12345 TEST     *1245*
    2     S3123 12345 TEST     *1256*
    3     S3123 12345 TEST     *1289*
    4     S3123 12345 TEST     *1223*
    5     S4123 42345 SAMPLE *4568*
    6     S4123 42345 SAMPLE *5656*
    7     S4123 42345 SAMPLE *4558*
    the Original output should be like this
    S_NO Order_number Assy_item Assy_Desp Item_Number
    1     S3123 12345 TEST     *1245*
    2                         *1256*
    3                         *1289*
    4                         *1223*
    5     S4123 42345 SAMPLE *4568*
    6                         *5656*
    7                         *4558*
    note: Alignment Problem all the Bold Numbers are Item Number(Last Column)*
    i'm using XML and RTF template.
    RTF Template is a Basic Table like Structure
    i pasted the XML code below
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="items" version="1.0">
    <parameters>
    <parameter name="P_DATE" dataType="date"/>
    <parameter name="P_DEPT_NO" dataType="varchar2"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="ROW1">
    <![CDATA[
    SELECT
    SUBSTR(IMGR.ORDER_NUMBER,3,2) MACHINE_NO
    ,IMGR.ORDER_NUMBER
    ,IMGR.ASSY_ITEM_NUMBER
    ,IMGR.ASSEMBLY_DESCRIPTION
    ,IMGR.ITEM_NUMBER
    ,IMGR.ITEM_DESCRIPTION
    ,SUBSTR(IMGR.ORDER_NUMBER,1,2) DEPT_NO
    ,IMGR.PLAN_DESCRIPTION
    FROM XXI.IGL_MRP_GROSS_REQUIREMENTS IMGR
    WHERE IMGR.DEMAND_TYPE IN ('Discrete job','Non-standard job')
    AND IMGR.PLAN_DESCRIPTION ='MRP-PRODUCTION'
    AND IMGR.DEMAND_DATE <= :P_DATE
    AND SUBSTR(IMGR.ORDER_NUMBER,1,2) IN (&P_DEPT_NO)
    ORDER BY
    DEPT_NO
         ,MACHINE_NO
    ,IMGR.ASSEMBLY_DESCRIPTION
    ,IMGR.ASSY_ITEM_NUMBER
    ,IMGR.ORDER_NUMBER
    ,IMGR.ITEM_NUMBER
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_IGLOO_QA_FPI" source="ROW1">
    <element name="MACHINE_NO" value="MACHINE_NO"/>
    <element name="ORDER_NUMBER" value="ORDER_NUMBER"/>
    <element name="ASSY_ITEM_NUMBER" value="ASSY_ITEM_NUMBER"/>
    <element name="ASSEMBLY_DESCRIPTION" value="ASSEMBLY_DESCRIPTION"/>
    <element name="ITEM_NUMBER" value="ITEM_NUMBER"/>
    <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION"/>
    <element name="DEPT_NO" value="DEPT_NO"/>
    <element name="PLAN_DESCRIPTION" value="PLAN_DESCRIPTION"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Please Share your ideas.
    Thank
    Aswath

    hi Ananth,
    i tried the logic but its also not printing the First Line.
    Syntax:
    <?if:ORDER_NUMBER!= ORDER_NUMBER?><?ORDER_NUMBER?><?end if?>
    I think this condition works fine if it is start from second line of the row.
    Output:
    S_NO Order_number Assy_item Assy_Desp Item_Number
    1     12345 TEST     1245
    2     12345 TEST     1256
    No Order_number displayed.
    i hope you got my point. Please help me to get through it.
    Thanks
    Aswath

  • Help needed to optimize the query

    Help needed to optimize the query:
    The requirement is to select the record with max eff_date from HIST_TBL and that max eff_date should be > = '01-Jan-2007'.
    This is having high cost and taking around 15mins to execute.
    Can anyone help to fine-tune this??
       SELECT c.H_SEC,
                    c.S_PAID,
                    c.H_PAID,
                    table_c.EFF_DATE
       FROM    MTCH_TBL c
                    LEFT OUTER JOIN
                       (SELECT b.SEC_ALIAS,
                               b.EFF_DATE,
                               b.INSTANCE
                          FROM HIST_TBL b
                         WHERE b.EFF_DATE =
                                  (SELECT MAX (b2.EFF_DATE)
                                     FROM HIST_TBL b2
                                    WHERE b.SEC_ALIAS = b2.SEC_ALIAS
                                          AND b.INSTANCE =
                                                 b2.INSTANCE
                                          AND b2.EFF_DATE >= '01-Jan-2007')
                               OR b.EFF_DATE IS NULL) table_c
                    ON  table_c.SEC_ALIAS=c.H_SEC
                       AND table_c.INSTANCE = 100;

    To start with, I would avoid scanning HIST_TBL twice.
    Try this
    select c.h_sec
         , c.s_paid
         , c.h_paid
         , table_c.eff_date
      from mtch_tbl c
      left
      join (
              select sec_alias
                   , eff_date
                   , instance
                from (
                        select sec_alias
                             , eff_date
                             , instance
                             , max(eff_date) over(partition by sec_alias, instance) max_eff_date
                          from hist_tbl b
                         where eff_date >= to_date('01-jan-2007', 'dd-mon-yyyy')
                            or eff_date is null
               where eff_date = max_eff_date
                  or eff_date is null
           ) table_c
        on table_c.sec_alias = c.h_sec
       and table_c.instance  = 100;

  • I will give my laptop to someone else, how do I unlink my apple id? Do I need to remove the apps I downloaded with my id?

    I will give my laptop to someone else, how do I unlink my apple id? Is it just the app store unlink? Do I need to remove the apps I downloaded with my id? Will they get removed when I unlink my apple id?
    Are there any other procedures I need to take into account?
    Thanks

    You need to remove all software that you acquired from the Mac App Store, including newer versions of OS X. These are all registered to you and encoded with your Apple ID in the licensed copy. You cannot legally pass any of the software to the new owner, which is why Apple states to erase the Mac and return it to the version of OS X that shipped from the factory on the Mac. You must also remove any older Apple software that you installed by DVD or pass the DVD to the new owner with the Mac.

  • How do you remove a device off of an Apple ID? I have an I pod and an I phone hooked up to the same account need to remove the I pod and start up his own apple account.

    I have an iPod and iPhone connected to my apple account. I need to remove the iPod as it receives all my text messages. I want to sign him up with his own account and not use mine. 

    Yes, that erases everything from the iPod.
    He can redownload his purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • My mac book pro has duplicate photos in my photo library how do I remove the duplicate photos?

    My mac book pro has duplicate photos in my photo library - how do I remove the duplicate photos?

    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates
    via Old Toad reply in this thread: https://discussions.apple.com/thread/3122008

  • Remove the duplicate value

    hi,
    i want to print distinct value
    example data is given below :
    Jv.No hl.no col1 col2 col3 col4 col5
    1 a12 xx yy zz 11 21
    b23 xx yy zz 11 21
    actuallly i m not printig the hl.no in his report , for u r reference i will show to u
    col1 to col 5 values printing based on the serial
    jval , jserial two columns
    i am writing the code in formula column
    if jserial=1 then
    print jval ( for that serial wat value is stored in the table that should return)
    like upto serial 5 should print
    col1 to col5 all the values are same only it should print distinct value
    like this
    Jv.No col1 col2 col3 col4 col5
    1 xx yy zz 11 21
    otherwise any one value is varrying as usaualawahtever is there that only print
    Jv.No col1 col2 col3 col4 col5
    1 xx yy zz 11 21
    xx yy zz 154 21
    need o/p like this :
    Jv.No col1 col2 col3 col4 col5
    1 xx yy zz 11 21
    xx yy zz 154 21

    hi,
    job no mblno carrier vsl voy lport dport
    111 2000 misc hanjin 12E sl UK
    misc hanjin 12E sl UK
    job no & mbol no is one group
    remainings values another group.
    carrier , vsl , voy , lport,dport these values fetches from the column of JOB_DESC
    data's strored in the table like this:
    jobparent Job desc jobserial
    1 misc 1
    1 hanjin 2
    1 12E 3
    1 sl 4
    1 UK 5
    2 misc 1
    2 hanjin 2
    2 12E 3
    2 sl 4
    2 UK 5
    i am writing the formula column in the datamodel of second group.
    if jobserial = 1 then print the value of Misc in carrier , job_serial=2 then print the value of Hanjin into vsl column.
    i need to avoid the duplicate value :
    job no mblno carrier vsl voy lport dport
    111 2000 misc hanjin 12E sl UK
    misc hanjin 12E sl UK -- This line not required
    suppose carrier,voy or any one value is different then i need to print all the data
    job no mblno carrier vsl voy lport dport
    111 2000 misc hanjin 12E sl UK
    ABCc hanjin 34D sl UK

  • If I am updating an app do I need to remove the old one first?

    IIf I am updating an app on my IPad, do I need to remove the old one first eg books or Linkedin?

    NO, the update is applied to the existing app. No need to delete the old one.

Maybe you are looking for

  • How to use many conditions in query

    Hi all, i have a situation,must prepare a report to find availability of it devices.they are given the specific ip of devices. my query SELECT   Resultdate, [SERVICE]  ,[SERVICE TYPE] ,[IP] , DailyAvailability   FROM [Orion].[dbo].[DepartmentNodesNew

  • Flickr error

    Has anyone else seen the following error message: There was a problem connecting to Flickr The operation couldn't be completed. (OSStatus error -1.) When this happens, I have to force quit Aperture. Is there a fix?

  • Recording records from stero using gb

    i was able to record the record succesfully from my stereo to my computer but i'm having trouble breaking down the album into multiple tracks. Right now when i put it into my itunes it shows as one 30 minute track instead of 13. any advice would be g

  • I bought a whole album of music a while back and it's now missing from my iPad and randomly disappeared i can't find it anywhere!-Help?

    I cant find the music and it cost $17.00 and i don't want to have spent that money and not have any music to listen to Help anyone?

  • Dreamweaver or Flash Catalyst ???

    I have almost finished designing my website on Photoshop. My design  looks similar to www.psyop.tv, with main menu on the left. Now I am  confused between Flash Catalyst and Dreamweaver, which one should I pick  to move ahead with the development. I