Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2006

Tip: Looking for answers? Try searching our database.

suggested ways to manipulate XML files in .Net?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Hershoff - 17 Jul 2006 23:26 GMT
Hi everyone,

I'm going to manipulate some XML files in my next project-- crawl through
the tags, compare if file X has the same nodes as file Y, and if not, what
the differences are and who's missing what.  I'll also be comparing values
between nodes in the two files, for when both documents do have the same
named nodes.  What .Net classes should I be looking at to accomplish these
tasks?  Thanks a bunch.
Martin Honnen - 18 Jul 2006 13:25 GMT
> I'm going to manipulate some XML files in my next project-- crawl through
> the tags, compare if file X has the same nodes as file Y, and if not, what
> the differences are and who's missing what.  I'll also be comparing values
> between nodes in the two files, for when both documents do have the same
> named nodes.  What .Net classes should I be looking at to accomplish these
> tasks?  

Well there are lots of ways, Xml(Text)Reader is fast forward only pull
parsing that does not consume much resources even if you read through
big files.
XPathDocument reads the complete document into a tree structure
optimized for XPath navigation which is read only.
Then there is XmlDocument which also reads the complete document into a
tree structure but then allows manipulation of the tree and saving back.

If you want to compare XML files then the XML Diff and Patch tool
<http://msdn.microsoft.com/XML/XMLDownloads/default.aspx>
might be interesting for you.

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/

Steve Hershoff - 18 Jul 2006 15:43 GMT
Thanks, Martin.  I'll look into the XML Diff and Patch tools.

-Steve

> Well there are lots of ways, Xml(Text)Reader is fast forward only pull
> parsing that does not consume much resources even if you read through big
[quoted text clipped - 7 lines]
> <http://msdn.microsoft.com/XML/XMLDownloads/default.aspx>
> might be interesting for you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.