[Gambas-user] XmlDocument.Open(filename) gives NULL

KKing kicking177 at ...626...
Tue Feb 16 16:00:09 CET 2016


I'm using Gambas 3.5.4 on Linux Mint

I want to use XmlDocument but can't seem to load an existing xml 
document file.

It errors on loads and just gives error text of "Null object"

I can open and read the same file via XmlReader, but I want to work with 
the whole document via DOM.

Is this likely to be something in the version of 3.5.4 that I'm using, 
that if I take trouble to compile newer version from source will resolve?

Or am I misunderstanding usage of the XmlDocument?


Below is a simplified version I tested with, and hit same issues.

simple test xml file:  myTest.xml
  = = = = =
<myDoc>
     <Item>1</Item>
</myDoc>
  = = = = =

tPathAndFilename = "/home/user1/test/myTest.xml"

Try xDoc.Open(tPathAndFilename)
     If Error Then
         Debug Error.Text
     Endif
  - - - - - -




More information about the User mailing list