New topic in General: 

Problems with HTTPSocket and LoadXML - XML Exceptions

newuser666 - Wed Apr 16, 2008 6:54 pm

<http://forums.realsoftware.com/viewtopic.php?t=21874>
                                                                                
                                                                                
Hi everyone,

I am trying to use a HTTPSocket to get a remote XML file and trying to load 
that XML file and assign it to a String to work with it. heres the sample code 
Im using where xmlDoc As xmlDocument is a window property :

Code:
Dim xml as String
Dim hs As new HTTPSocket
hs.yield = true
xml = hs.Get("http://myURL/test.xml",1)

If xml <> "" Then
  xmlDoc = new XmlDocument
  xmlDoc.LoadXml xml
End



The problem is that the loadXML method is randomly throwing XML Exceptions. It 
will work perfectly most of the time, but say 20% of the time, it throws these 
messages. The XML that is being fetched using the code is unchanged, so I am 
not sure why it does this.

Can someone please advise?
Thanks                                  
                                                                                
                                                                                
                                                                                
                                                                                
                                        



-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to