Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Help trying to Parse XML file

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 3/1/2006 7:11:00 PM

weaver.ca wrote:


> But I'm new to this and am having trouble with xml files, I can read
> the text from the first node but never seem to get further then that.

What script language are you using or do you want to use?

> How would I read each machine node?  I want the Text from each instance
> of  /Joblog/Backup/Machine within each file.

MSXML documentation is here:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_xmlprod.asp>
it has sample sections like this
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/81f3de54-3b79-46dc-8e01-73ca2d94cdb5.asp>
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/52fa0881-a2d8-4d30-a5dc-2a85ec87effe.asp>
that could help.

If /Joblog/Backup/Machine is meant to be an XPath expression then you 
can use the selectNodes method to find those element nodes and iterate 
over them.
-- 

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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent