[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New 'gb.xml2' component
[Thread Prev] | [Thread Next]
- Subject: Re: New 'gb.xml2' component
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Sun, 15 Nov 2026 12:10:39 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 11/14/26 4:40 PM, Karl Reinl wrote:
Am Sonntag, dem 08.11.2026 um 09:29 +0100 schrieb Benoît Minisini: 1) The 'XmlDocument' class. It loads the document in memory entirely (from a file or a string), and creates a tree of 'XmlNode' and 'XmlAttribute' objects. The 'XmlNode' should be your 'XmlElement'.Salut Benoît, you use XmlWriter.StartElement, XmlWriter.EndElement and XmlWriter.AddElement; whenever XML is written, the term ‘elements’ also crops up – ElementTree, for example..An XML element is the basic building block of an XML document and serves to structure and describe data. It encompasses everything from the start tag to the end tag (including these) and may contain text, attributes, other elements or a mixture of these.
Actually, for those who may not know, a node is the most basic building block of the Document Object Model. A node may or may not be an element, but an element must be a node. An element has start and end tags and includes everything in between those.
But, I agree, a class that parses XML documents should distinguish between nodes that are elements and those that are not.
<< And gambas3 with xml2 shouldn’t have any Element?
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| New 'gb.xml2' component | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: New 'gb.xml2' component | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: New 'gb.xml2' component | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: New 'gb.xml2' component | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: New 'gb.xml2' component | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: New 'gb.xml2' component | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: New 'gb.xml2' component | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: New 'gb.xml2' component | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: New 'gb.xml2' component | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: New 'gb.xml2' component | Karl Reinl <karl.reinl@xxxxxxxxxx> |