i have the string, it contains xml nodes, returned from the PHP file.
It’s like
<a>1</a><b>0</b><c>4</c>..............
Now i need to find out what value each node have i.e a, b, c……
while loading this string to xmlDocument i’m getting error like “There are multiple root elements”.
any solution for this
One of the basic rules for well-formed XML that it has a single root node. With your example, you have multiple roots:
To make it well-formed you will have to make these elements a child of a single root:
An XML document that is not well-formed is not really an XML document at all and you will find that no XML parser will be able to read it!