Last post Dec 08, 2012 10:59 PM by Decker Dong - MSFT
Dec 08, 2012 10:33 AM|rajemessage|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 08, 2012 10:59 PM|Decker Dong - MSFT|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");