DomElement
Object Hierarchy:
Description:
public interface DomElement : Object, DomNode, DomChildNode, DomNonDocumentTypeChildNode, DomParentNode
All known sub-interfaces:
Namespace: GXml
Package: gxml-0.20
Content:
Properties:
- public abstract DomNamedNodeMap attributes { owned get; }
- public abstract DomTokenList class_list { owned get; }
- public abstract string? class_name { owned get; set; }
- public abstract string? id { owned get; set; }
- public abstract string local_name { owned get; }
- public abstract string? namespace_uri { owned get; }
Returns default namespace's uri defined in node or first found.
- public abstract string? prefix { owned get; }
Returns default namespace's prefix defined in node or first found.
- public abstract string tag_name { owned get; }
Methods:
- public virtual InputStream create_stream () throws Error
Creates an GLib.InputStream to write a string representation in XML of GXml.Element using node's GXml.Document
- public virtual async InputStream create_stream_async (Cancellable? cancellable = null) throws Error
Creates an GLib.InputStream to write a string representation in XML of GXml.Element using node's GXml.Document
- public abstract string? get_attribute (string name)
- public abstract string? get_attribute_ns (string? @namespace, string local_name)
- public abstract DomHTMLCollection get_elements_by_class_name (string class_names)
- public abstract DomHTMLCollection get_elements_by_tag_name (string local_name)
- public abstract DomHTMLCollection get_elements_by_tag_name_ns (string? @namespace, string local_name)
- public abstract bool has_attribute (string name)
- public abstract bool has_attribute_ns (string? @namespace, string local_name)
- public virtual bool matches (string selectors) throws Error
- public virtual void read_from_file (File f, Cancellable? cancellable = null) throws Error
Parses an XML file, deserializing it over GXml.Element.
- public virtual async void read_from_file_async (File f, Cancellable? cancellable = null) throws Error
Parses asinchronically an XML file, deserializing it over GXml.Element.
- public virtual void read_from_stream (InputStream istream, Cancellable? cancellable = null) throws Error
Parses an XML over a GLib.InputStream, deserializing it over GXml.Element.
- public virtual async void read_from_stream_async (InputStream istream, Cancellable? cancellable = null) throws Error
Parses asynchronically an XML over a GLib.InputStream, deserializing it over GXml.Element.
- public virtual void read_from_string (string str, Cancellable? cancellable = null) throws Error
Parses an XML string, deserializing it over GXml.Element.
- public virtual async void read_from_string_async (string str, Cancellable? cancellable = null) throws Error
Parses an XML string, deserializing it over GXml.Element.
- public virtual void read_from_uri (string uri) throws Error
Parsing a URI file.
- public virtual async void read_from_uri_async (string uri, Cancellable? cancellable = null) throws Error
Parsing asinchronically a URI file.
- public abstract void remove_attribute (string name)
- public abstract void remove_attribute_ns (string? @namespace, string local_name)
- public abstract void set_attribute (string name, string value) throws Error
- public abstract void set_attribute_ns (string? @namespace, string name, string value) throws Error
Set an attribute value to this element. If it doesn't exists yet, it is added to the list of attributes, unless it is an namespace redefinition.
- public virtual void write_file (File f, Cancellable? cancellable = null) throws Error
Uses element's GXml.Document to write an XML to a file, serializing it.
- public virtual async void write_file_async (File f, Cancellable? cancellable = null) throws Error
Uses element's GXml.Document to write asynchronically an XML to a file, serializing it.
- public virtual void write_stream (OutputStream stream) throws Error
Uses element's GXml.Document to write an XML to a stream, serializing it.
- public virtual async void write_stream_async (OutputStream stream, Cancellable? cancellable = null) throws Error
Uses element's GXml.Document to write an XML to a stream, serializing it.
- public virtual string write_string (Cancellable? cancellable = null) throws Error
Serialize GXml.Element to a string.
- public virtual async string write_string_async (Cancellable? cancellable = null) throws Error
Serialize asinchronically GXml.Element to a string.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GXml.DomNode
All known members inherited from interface GXml.DomChildNode
All known members inherited from interface GXml.DomNonDocumentTypeChildNode
All known members inherited from interface GXml.DomParentNode