A unit of XML syntax, either an XML element or text.

Functions | |
| LIBLAX_EXTERN int | XMLToken_addAttr (XMLToken_t *token, const char *name, const char *value) |
| Adds an attribute with the given local name to the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_addAttrWithNS (XMLToken_t *token, const char *name, const char *value, const char *namespaceURI, const char *prefix) |
| Adds an attribute with a prefix and namespace URI to the attribute set in this XMLToken optionally Nothing will be done if this XMLToken is not a start element. | |
| LIBLAX_EXTERN int | XMLToken_addAttrWithTriple (XMLToken_t *token, const XMLTriple_t *triple, const char *value) |
| Adds an attribute with the given XMLTriple/value pair to the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_addNamespace (XMLToken_t *token, const char *uri, const char *prefix) |
| Appends an XML namespace prefix and URI pair to this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_append (XMLToken_t *token, const char *text) |
| Appends characters to this XML text content. | |
| LIBLAX_EXTERN int | XMLToken_clearAttributes (XMLToken_t *token) |
| Clears (deletes) all attributes in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_clearNamespaces (XMLToken_t *token) |
| Clears (deletes) all XML namespace declarations in the XMLNamespaces of this XMLNode. | |
| LIBLAX_EXTERN XMLToken_t * | XMLToken_clone (const XMLToken_t *t) |
| Creates a deep copy of the given XMLToken_t structure. | |
| LIBLAX_EXTERN XMLToken_t * | XMLToken_create (void) |
| Creates a new empty XMLToken_t structure and returns a pointer to it. | |
| LIBLAX_EXTERN XMLToken_t * | XMLToken_createWithText (const char *text) |
| Creates a text XMLToken_t structure. | |
| LIBLAX_EXTERN XMLToken_t * | XMLToken_createWithTriple (const XMLTriple_t *triple) |
| Creates a new end element XMLToken_t structure with XMLTriple_t structure set and returns a pointer to it. | |
| LIBLAX_EXTERN XMLToken_t * | XMLToken_createWithTripleAttr (const XMLTriple_t *triple, const XMLAttributes_t *attr) |
| Creates a new start element XMLToken_t structure with XMLTriple_t and XMLAttributes_t structures set and returns a pointer to it. | |
| LIBLAX_EXTERN XMLToken_t * | XMLToken_createWithTripleAttrNS (const XMLTriple_t *triple, const XMLAttributes_t *attr, const XMLNamespaces_t *ns) |
| Creates a new start element XMLToken_t structure with XMLTriple_t, XMLAttributes_t and XMLNamespaces_t structures set and returns a pointer to it. | |
| LIBLAX_EXTERN void | XMLToken_free (XMLToken_t *token) |
| Destroys this XMLToken_t structure. | |
| LIBLAX_EXTERN const XMLAttributes_t * | XMLToken_getAttributes (const XMLToken_t *token) |
| Returns the attributes of this element. | |
| LIBLAX_EXTERN int | XMLToken_getAttributesLength (const XMLToken_t *token) |
| Return the number of attributes in the attributes set. | |
| LIBLAX_EXTERN int | XMLToken_getAttrIndex (const XMLToken_t *token, const char *name, const char *uri) |
| Return the index of an attribute with the given local name and namespace URI. | |
| LIBLAX_EXTERN int | XMLToken_getAttrIndexByTriple (const XMLToken_t *token, const XMLTriple_t *triple) |
| Return the index of an attribute with the given XMLTriple. | |
| LIBLAX_EXTERN char * | XMLToken_getAttrName (const XMLToken_t *token, int index) |
| Return the local name of an attribute in the attributes set in this XMLToken (by position). | |
| LIBLAX_EXTERN char * | XMLToken_getAttrPrefix (const XMLToken_t *token, int index) |
| Return the prefix of an attribute in the attribute set in this XMLToken (by position). | |
| LIBLAX_EXTERN char * | XMLToken_getAttrPrefixedName (const XMLToken_t *token, int index) |
| Return the prefixed name of an attribute in the attribute set in this XMLToken (by position). | |
| LIBLAX_EXTERN char * | XMLToken_getAttrURI (const XMLToken_t *token, int index) |
| Return the namespace URI of an attribute in the attribute set in this XMLToken (by position). | |
| LIBLAX_EXTERN char * | XMLToken_getAttrValue (const XMLToken_t *token, int index) |
| Return the value of an attribute in the attribute set in this XMLToken (by position). | |
| LIBLAX_EXTERN char * | XMLToken_getAttrValueByName (const XMLToken_t *token, const char *name) |
| Return a value of an attribute with the given local name (without namespace URI). | |
| LIBLAX_EXTERN char * | XMLToken_getAttrValueByNS (const XMLToken_t *token, const char *name, const char *uri) |
| Return a value of an attribute with the given local name and namespace URI. | |
| LIBLAX_EXTERN char * | XMLToken_getAttrValueByTriple (const XMLToken_t *token, const XMLTriple_t *triple) |
| Return a value of an attribute with the given XMLTriple. | |
| LIBLAX_EXTERN const char * | XMLToken_getCharacters (const XMLToken_t *token) |
| Returns the text of this element. | |
| LIBLAX_EXTERN unsigned int | XMLToken_getColumn (const XMLToken_t *token) |
| Returns the column at which this XMLToken_t structure occurred. | |
| LIBLAX_EXTERN unsigned int | XMLToken_getLine (const XMLToken_t *token) |
| Returns the line at which this XMLToken_t structure occurred. | |
| LIBLAX_EXTERN const char * | XMLToken_getName (const XMLToken_t *token) |
| Returns the (unqualified) name of this XML element. | |
| LIBLAX_EXTERN int | XMLToken_getNamespaceIndex (const XMLToken_t *token, const char *uri) |
| Look up the index of an XML namespace declaration by URI. | |
| LIBLAX_EXTERN int | XMLToken_getNamespaceIndexByPrefix (const XMLToken_t *token, const char *prefix) |
| Look up the index of an XML namespace declaration by prefix. | |
| LIBLAX_EXTERN char * | XMLToken_getNamespacePrefix (const XMLToken_t *token, int index) |
| Look up the prefix of an XML namespace declaration by position. | |
| LIBLAX_EXTERN char * | XMLToken_getNamespacePrefixByURI (const XMLToken_t *token, const char *uri) |
| Look up the prefix of an XML namespace declaration by its URI. | |
| LIBLAX_EXTERN const XMLNamespaces_t * | XMLToken_getNamespaces (const XMLToken_t *token) |
| Returns the XML namespace declarations for this XML element. | |
| LIBLAX_EXTERN int | XMLToken_getNamespacesLength (const XMLToken_t *token) |
| Returns the number of XML namespaces stored in the XMLNamespaces of this XMLNode. | |
| LIBLAX_EXTERN char * | XMLToken_getNamespaceURI (const XMLToken_t *token, int index) |
| Look up the URI of an XML namespace declaration by its position. | |
| LIBLAX_EXTERN char * | XMLToken_getNamespaceURIByPrefix (const XMLToken_t *token, const char *prefix) |
| Look up the URI of an XML namespace declaration by its prefix. | |
| LIBLAX_EXTERN const char * | XMLToken_getPrefix (const XMLToken_t *token) |
| Returns the namespace prefix of this XML element. | |
| LIBLAX_EXTERN const char * | XMLToken_getURI (const XMLToken_t *token) |
| Returns the namespace URI of this XML element. | |
| LIBLAX_EXTERN int | XMLToken_hasAttr (const XMLToken_t *token, int index) |
Predicate returning true or false depending on whether an attribute with the given index exists in the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_hasAttrWithName (const XMLToken_t *token, const char *name) |
Predicate returning true or false depending on whether an attribute with the given local name (without namespace URI) exists in the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_hasAttrWithNS (const XMLToken_t *token, const char *name, const char *uri) |
Predicate returning true or false depending on whether an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_hasAttrWithTriple (const XMLToken_t *token, const XMLTriple_t *triple) |
Predicate returning true or false depending on whether an attribute with the given XML triple exists in the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_hasNamespaceNS (const XMLToken_t *token, const char *uri, const char *prefix) |
Predicate returning true or false depending on whether an XML Namespace with the given uri/prefix pair is contained in the XMLNamespaces ofthis XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_hasNamespacePrefix (const XMLToken_t *token, const char *prefix) |
Predicate returning true or false depending on whether an XML Namespace with the given prefix is contained in the XMLNamespaces of this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_hasNamespaceURI (const XMLToken_t *token, const char *uri) |
Predicate returning true or false depending on whether an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_isAttributesEmpty (const XMLToken_t *token) |
Predicate returning true or false depending on whether the attribute set in this XMLToken set is empty. | |
| LIBLAX_EXTERN int | XMLToken_isElement (const XMLToken_t *token) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML element. | |
| LIBLAX_EXTERN int | XMLToken_isEnd (const XMLToken_t *token) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML end element. | |
| LIBLAX_EXTERN int | XMLToken_isEndFor (const XMLToken_t *token, const XMLToken_t *element) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML end element for the given start element. | |
| LIBLAX_EXTERN int | XMLToken_isEOF (const XMLToken_t *token) |
Predicate returning true or false depending on whether this XMLToken_t structure is an end of file marker. | |
| LIBLAX_EXTERN int | XMLToken_isNamespacesEmpty (const XMLToken_t *token) |
Predicate returning true or false depending on whether the XMLNamespaces of this XMLToken is empty. | |
| LIBLAX_EXTERN int | XMLToken_isStart (const XMLToken_t *token) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML start element. | |
| LIBLAX_EXTERN int | XMLToken_isText (const XMLToken_t *token) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML text element. | |
| LIBLAX_EXTERN int | XMLToken_removeAttr (XMLToken_t *token, int n) |
| Removes an attribute with the given index from the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_removeAttrByName (XMLToken_t *token, const char *name) |
| Removes an attribute with the given local name (without namespace URI) from the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_removeAttrByNS (XMLToken_t *token, const char *name, const char *uri) |
| Removes an attribute with the given local name and namespace URI from the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_removeAttrByTriple (XMLToken_t *token, const XMLTriple_t *triple) |
| Removes an attribute with the given XMLTriple from the attribute set in this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_removeNamespace (XMLToken_t *token, int index) |
| Removes an XML Namespace stored in the given position of the XMLNamespaces of this XMLNode. | |
| LIBLAX_EXTERN int | XMLToken_removeNamespaceByPrefix (XMLToken_t *token, const char *prefix) |
| Removes an XML Namespace with the given prefix. | |
| LIBLAX_EXTERN int | XMLToken_setAttributes (XMLToken_t *token, const XMLAttributes_t *attributes) |
| Sets an XMLAttributes to this XMLToken. | |
| LIBLAX_EXTERN int | XMLToken_setEnd (XMLToken_t *token) |
| Declares this XML start element is also an end element. | |
| LIBLAX_EXTERN int | XMLToken_setEOF (XMLToken_t *token) |
| Declares this XMLToken_t structure is an end-of-file (input) marker. | |
| LIBLAX_EXTERN int | XMLToken_setNamespaces (XMLToken_t *token, const XMLNamespaces_t *namespaces) |
| Sets an XMLnamespaces to this XML element. | |
| LIBLAX_EXTERN int | XMLToken_setTriple (XMLToken_t *token, const XMLTriple_t *triple) |
| Sets the XMLTripe (name, uri and prefix) of this XML element. | |
| LIBLAX_EXTERN int | XMLToken_unsetEnd (XMLToken_t *token) |
| LIBLAX_EXTERN int XMLToken_addAttr | ( | XMLToken_t * | token, |
| const char * | name, | ||
| const char * | value | ||
| ) |
Adds an attribute with the given local name to the attribute set in this XMLToken.
(namespace URI and prefix are empty) Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to which an attribute to be added. |
| name | a string, the local name of the attribute. |
| value | a string, the value of the attribute. |
| LIBLAX_EXTERN int XMLToken_addAttrWithNS | ( | XMLToken_t * | token, |
| const char * | name, | ||
| const char * | value, | ||
| const char * | namespaceURI, | ||
| const char * | prefix | ||
| ) |
Adds an attribute with a prefix and namespace URI to the attribute set in this XMLToken optionally Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to which an attribute to be added. |
| name | a string, the local name of the attribute. |
| value | a string, the value of the attribute. |
| namespaceURI | a string, the namespace URI of the attribute. |
| prefix | a string, the prefix of the namespace |
| LIBLAX_EXTERN int XMLToken_addAttrWithTriple | ( | XMLToken_t * | token, |
| const XMLTriple_t * | triple, | ||
| const char * | value | ||
| ) |
Adds an attribute with the given XMLTriple/value pair to the attribute set in this XMLToken.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to which an attribute to be added. |
| triple | an XMLTriple, the XML triple of the attribute. |
| value | a string, the value of the attribute. |
| LIBLAX_EXTERN int XMLToken_addNamespace | ( | XMLToken_t * | token, |
| const char * | uri, | ||
| const char * | prefix | ||
| ) |
Appends an XML namespace prefix and URI pair to this XMLToken.
If there is an XML namespace with the given prefix in this XMLToken, then the existing XML namespace will be overwritten by the new one.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to be queried. |
| uri | a string, the uri for the namespace |
| prefix | a string, the prefix for the namespace |
| LIBLAX_EXTERN int XMLToken_append | ( | XMLToken_t * | token, |
| const char * | text | ||
| ) |
Appends characters to this XML text content.
| token | XMLToken_t structure to be appended to. |
| text | string, characters to append |
| LIBLAX_EXTERN int XMLToken_clearAttributes | ( | XMLToken_t * | token | ) |
Clears (deletes) all attributes in this XMLToken.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure from which attributes to be removed. |
| LIBLAX_EXTERN int XMLToken_clearNamespaces | ( | XMLToken_t * | token | ) |
Clears (deletes) all XML namespace declarations in the XMLNamespaces of this XMLNode.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN XMLToken_t* XMLToken_clone | ( | const XMLToken_t * | t | ) |
Creates a deep copy of the given XMLToken_t structure.
| t | the XMLToken_t structure to be copied |
| LIBLAX_EXTERN XMLToken_t* XMLToken_create | ( | void | ) |
Creates a new empty XMLToken_t structure and returns a pointer to it.
| LIBLAX_EXTERN XMLToken_t* XMLToken_createWithText | ( | const char * | text | ) |
Creates a text XMLToken_t structure.
| text | a string, the text to be added to the XMLToken_t structure |
| LIBLAX_EXTERN XMLToken_t* XMLToken_createWithTriple | ( | const XMLTriple_t * | triple | ) |
Creates a new end element XMLToken_t structure with XMLTriple_t structure set and returns a pointer to it.
| triple | XMLTriple_t structure to be set. |
| LIBLAX_EXTERN XMLToken_t* XMLToken_createWithTripleAttr | ( | const XMLTriple_t * | triple, |
| const XMLAttributes_t * | attr | ||
| ) |
Creates a new start element XMLToken_t structure with XMLTriple_t and XMLAttributes_t structures set and returns a pointer to it.
| triple | XMLTriple_t structure to be set. |
| attr | XMLAttributes_t structure to be set. |
| LIBLAX_EXTERN XMLToken_t* XMLToken_createWithTripleAttrNS | ( | const XMLTriple_t * | triple, |
| const XMLAttributes_t * | attr, | ||
| const XMLNamespaces_t * | ns | ||
| ) |
Creates a new start element XMLToken_t structure with XMLTriple_t, XMLAttributes_t and XMLNamespaces_t structures set and returns a pointer to it.
| triple | XMLTriple_t structure to be set. |
| attr | XMLAttributes_t structure to be set. |
| ns | XMLNamespaces_t structure to be set. |
| LIBLAX_EXTERN void XMLToken_free | ( | XMLToken_t * | token | ) |
Destroys this XMLToken_t structure.
| token | XMLToken_t structure to be freed. |
| LIBLAX_EXTERN const XMLAttributes_t* XMLToken_getAttributes | ( | const XMLToken_t * | token | ) |
Returns the attributes of this element.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN int XMLToken_getAttributesLength | ( | const XMLToken_t * | token | ) |
Return the number of attributes in the attributes set.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN int XMLToken_getAttrIndex | ( | const XMLToken_t * | token, |
| const char * | name, | ||
| const char * | uri | ||
| ) |
Return the index of an attribute with the given local name and namespace URI.
| token | XMLToken_t structure to be queried. |
| name | a string, the local name of the attribute. |
| uri | a string, the namespace URI of the attribute. |
| LIBLAX_EXTERN int XMLToken_getAttrIndexByTriple | ( | const XMLToken_t * | token, |
| const XMLTriple_t * | triple | ||
| ) |
| LIBLAX_EXTERN char* XMLToken_getAttrName | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Return the local name of an attribute in the attributes set in this XMLToken (by position).
| token | XMLToken_t structure to be queried. |
| index | an integer, the position of the attribute whose local name is required. |
| LIBLAX_EXTERN char* XMLToken_getAttrPrefix | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Return the prefix of an attribute in the attribute set in this XMLToken (by position).
| token | XMLToken_t structure to be queried. |
| index | an integer, the position of the attribute whose prefix is required. |
| LIBLAX_EXTERN char* XMLToken_getAttrPrefixedName | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Return the prefixed name of an attribute in the attribute set in this XMLToken (by position).
| token | XMLToken_t structure to be queried. |
| index | an integer, the position of the attribute whose prefixed name is required. |
| LIBLAX_EXTERN char* XMLToken_getAttrURI | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Return the namespace URI of an attribute in the attribute set in this XMLToken (by position).
| token | XMLToken_t structure to be queried. |
| index | an integer, the position of the attribute whose namespace URI is required. |
| LIBLAX_EXTERN char* XMLToken_getAttrValue | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Return the value of an attribute in the attribute set in this XMLToken (by position).
| token | XMLToken_t structure to be queried. |
| index | an integer, the position of the attribute whose value is required. |
| LIBLAX_EXTERN char* XMLToken_getAttrValueByName | ( | const XMLToken_t * | token, |
| const char * | name | ||
| ) |
Return a value of an attribute with the given local name (without namespace URI).
| token | XMLToken_t structure to be queried. |
| name | a string, the local name of the attribute whose value is required. |
| LIBLAX_EXTERN char* XMLToken_getAttrValueByNS | ( | const XMLToken_t * | token, |
| const char * | name, | ||
| const char * | uri | ||
| ) |
Return a value of an attribute with the given local name and namespace URI.
| token | XMLToken_t structure to be queried. |
| name | a string, the local name of the attribute whose value is required. |
| uri | a string, the namespace URI of the attribute. |
| LIBLAX_EXTERN char* XMLToken_getAttrValueByTriple | ( | const XMLToken_t * | token, |
| const XMLTriple_t * | triple | ||
| ) |
Return a value of an attribute with the given XMLTriple.
| token | XMLToken_t structure to be queried. |
| triple | an XMLTriple, the XML triple of the attribute whose value is required. |
| LIBLAX_EXTERN const char* XMLToken_getCharacters | ( | const XMLToken_t * | token | ) |
Returns the text of this element.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN unsigned int XMLToken_getColumn | ( | const XMLToken_t * | token | ) |
Returns the column at which this XMLToken_t structure occurred.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN unsigned int XMLToken_getLine | ( | const XMLToken_t * | token | ) |
Returns the line at which this XMLToken_t structure occurred.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN const char* XMLToken_getName | ( | const XMLToken_t * | token | ) |
Returns the (unqualified) name of this XML element.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN int XMLToken_getNamespaceIndex | ( | const XMLToken_t * | token, |
| const char * | uri | ||
| ) |
Look up the index of an XML namespace declaration by URI.
| token | XMLToken_t structure to be queried. |
| uri | a string, uri of the required namespace. |
| LIBLAX_EXTERN int XMLToken_getNamespaceIndexByPrefix | ( | const XMLToken_t * | token, |
| const char * | prefix | ||
| ) |
Look up the index of an XML namespace declaration by prefix.
| token | XMLToken_t structure to be queried. |
| prefix | a string, prefix of the required namespace. |
| LIBLAX_EXTERN char* XMLToken_getNamespacePrefix | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Look up the prefix of an XML namespace declaration by position.
Callers should use getNamespacesLength() to find out how many namespaces are stored in the XMLNamespaces.
| token | XMLToken_t structure to be queried. |
| index | an integer, position of the removed namespace. |
| LIBLAX_EXTERN char* XMLToken_getNamespacePrefixByURI | ( | const XMLToken_t * | token, |
| const char * | uri | ||
| ) |
Look up the prefix of an XML namespace declaration by its URI.
| token | XMLToken_t structure to be queried. |
| uri | a string, uri of the required namespace. |
| LIBLAX_EXTERN const XMLNamespaces_t* XMLToken_getNamespaces | ( | const XMLToken_t * | token | ) |
Returns the XML namespace declarations for this XML element.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN int XMLToken_getNamespacesLength | ( | const XMLToken_t * | token | ) |
Returns the number of XML namespaces stored in the XMLNamespaces of this XMLNode.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN char* XMLToken_getNamespaceURI | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Look up the URI of an XML namespace declaration by its position.
| token | XMLToken_t structure to be queried. |
| index | an integer, position of the removed namespace. |
| LIBLAX_EXTERN char* XMLToken_getNamespaceURIByPrefix | ( | const XMLToken_t * | token, |
| const char * | prefix | ||
| ) |
Look up the URI of an XML namespace declaration by its prefix.
| token | XMLToken_t structure to be queried. |
| prefix | a string, prefix of the required namespace. |
| LIBLAX_EXTERN const char* XMLToken_getPrefix | ( | const XMLToken_t * | token | ) |
Returns the namespace prefix of this XML element.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN const char* XMLToken_getURI | ( | const XMLToken_t * | token | ) |
Returns the namespace URI of this XML element.
| token | XMLToken_t structure to be queried. |
| LIBLAX_EXTERN int XMLToken_hasAttr | ( | const XMLToken_t * | token, |
| int | index | ||
| ) |
Predicate returning true or false depending on whether an attribute with the given index exists in the attribute set in this XMLToken.
| token | XMLToken_t structure to be queried. |
| index | an integer, the position of the attribute. |
non-zero (true) if an attribute with the given index exists in the attribute set in this XMLToken, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_hasAttrWithName | ( | const XMLToken_t * | token, |
| const char * | name | ||
| ) |
Predicate returning true or false depending on whether an attribute with the given local name (without namespace URI) exists in the attribute set in this XMLToken.
| token | XMLToken_t structure to be queried. |
| name | a string, the local name of the attribute. |
non-zero (true) if an attribute with the given local name (without namespace URI) exists in the attribute set in this XMLToken, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_hasAttrWithNS | ( | const XMLToken_t * | token, |
| const char * | name, | ||
| const char * | uri | ||
| ) |
Predicate returning true or false depending on whether an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken.
| token | XMLToken_t structure to be queried. |
| name | a string, the local name of the attribute. |
| uri | a string, the namespace URI of the attribute. |
non-zero (true) if an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_hasAttrWithTriple | ( | const XMLToken_t * | token, |
| const XMLTriple_t * | triple | ||
| ) |
Predicate returning true or false depending on whether an attribute with the given XML triple exists in the attribute set in this XMLToken.
| token | XMLToken_t structure to be queried. |
| triple | an XMLTriple, the XML triple of the attribute |
non-zero (true) if an attribute with the given XML triple exists in the attribute set in this XMLToken, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_hasNamespaceNS | ( | const XMLToken_t * | token, |
| const char * | uri, | ||
| const char * | prefix | ||
| ) |
Predicate returning true or false depending on whether an XML Namespace with the given uri/prefix pair is contained in the XMLNamespaces ofthis XMLToken.
| token | XMLToken_t structure to be queried. |
| uri | a string, the uri for the namespace |
| prefix | a string, the prefix for the namespace |
non-zero (true) if an XML Namespace with the given uri/prefix pair is contained in the XMLNamespaces of this XMLToken, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_hasNamespacePrefix | ( | const XMLToken_t * | token, |
| const char * | prefix | ||
| ) |
Predicate returning true or false depending on whether an XML Namespace with the given prefix is contained in the XMLNamespaces of this XMLToken.
| token | XMLToken_t structure to be queried. |
| prefix | a string, the prefix for the namespace |
no-zero (true) if an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_hasNamespaceURI | ( | const XMLToken_t * | token, |
| const char * | uri | ||
| ) |
Predicate returning true or false depending on whether an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken.
| token | XMLToken_t structure to be queried. |
| uri | a string, the uri for the namespace |
no-zero (true) if an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_isAttributesEmpty | ( | const XMLToken_t * | token | ) |
| LIBLAX_EXTERN int XMLToken_isElement | ( | const XMLToken_t * | token | ) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML element.
| token | XMLToken_t structure to be queried. |
non-zero (true) if this XMLToken_t structure is an XML element, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_isEnd | ( | const XMLToken_t * | token | ) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML end element.
| token | XMLToken_t structure to be queried. |
non-zero (true) if this XMLToken_t structure is an XML end element, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_isEndFor | ( | const XMLToken_t * | token, |
| const XMLToken_t * | element | ||
| ) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML end element for the given start element.
| token | XMLToken_t structure to be queried. |
| element | XMLToken_t structure, element for which query is made. |
non-zero (true) if this XMLToken_t structure is an XML end element for the given XMLToken_t structure start element, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_isEOF | ( | const XMLToken_t * | token | ) |
Predicate returning true or false depending on whether this XMLToken_t structure is an end of file marker.
| token | XMLToken_t structure to be queried. |
non-zero (true) if this XMLToken_t structure is an end of file (input) marker, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_isNamespacesEmpty | ( | const XMLToken_t * | token | ) |
Predicate returning true or false depending on whether the XMLNamespaces of this XMLToken is empty.
| token | XMLToken_t structure to be queried. |
non-zero (true) if the XMLNamespaces of this XMLToken is empty, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_isStart | ( | const XMLToken_t * | token | ) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML start element.
| token | XMLToken_t structure to be queried. |
true if this XMLToken_t structure is an XML start element, false otherwise. | LIBLAX_EXTERN int XMLToken_isText | ( | const XMLToken_t * | token | ) |
Predicate returning true or false depending on whether this XMLToken_t structure is an XML text element.
| token | XMLToken_t structure to be queried. |
non-zero (true) if this XMLToken_t structure is an XML text element, zero (false) otherwise. | LIBLAX_EXTERN int XMLToken_removeAttr | ( | XMLToken_t * | token, |
| int | n | ||
| ) |
Removes an attribute with the given index from the attribute set in this XMLToken.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure from which an attribute to be removed. |
| n | an integer the index of the resource to be deleted |
| LIBLAX_EXTERN int XMLToken_removeAttrByName | ( | XMLToken_t * | token, |
| const char * | name | ||
| ) |
Removes an attribute with the given local name (without namespace URI) from the attribute set in this XMLToken.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure from which an attribute to be removed. |
| name | a string, the local name of the attribute. |
| uri | a string, the namespace URI of the attribute. |
| LIBLAX_EXTERN int XMLToken_removeAttrByNS | ( | XMLToken_t * | token, |
| const char * | name, | ||
| const char * | uri | ||
| ) |
Removes an attribute with the given local name and namespace URI from the attribute set in this XMLToken.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure from which an attribute to be removed. |
| name | a string, the local name of the attribute. |
| uri | a string, the namespace URI of the attribute. |
| LIBLAX_EXTERN int XMLToken_removeAttrByTriple | ( | XMLToken_t * | token, |
| const XMLTriple_t * | triple | ||
| ) |
Removes an attribute with the given XMLTriple from the attribute set in this XMLToken.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure from which an attribute to be removed. |
| triple | an XMLTriple, the XML triple of the attribute. |
| LIBLAX_EXTERN int XMLToken_removeNamespace | ( | XMLToken_t * | token, |
| int | index | ||
| ) |
Removes an XML Namespace stored in the given position of the XMLNamespaces of this XMLNode.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to be queried. |
| index | an integer, position of the removed namespace. |
| LIBLAX_EXTERN int XMLToken_removeNamespaceByPrefix | ( | XMLToken_t * | token, |
| const char * | prefix | ||
| ) |
Removes an XML Namespace with the given prefix.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to be queried. |
| prefix | a string, prefix of the required namespace. |
| LIBLAX_EXTERN int XMLToken_setAttributes | ( | XMLToken_t * | token, |
| const XMLAttributes_t * | attributes | ||
| ) |
Sets an XMLAttributes to this XMLToken.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to be set. |
| attributes | XMLAttributes to be set to this XMLToken. |
| LIBLAX_EXTERN int XMLToken_setEnd | ( | XMLToken_t * | token | ) |
Declares this XML start element is also an end element.
| token | XMLToken_t structure to be set. |
| LIBLAX_EXTERN int XMLToken_setEOF | ( | XMLToken_t * | token | ) |
Declares this XMLToken_t structure is an end-of-file (input) marker.
| token | XMLToken_t structure to be set. |
| LIBLAX_EXTERN int XMLToken_setNamespaces | ( | XMLToken_t * | token, |
| const XMLNamespaces_t * | namespaces | ||
| ) |
Sets an XMLnamespaces to this XML element.
Nothing will be done if this XMLToken is not a start element.
| token | XMLToken_t structure to be queried. |
| namespaces | XMLNamespaces to be set to this XMLToken. |
| LIBLAX_EXTERN int XMLToken_setTriple | ( | XMLToken_t * | token, |
| const XMLTriple_t * | triple | ||
| ) |
Sets the XMLTripe (name, uri and prefix) of this XML element.
Nothing will be done if this XML element is a text node.
| token | XMLToken_t structure to be queried. |
| triple | an XMLTriple, the XML triple to be set to this XML element. |
| LIBLAX_EXTERN int XMLToken_unsetEnd | ( | XMLToken_t * | token | ) |