[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New 'gb.xml2' component


On 11/9/26 5:11 PM, Claus Dietrich wrote:

Am 08.11.26 um 19:40 schrieb Benoît Minisini:
You should read the 'libxml2' documentation, alas it is not very easy to read (more difficult than the Gambas documentation!).
I didn't find anything useful yet which helped me to get an idea about the new API.

From a quick look at the source, this is what appears to be implemented:
Special Methods:
    _free()
    _new(Data as String)

Static Methods:
    Load(Path as String, Encoding as String, Options as Integer) as XmlDocument
    FromString(Data as String [, Url as String, Encoding as String, Options as Integer]) as XmlDocument
    FromHTML(Html as String [, Url as String, Encoding as String, Options as Integer]) as XmlDocument

Properties:
    Root as XmlNode (read only)
    Encoding as String (read only)

Methods:
    Save(Path as String [, Encoding as String, Space as Boolean])
    ToString([Encoding as String, Space as Boolean]) as String

Not having read the Gambas developer documentation, I may have gotten some of that wrong. And, I quite likely missed some things.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
New 'gb.xml2' componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New 'gb.xml2' componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New 'gb.xml2' componentClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: New 'gb.xml2' componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New 'gb.xml2' componentClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: New 'gb.xml2' componentClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: New 'gb.xml2' componentClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: New 'gb.xml2' componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New 'gb.xml2' componentClaus Dietrich <claus.dietrich@xxxxxxxxxx>