You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Josh Brown (GENERIZE)" <jo...@generize.com> on 2000/12/03 16:06:35 UTC

About Load

I have used the following code:

		Xerces::IXMLDOMDocumentPtr
Source(__uuidof(Xerces:DOMDocument));
		Source->load("d:\\jmb\\path_test\\test.xml");
		int children = Source->GetchildNodes()->Getlength();

The test.xml file is at d:\jmb\path_test and is an XML file.
When I run the program, I get that children = 0 always, when I know that it
should be higher.
What am I doing wrong? Should I somehow access the root node first, and then
run my stuff on that? If so, how do I access the root node directly, without
having to search for it?
Thanx in advance,
	Josh Brown