Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 09, 2012 02:59 AM by Decker Dong - MSFT
Dec 08, 2012 02:33 PM|LINK
i have one xml which i keep in database, then read it in asp.net and display its content on web page as value of any control.
i would like to know, can i keep / as value of any attribute as follows.
<step book="a/f/3" ></step>
<step book="/" ></step>
Dec 09, 2012 02:59 AM|LINK
As far as I see, I think you can do that with the help of XDocument or XmlDocument:
static void Main(string args)
// this is only a sample, please use Load method to load your xml file
// Parse will analyze an xml string
XDocument doc = XDocument.Parse("<Root><a></a></Root>");
(doc.Root.FirstNode as XElement).SetAttributeValue("attr", "a/b/c");