Element
Object Hierarchy:
Description:
A DOM4 implementation of DomElement, for one-step-parsing.
This object avoids pre and post XML parsing, by using a one step parsing to translate text XML tree to an GObject based tree.
A GXml Object Model (GOM) implementation of GXml.Element. It can be used transparently as
DomElement in a XML tree.
It also allows delayed parsing, so you can read large documents by parsing just a XML element node and its attributes but not its
children; save its children as a text, for a post-on-step-parsing.
Content:
Classes:
- Attributes - Holds attributes in current node,
using attribute's name as key and it's value as value. Appends namespace prefix to attribute's name as key if is a namespaced attribute.
Properties:
Creation methods:
Methods:
- public void initialize (string local_name)
Convenient function to initialize, at construction time, a
GXml.Element using given local name. If
GXml.Element.initialize_with_namespace has been called in any
base class, this method just change element node's name and keeps previous namespace and prefix.
- public void initialize_document (DomDocument doc, string local_name)
Convenient function to initialize, at construction time, a
GXml.Element using given local name and document.
- public void initialize_document_with_namespace (DomDocument doc, string? namespace_uri, string? prefix, string local_name)
Convenient function to initialize, at construction time, a
GXml.Element using given local name, document and namespace.
- public void initialize_with_namespace (string? namespace_uri, string? prefix, string local_name)
Convenient function to initialize, at construction time, a
GXml.Element using given local name and namespace.
- public string? lookup_namespace_uri (string? prefix)
- public string? lookup_prefix (string? nspace)
- public void parse_buffer () throws Error
- public async void parse_buffer_async () throws Error
- public uint parse_pending ()
Monitor multi-threading parsing
- public void read_unparsed () throws Error
Parse all children, adding them to current node, stored in
unparsed. Once it finish, sets
unparsed to null.
Fields:
Inherited Members:
All known members inherited from class GXml.Node
All known members inherited from class GLib.Object
All known members inherited from interface GXml.DomChildNode
All known members inherited from interface
GXml.DomNonDocumentTypeChildNode
All known members inherited from interface GXml.DomParentNode
All known members inherited from interface GXml.DomElement
All known members inherited from interface GXml.Object
All known members inherited from interface GXml.DomEventTarget
All known members inherited from interface GXml.DomNode