XElement To XML??

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I wanted to combine two xml in-memory data into single so I used below method :
http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/1146a068-5e11-4d59-ba86-f6eb0a838a49 http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/1146a068-5e11-4d59-ba86-f6eb0a838a49


<p style="
<p style=" XElement itemEl = XElement.Parse(item.xml);
<p style=" itemEl.Add(XElement.Parse(usercoll.xml));

<p style="
<p style=" The problem is, now I want it in XML format.

<p style="
<p style=" How can I get XML data from XElement?
<p style="
<p style=" When I wrote line
<p style=" XPathDocument myXPathDoc = new XPathDocument(itemEl.ToString());
<p style=" It gives me an error that <em style="font-size:18px; font-weight:bold Illegal characters in path.[/i] <hr class="sig https://twitter.com/#!/NaimishPandya @NaimishPandya | mailto:pandya.naimish@hotmail.com
Email | http://www.linkedin.com/in/naimishpandya LinkedIn | http://naimishpandya.wordpress.com/
My Blog

View the full article
 
Back
Top