XmlDocument
Object Hierarchy:
Description:
[ CCode ( type_id = "e_xml_document_get_type ()" ) ]
[ Version ( since = "3.26" ) ]
public class XmlDocument : Object
[ Version ( since = "3.26" ) ]
public class XmlDocument : Object
Contains only private data that should be read and manipulated using the functions below.
Namespace: E
Package: libedataserver-1.2
Content:
Creation methods:
- public XmlDocument (string? ns_href, string root_element)
Creates a new XmlDocument with root element
root_element
and optionally also with set default namespacens_href
.
Methods:
- public void add_attribute (string? ns_href, string name, string value)
Adds a new attribute to the current element.
- public void add_attribute_double (string? ns_href, string name, double value)
Adds a new attribute with a double value to the current element.
- public void add_attribute_int (string? ns_href, string name, int64 value)
Adds a new attribute with an integer value to the current element.
- public void add_attribute_time (string? ns_href, string name, long value)
Adds a new attribute with a time_t value in ISO 8601 format to the current element.
- public void add_attribute_time_ical (string? ns_href, string name, long value)
Adds a new attribute with a time_t value in iCalendar format to the current element.
- public void add_empty_element (string? ns_href, string name)
Adds an empty element, which is an element with no attribute and no value.
- public void end_element ()
This is a pair function for start_element and start_text_element, which changes current element to the parent of that element.
- public string get_content (out size_t out_length)
Gets content of the this as string.
- public unowned Doc get_xmldoc ()
- public void start_element (string? ns_href, string name)
Starts a new non-text element as a child of the current element.
- public void start_text_element (string? ns_href, string name)
Starts a new text element as a child of the current element.
- public void write_base64 (string value, int len)
Writes
value
of lengthlen
, encoded to base64, as content of the current element. - public void write_buffer (string value, int len)
Writes
value
of lengthlen
as content of the current element. - public void write_double (double value)
Writes
value
as content of the current element. - public void write_int (int64 value)
Writes
value
as content of the current element. - public void write_string (string value)
Writes
value
as content of the current element. - public void write_time (long value)
Writes
value
in ISO 8601 format as content of the current element.
Inherited Members:
All known members inherited from class GLib.Object