bmihura
asked on
C# xml path writer
I want to create an XML document like this:
<node1>
<node2>
<node3>some text</node3>
</node2>
</node1>
Code I've seen that does this must call CreateElement() on an XmlDocument for each node. Is there a function that you can pass the entire node path to, and the final text node will be created, like this?
XmlCreateTextNode("node1/n ode2/node3 ", "some text");
I could always write such a function from scratch, but I'll bet such a function exists which is better than what I would write.
<node1>
<node2>
<node3>some text</node3>
</node2>
</node1>
Code I've seen that does this must call CreateElement() on an XmlDocument for each node. Is there a function that you can pass the entire node path to, and the final text node will be created, like this?
XmlCreateTextNode("node1/n
I could always write such a function from scratch, but I'll bet such a function exists which is better than what I would write.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER