GXml.DomElement – GXml-0.20 – Vala Binding Reference

GXml.DomElement – GXml-0.20 Reference Manual

# DomElement

## Object Hierarchy:

## Description:

public interface DomElement : Object, DomNode, DomChildNode, DomNonDocumentTypeChildNode, DomParentNode
All known implementing classes:

- Element

- XElement

All known sub-interfaces:

- IXsdComplexType
- IXsdElement
- IXsdExtension

- IXsdSchema
- IXsdSimpleType
- MappeableElement

- MappeableElementPairKey
- MappeableElementThreeKey
- Object

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

- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data

- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer

- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref

All known members inherited from interface GXml.DomNode

- append_child
- base_uri
- child_nodes
- compare_document_position
- contains
- copy
- first_child
- has_child_nodes
- insert_before

- is_default_namespace
- is_equal_node
- last_child
- lookup_namespace_uri
- lookup_prefix
- next_sibling
- node_name
- node_type
- node_value

- normalize
- owner_document
- parent_element
- parent_node
- previous_sibling
- remove_child
- replace_child
- text_content

All known members inherited from interface GXml.DomChildNode

- remove

All known members inherited from interface GXml.DomNonDocumentTypeChildNode

- next_element_sibling

- previous_element_sibling

All known members inherited from interface GXml.DomParentNode

- child_element_count
- children
- first_element_child

- get_elements_by_property_value
- last_element_child

- query_selector
- query_selector_all