Is the document completely finished downloading before you load the xml? Unless you can guarantee that, (i.e., you know the total bytes of the document you are receiving) you'll need to use a SAX parser (XMLReader class) to ensure that all the elements have arrived (XMLReader.EndDocument fires) before you use the DOM parser (XMLDocument class).

John


On Jul 1, 2006, at 12:28 PM, Chris Little wrote:

on 7/1/06 11:53 AM, Mark Walker at [EMAIL PROTECTED] wrote:

Hi All

i have a problem with the XMLDocument class.

i have a TCPSocket which downloads an xml file from the web.  In the
PageReceived event, I create, and assign the 'content' of the page
(the xml) to an XML document I create.

On reading the Language reference, I thought that doing an
xdoc.Loadxml(content)
would be enough to load the xml, and have RB parse it.  unfortunately
it doesn't seem to be the case.

Do I need to do anything after the loadxml call, before I can 'walk'
the xml tree using  xdoc.documentelement ?

It should be enough. Is the content actually valid XML (although it should be throwing an exception if it isn't)? What does your code to walk the xml
look like?

Chris


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

John Balestrieri
Tinrocket, LLC
www.tinrocket.com


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to