> I have a string like "<DATA attr1=100><Item id=1 value=hello /></
Attribute values need to be quoted so that snippet is not well-formed
and therefore can't be parsed successfully as XML.
> and I have an XML document such as the following:
> <!-- I need to insert the DATA tag here -->
> The document is already loaded into an XMLDOMDocument object. I would
> like to insert the XML in the string within the <Content> element. How
> do I do it using MSXML? Is there a way to create an element directly
> from its XML definition?
You need to use a second document and call loadXML on it, then you can
move or import (MSXML 5/6) the nodes to the original document.
Martin Honnen --- MVP XML