Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7509011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:47:13+00:00 2026-05-29T22:47:13+00:00

I am comparing 2 xml files using xml diff dll. I am unable to

  • 0

I am comparing 2 xml files using xml diff dll.
I am unable to get the node name and the old value of the node like for example
file 1 :

File 1

<LastNameInfo>
    <LNameNum>1</LNameNum>
</LastNameInfo>

File 2 :

<LastNameInfo>
    <LNameNum> 5</LNameNum>
</LastNameInfo>

I even need to out put the node name in this example LnameNum and also the old value 1 can some one help??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:47:15+00:00Added an answer on May 29, 2026 at 10:47 pm

    so the way the XMLDiff ‘diffgram’ defines the differences is not based on ‘name’ but on node order, it enumerates them from the top down.

    Take a look at the MSDN for more details

    You can use the diffpatch tool to apply a diffgram to a particular XML, but also it does not mention explicitly the ‘old’ value in the diffgram. Its either a change to ‘newvalue’, or a remove node x, without specifying the contents.

    It has the ability to output a HTML view that shows the old and new side by side with color highlighting- but if you are interested in doing something like producing a file that looks like this:

    <LastNameInfo>
      <LNameNum>
        <old>1</old>
        <new>5</new>
      </LNameNum>
    </LastNameInfo>
    

    Or even just some console output like:

    Node Name: LNameNum
    Changed From: 1 To: 5
    

    You are going to need to parse the XML Diffgram yourself along with your own file and basically find out that

     <xd:node match="1">
           <xd:change match="1"/>5</xd:change>
     </xd:node>
    

    Is referring to the node named LNameNum

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a simple example working using gSoap, for VS2008. I've done
I am trying to compare 2 XML files using XMLUnit 1.2. I am using
Has anyone seen or compiled benchmarks comparing declarative (XML) versus programmatically created UI's in
When comparing an HTTP GET to an HTTP POST, what are the differences from
When comparing a tuple with a list like ... >>> [1,2,3] == (1,2,3) False
I'm using this library to hook keys and I have some problems with comparing
Shortly, I am parsing a xml file and getting user MD5 password. Now when
My XMl File <item> <title> <![CDATA[Stanford engineers build a nanoscale device for brain-inspired computing]]>
I'm using an XmlSerializer to deserialize a particular type in mscorelib.dll XmlSerializer ser =
You may know here is a page comparing the XML parsers for Iphone, http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.