T
Tony
XmlTextReader XmlRdr = new System.Xml.XmlTextReader(XmlFile);
//while moving through the xml document.
while(XmlRdr.Read())
{
//check the node type and look for the element type
if (XmlRdr.NodeType==XmlNodeType.Element)
{XMLOutput.AppendText(XmlRdr.ReadSubtree() + "\r\n");}
}
Granted I don't really know what I'm doing quite yet , but getting
the error message below doesn't make much sense to me because I am
making sure the reader is on an element node.
System.InvalidOperationException was unhandled
Message="ReadSubtree() can be called only if the reader is on an
element node."
Tony!
//while moving through the xml document.
while(XmlRdr.Read())
{
//check the node type and look for the element type
if (XmlRdr.NodeType==XmlNodeType.Element)
{XMLOutput.AppendText(XmlRdr.ReadSubtree() + "\r\n");}
}
Granted I don't really know what I'm doing quite yet , but getting
the error message below doesn't make much sense to me because I am
making sure the reader is on an element node.
System.InvalidOperationException was unhandled
Message="ReadSubtree() can be called only if the reader is on an
element node."
Tony!