Transform XML document
-
I have successfully transformed one xml document into another xml document which is being saved using XMLTextWriter . Now I want to transform this transformed document into another xml document, while doing this I got exception saying "Document cannot have mutilple document elements"
-
I have successfully transformed one xml document into another xml document which is being saved using XMLTextWriter . Now I want to transform this transformed document into another xml document, while doing this I got exception saying "Document cannot have mutilple document elements"
The "one-and-only" document element is the root element of the document, and, thus, contains all the other elements. You must first create a document element to enclose your transformation output.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
modified on Tuesday, March 24, 2009 10:23 AM
-
I have successfully transformed one xml document into another xml document which is being saved using XMLTextWriter . Now I want to transform this transformed document into another xml document, while doing this I got exception saying "Document cannot have mutilple document elements"
-
I think you have more than one parent nodes in an xml file i.e .. .. it should be
----------------- logiclabz
The document element is the top most "parent" node. Also, your example code is not showing.
"We make a living by what we get, we make a life by what we give." --Winston Churchill