I am using .NET Framework 2 and I am unable to use LINQ to XML. What would be the best way to execute the equivalent of a SQL SELECT that returns multiple columns from a XML file loaded into a XmlDocument object?
-
Or, consider using XPath: codeproject.com/Articles/9494/…McGarnagle– McGarnagle2012-09-14 16:00:23 +00:00Commented Sep 14, 2012 at 16:00
-
XPath would be my second choice if Linq was unavailable. support.microsoft.com/kb/308333D Stanley– D Stanley2012-09-14 16:01:30 +00:00Commented Sep 14, 2012 at 16:01
-
Or, depending on the format of the XML, use XSD.EXE (msdn.microsoft.com/en-us/library/x6c1kb0s(v=vs.80).aspx) to generate a Schema, use XSD.EXE again to generate classes from the schema, and De-serialize the XML into a collection of those classes.D Stanley– D Stanley2012-09-14 16:03:41 +00:00Commented Sep 14, 2012 at 16:03
Add a comment
|