Hi,
I have an xml file of the below format. <!-some comment generated.." --> <Node1>data</Node1> How do I detect if the file has a root node or not? I mean how do I make the difference between the below xml file and the above xml file. <!-some comment generated.." --> <RootNode> <Node1>data</Node1> </RootNode> I need to know it before parsing the whole file, as I need to avoid the root node when I load the xml file. So if the file is in the first format then I get wrong results.. regards, Jayashree
_______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
