Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Display all node names and values

From: BrentD@-----------.---------.---
To: NULL
Date: 9/4/2007 5:16:00 AM

Hi Martin,

Thanks for your reply.  Sorry -- I was not complaining about the XSLT 
solution -- thanks again for Neil for providing that.

My problem is I need to extract the node names and values from the XML 
document for use in a database.  I am fully aware of the XML classes in the 
asp.net framework.  My problem has been finding a piece of sample code that 
can iterate through ALL the nodes of any XML document.

If you have any sample code that does this using the XML classes of the 
asp.net framework, please let me know.

Thanks!

"Martin Honnen" wrote:

> Brent D. wrote:
> 
> > Also, I should have been a bit more clear, I am not looking for an XSLT 
> > solution to the problem, rather, I would like to know how to iterate through 
> > all nodes using the classes available in Asp.Net, ie: using the XMLDocument 
> > and other XML classes provided by the framework, ie:
> 
> The ASP.NET framework has an Xml control 
> <http://msdn2.microsoft.com/en-us/library/System.Web.UI.WebControls.Xml.aspx> 
> where you can supply the XML document and the XSLT stylesheet. Why can't 
> you use that if you are using ASP.NET?
> Additionally the .NET framework has an XSLT processor implementation, 
> System.Xml.Xsl.XslTranform in .NET 1.x, 
> System.Xml.Xsl.XslCompiledTransform in .NET 2.0 and later, so you can 
> use that with ASP.NET as well to perform an XSLT transformation as needed.
> So no need to complain about an XSLT solution because you use (ASP).NET, 
> XmlDocument is not the only class the .NET framework has for XML processing.
> 
> 
> 
> -- 
> 
> 	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