Linq to XML questions

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Using Linq to XML, how can I add an XElement before or after another XElement?
Also, how can I add an XElement before a specific string that is an XML
comment ?
In addition, when adding an XElement, how can I add CRLF
to something. For instance, the following would be fine for the web, but how about a
Windows app in C#? I need the /r/n replaced by something else.
xml.Add(new XElement("SOLINES" /r/n "abc")); <hr class="sig Bill Yeager

View the full article
 
Back
Top