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

Re: New 'gb.xml2' component



Am 07.11.26 um 10:29 schrieb Claus Dietrich:
Am 07.11.26 um 09:38 schrieb Benoît Minisini:
Le 06/11/2026 à 20:18, Claus Dietrich a écrit :
Am 06.11.26 um 17:07 schrieb Benoît Minisini:
I think people can start to use it to test it, report problems, questions and suggest features.

Regards,

Hi Benoît

My test app is about scraping data within a HtmlDocument class object. So its using gb.xml.html which inherits gb.xml. Are we going to have a gb.xml2.html as well?

Best regards

Claus

I don't know, the new component API is not compatible with the old ones.

What do you need in this 'gb.xml.html' component that you can't do with 'gb.xml' ?

There is a 'FromHTML()' method in the 'XmlDocument' class. But this class can only read XML data, it cannot modify it at the moment.

Regards,

--
Benoît Minisini

I am referring to bug report #3047

https://gambaswiki.org/bugtracker/edit?object=BUG.3047&from=aHR0cHM6Ly9nYW1iYXN3aWtpLm9yZy9idWd0cmFja2VyL21haW4.dGFiPTEmdXBkYXRlPS5tZW51JnNjcm9sbD0w

and the demo project provided by Lee. Its about faulty reading of xml-elements in a HtmlDocument class object.

Best regards

Claus

I took a project published long time ago in the Gambas-Buch (https://gambas-buch.de/doku.php?id=k27:k27.1:start&s[]=gb&s[]=xml)

Download link: https://gambas-buch.de/lib/exe/fetch.php?media=k27:k27.1:xmldom.read.addresses.tar.gz

and found that nothing works.

It seems that gb.xml2 is pretty different and can't be used easily as a replacement for gb.xml. Methods have partially changed and essential classes like XMLElement are not available any longer. I do not see myself in a position to rewrite the project and test the new component without further documentation or information.

Best regards

Claus

Follow-Ups:
Re: New 'gb.xml2' componentBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: New 'gb.xml2' componentClaus Dietrich <claus.dietrich@xxxxxxxxxx>
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>