libxml internet problem

BlitzMax Forums/Brucey's Modules/libxml internet problem

Beaker(Posted 2010) [#1]
I'm having a problem with the libxml module. I'm running an old app that has definitely worked fine in the past (and still compiles and works fine on my mac) but can't get an internet xml file on my pc using the parseFile method.

This line returns null:
doc = TxmlDoc.parseFile(docname)

I've tried re-downloading and compiling the lib from the svn and the zip version (v1.15) from the downloads on google. All seem to have the same problem.

As I say it all works ok on the mac, but I really need to compile it again on the pc.

Any ideas appreciated!


Brucey(Posted 2010) [#2]
Well, assuming your internet is working on the PC? :-)

How are you passing the URL as a filename?
You can also try TxmlDoc.readDoc() which can take a TStream as a parameter (so you can try opening a TStream and passing that into the function).


Beaker(Posted 2010) [#3]
Thanks for the reply.

I pass the url in the form:
http://blah.co.uk/export.xml?param1=true&param2=true

I looked in the MaxIDE About option in the Help menu which revealed these versions:
Fasm 1.68
GCC 3.4.5

I'm never very sure which versions I should be using, but like I say I've had previous working versions of this compile.

I tried using readDoc:
docname = Replace(docname, "http://", "http::")
Local stream:TStream = ReadStream(docname)
doc = TxmlDoc.readDoc(stream)
CloseStream stream

..which is definitely getting the data and doesn't give me a null but now I do seem to get an Exception Violation crash further down the line, probably not related. Will investigate further.