What namespace do you need when using xdocument to read xml?
Namespace for Reading Xml?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
What namespace do you need when using xdocument to read xml?
Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 392.9K pointsPosted Jun 14, 2007, 5:32 AM EDT
Here is code snippet:
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.Load(Server.MapPath("MySource.xml"));
System.Xml.Xsl.XslTransform trans = new
System.Xml.Xsl.XslTransform();
trans.Load(Server.MapPath("MyStyle.xsl"));
Xml1.Document = doc;
Xml1.Transform = trans;
Drew Taylor66 pointsPosted Jun 14, 2007, 5:42 AM EDT
I used System.Xml / System.Xml.XPath but got a node out of range error. I am trying to get a specific node / tag in the xml and display it in a textbox.
Former memberPosted Jun 14, 2007, 6:08 AM EDT