In .NET what does it mean if you LoadXml() into the XmlDocument object and then ParentNode and DocumentType are null?
Also, I get this as the answer to xmldoc.FirstChild.Value:
version="1.0" encoding="utf-8"
Is this right? Been a while since I have done any XML DOM stuff. The file is encoded UTF-8. Think that shouldn't be an issue. Is there a simple true/false validation method for my doc?
UPDATE:
If the NodeType is Element how do you return the "tag name"?
CURRENT THINKING:
xmldoc.ChildNodes[1].Name;
I noticed the Name property is Get only. Whats the best tool to use if you wanted to swap the root tag for something else (like 'feed' to 'container'), but wanted something a little more lightweight than XSLT, and not simple text/replace. Would still like to see a LINQ to XML example. Thanks for everyone's help. Guess its been longer than I thought since I have looked at the XML stuff in .NET.