Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. comparing two XML files

comparing two XML files

Scheduled Pinned Locked Moved XML / XSL
csharpquestionasp-netdatabasexml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salon
    wrote on last edited by
    #1

    I have two XMls having same node and different data(innertext) I want to compare these two xmls and if there is any change then save the new one into the database and if both are same then do not save the data How can I compare these XML data? say I have two XMLs

    string xml1= originalDataXML;
    string xml2= editedDataXML;

    How can I compare these two in C# and ASP.NET 2.0?

    L 1 Reply Last reply
    0
    • S salon

      I have two XMls having same node and different data(innertext) I want to compare these two xmls and if there is any change then save the new one into the database and if both are same then do not save the data How can I compare these XML data? say I have two XMLs

      string xml1= originalDataXML;
      string xml2= editedDataXML;

      How can I compare these two in C# and ASP.NET 2.0?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      You don't know how to compare two strings? How about String.Compare[^] :rolleyes:

      led mike

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups