Easiest way to remove duplicates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rjonam
    New Member
    • Feb 2010
    • 12

    Easiest way to remove duplicates

    What is the easiest way to remove duplicates from a XML file?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    by what means?

    Comment

    • rjonam
      New Member
      • Feb 2010
      • 12

      #3
      If the same item present in XMl file many times and while it is published, it appears the no of times it present in the file..How can the duplicates

      How the duplicates can be removed..?

      Comment

      • jkmyoung
        Recognized Expert Top Contributor
        • Mar 2006
        • 2057

        #4
        Is there any particular technology you're already familiar with? Eg PHP, Perl, sed, awk, xslt?

        When you say duplicate, do you mean
        1. the node names are the same?
        2. an attribute (id?) is the same?
        3. Values are the same?

        eg
        1.
        <thisNode>value </thisNode>
        <thisNode>other Value</thisNode>

        2.
        <someNode id="23"/>
        <otherNode id="23"/>

        3. <box>31</box>
        <table>31</table>

        Comment

        • rjonam
          New Member
          • Feb 2010
          • 12

          #5
          I meant the example 1..

          I'm not familiar with the tech which you mentioned..

          Comment

          • jkmyoung
            Recognized Expert Top Contributor
            • Mar 2006
            • 2057

            #6
            What language can you use? The solution will differ for each.
            Is there a small truncated code sample you can give us?

            eg. File A, File B, expected result.

            Comment

            Working...