Groups | Blog | Home
all groups > dotnet xml > january 2005 >

dotnet xml : Conversion from XMLText to XMLElement


Anirudh
1/26/2005 11:32:09 PM
Hi,
i wanted to know if there is any way to convert an object to
XMlText to XMLElement. Thanks in advance.
Bjoern Hoehrmann
1/27/2005 2:40:55 PM
* Anirudh wrote in microsoft.public.dotnet.xml:
[quoted text, click to view]

You can create a XmlElement and append the XmlText as child node to the
new element. You cannot "convert" XmlText to XmlElement as constructing
an XmlElement depends on information that the XmlText object does not
have (e.g., element name, element namespace).
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
Anirudh
1/27/2005 10:13:23 PM
Thanks so much for the help, Bjoern.
AddThis Social Bookmark Button