Class

EDataServerXmlDocument

since: 3.26

Description [src]

class EDataServer.XmlDocument : GObject.Object
{
  /* No available fields */
}

Contains only private data that should be read and manipulated using the functions below.

Available since: 3.26

Hierarchy

hierarchy this EXmlDocument ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

e_xml_document_new

Creates a new EXmlDocument with root element root_element and optionally also with set default namespace ns_href.

since: 3.26

Instance methods

e_xml_document_add_attribute

Adds a new attribute to the current element. Use NULL ns_href, to use the default namespace, otherwise either previously added namespace with the same href from e_xml_document_add_namespaces() is picked, or a new namespace with generated prefix is added.

since: 3.26

e_xml_document_add_attribute_double

Adds a new attribute with a double value to the current element. Use NULL ns_href, to use the default namespace, otherwise either previously added namespace with the same href from e_xml_document_add_namespaces() is picked, or a new namespace with generated prefix is added.

since: 3.26

e_xml_document_add_attribute_int

Adds a new attribute with an integer value to the current element. Use NULL ns_href, to use the default namespace, otherwise either previously added namespace with the same href from e_xml_document_add_namespaces() is picked, or a new namespace with generated prefix is added.

since: 3.26

e_xml_document_add_attribute_time

Adds a new attribute with a time_t value in ISO 8601 format to the current element. The format is “YYYY-MM-DDTHH:MM:SSZ”. Use NULL ns_href, to use the default namespace, otherwise either previously added namespace with the same href from e_xml_document_add_namespaces() is picked, or a new namespace with generated prefix is added.

since: 3.26

e_xml_document_add_attribute_time_ical

Adds a new attribute with a time_t value in iCalendar format to the current element. The format is “YYYYMMDDTHHMMSSZ”. Use NULL ns_href, to use the default namespace, otherwise either previously added namespace with the same href from e_xml_document_add_namespaces() is picked, or a new namespace with generated prefix is added.

since: 3.32

e_xml_document_add_empty_element

Adds an empty element, which is an element with no attribute and no value.

since: 3.26

e_xml_document_add_namespaces

Adds one or more namespaces to xml, which can be referenced later by ns_href. The caller should take care that neither used ns_prefix, nor ns_href, is already used by xml.

since: 3.26

e_xml_document_end_element

This is a pair function for e_xml_document_start_element() and e_xml_document_start_text_element(), which changes current element to the parent of that element.

since: 3.26

e_xml_document_get_content

Gets content of the xml as string. The string is nul-terminated, but if out_length is also provided, then it doesn’t contain this additional nul character.

since: 3.26

e_xml_document_get_xmldoc
No description available.

since: 3.26

e_xml_document_start_element

Starts a new non-text element as a child of the current element. Each such call should be ended with corresponding e_xml_document_end_element(). Use NULL ns_href, to use the default namespace, otherwise either previously added namespace with the same href from e_xml_document_add_namespaces() is picked, or a new namespace with generated prefix is added.

since: 3.26

e_xml_document_start_text_element

Starts a new text element as a child of the current element. Each such call should be ended with corresponding e_xml_document_end_element(). Use NULL ns_href, to use the default namespace, otherwise either previously added namespace with the same href from e_xml_document_add_namespaces() is picked, or a new namespace with generated prefix is added.

since: 3.26

e_xml_document_write_base64

Writes value of length len, encoded to base64, as content of the current element.

since: 3.26

e_xml_document_write_buffer

Writes value of length len as content of the current element.

since: 3.26

e_xml_document_write_double

Writes value as content of the current element.

since: 3.26

e_xml_document_write_int

Writes value as content of the current element.

since: 3.26

e_xml_document_write_string

Writes value as content of the current element.

since: 3.26

e_xml_document_write_time

Writes value in ISO 8601 format as content of the current element. The format is “YYYY-MM-DDTHH:MM:SSZ”.

since: 3.26

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct EDataServerXmlDocumentClass {
  GObjectClass parent_class;
  gpointer reserved;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

reserved: gpointer

No description available.