473,396 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

suggested ways to manipulate XML files in .Net?

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.
Jul 17 '06 #1
2 1170


Steve Hershoff wrote:

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.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jul 18 '06 #2
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
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.
--

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

Jul 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Anonymous | last post by:
I need to create an application that will do fairly simple text manipulation on 20,000 files in text format (html files). The files exist both on my Windows machine and on a FreeBSD server. I...
17
by: Andrae Muys | last post by:
Found myself needing serialised access to a shared generator from multiple threads. Came up with the following def serialise(gen): lock = threading.Lock() while 1: lock.acquire() try: next...
3
by: Isaac Rodriguez | last post by:
Does anyone know of a Python API to manipulate CAB files? Thanks, -- Isaac Rodriguez SWE Autodesk. ======================================== There are 10 types of people. Those who...
2
by: Pavils Jurjans | last post by:
Hello, I have a fairly complex project with server-side written in C# (.NET), and client-side heavily relying on the presence on JavaScript-compatible scripting engine. One of the features thie...
2
by: jrefactors | last post by:
I want to use javascript to manipulate XML files. The following code works in IE but it won't work in Mozilla. var xml = new ActiveXObject("Microsoft.XMLDOM"); Any way to make it work in cross...
6
by: Tim | last post by:
I need to manipulate files (rtf and wav files) on the server side. Can you show me how to do that? Thank you,
2
by: Olivier Matrot | last post by:
Hello, I'm looking for a tool that is able to manipulate aspx source files (specifically <asp:datagrid> ) out of Visual Studio. The goal is to give aspx file to a web designer in order for him...
0
by: Rvo | last post by:
Hi all, I need to manipulate (that means measure peak levels, measure length of peaks, not play-pause-rewind-etc..) ASF files. Does anybody know of any components that can be used for this...
1
by: Sam Learner | last post by:
Hello, you guys have been very helpfull in responding to questions from the newgroup community and thank everyone for your contributions. I have a Question, I am developping a software to do clean...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.