|
string | Qore::Xml::makeFormattedXMLFragment (hash h, *string encoding) |
| serializes a hash into an XML string with whitespace formatting but without an XML header More...
|
|
nothing | Qore::Xml::makeFormattedXMLFragment () |
| This is a variant that is basically a noop, included for backwards-compatibility for functions that ignored type errors in the calling parameters. More...
|
|
string | Qore::Xml::makeFormattedXMLString (string key, hash h, *string encoding) |
| serializes a hash into an XML string with whitespace formatting and with an XML header More...
|
|
string | Qore::Xml::makeFormattedXMLString (hash h, *string encoding) |
| serializes a hash into an XML string with whitespace formatting and with an XML header More...
|
|
string | Qore::Xml::makeXMLFragment (hash h, *string encoding) |
| serializes a hash into an XML string without whitespace formatting and without an XML header More...
|
|
nothing | Qore::Xml::makeXMLFragment () |
| This is a variant that is basically a noop, included for backwards-compatibility for functions that ignored type errors in the calling parameters. More...
|
|
string | Qore::Xml::makeXMLString (string key, hash h, *string encoding) |
| serializes a hash into an XML string without whitespace formatting but with an XML header More...
|
|
string | Qore::Xml::makeXMLString (hash h, *string encoding) |
| serializes a hash into an XML string without whitespace formatting but with an XML header More...
|
|
string | Qore::Xml::make_xml (string key, hash h, *int flags, *string encoding) |
| serializes a hash into an XML string with an XML header More...
|
|
string | Qore::Xml::make_xml (hash h, *int flags, *string encoding) |
| serializes a hash into an XML string with an XML header More...
|
|
string | Qore::Xml::make_xml (hash h, hash opts) |
| serializes a hash into an XML string with various options of formatting More...
|
|
string | Qore::Xml::make_xml_fragment (hash h, *int flags, *string encoding) |
| serializes a hash into an XML string without whitespace formatting and without an XML header More...
|
|
hash | Qore::Xml::parseXML (string xml, *string encoding) |
| Parses an XML string and returns a Qore hash structure. More...
|
|
nothing | Qore::Xml::parseXML () |
| This is a variant that is basically a noop, included for backwards-compatibility for functions that ignored type errors in the calling parameters. More...
|
|
hash | Qore::Xml::parseXMLAsData (string xml, *string encoding) |
| Parses an XML string as data (does not necessarily preserve key order) and returns a Qore hash structure. More...
|
|
nothing | Qore::Xml::parseXMLAsData () |
| This is a variant that is basically a noop, included for backwards-compatibility for functions that ignored type errors in the calling parameters. More...
|
|
hash | Qore::Xml::parseXMLAsDataWithRelaxNG (string xml, string relaxng, *string encoding) |
| Parses an XML string as data (does not preserve hash order with out-of-order duplicate keys: collapses all to the same list), validates the XML string against a RelaxNG schema string, and returns a Qore hash structure. More...
|
|
hash | Qore::Xml::parseXMLAsDataWithSchema (string xml, string xsd, *string encoding) |
| Parses an XML string as data (does not preserve hash order with out-of-order duplicate keys: collapses all to the same list), validates the XML string against an XSD schema string, and returns a Qore hash structure. More...
|
|
hash | Qore::Xml::parseXMLWithRelaxNG (string xml, string relaxng, *string encoding) |
| Parses an XML string, validates the XML string against a RelaxNG schema string, and returns a Qore hash structure. More...
|
|
hash | Qore::Xml::parseXMLWithSchema (string xml, string xsd, *string encoding) |
| Parses an XML string, validates the XML string against an XSD schema string, and returns a Qore hash structure. More...
|
|
hash | Qore::Xml::parse_xml (string xml, *int pflags, *string encoding) |
| Parses an XML string and returns a Qore hash structure. More...
|
|
hash | Qore::Xml::parse_xml_with_dtd (string xml, string dtd, *int pflags, *string encoding) |
| Parses an XML string, validates the XML string against a DTD string, and returns a Qore hash structure. More...
|
|
hash | Qore::Xml::parse_xml_with_relaxng (string xml, string relaxng, *int pflags, *string encoding) |
| Parses an XML string, validates the XML string against a RelaxNG schema string, and returns a Qore hash structure. More...
|
|
hash | Qore::Xml::parse_xml_with_schema (string xml, string xsd, *int pflags, *string encoding) |
| Parses an XML string, validates the XML string against an XSD schema string, and returns a Qore hash structure. More...
|
|
hash Qore::Xml::parseXMLAsDataWithRelaxNG |
( |
string |
xml, |
|
|
string |
relaxng, |
|
|
*string |
encoding |
|
) |
| |
Parses an XML string as data (does not preserve hash order with out-of-order duplicate keys: collapses all to the same list), validates the XML string against a RelaxNG schema string, and returns a Qore hash structure.
If any errors occur parsing the RelaxNG schema string, parsing the XML string, or validating the XML against the XSD, exceptions are thrown. If no encoding string argument is passed, then all strings in the resulting hash will be in UTF-8 encoding regardless of the input encoding of the XML string.
Please note that data deserialized with this function may not be reserialized to an identical XML string to the input due to the fact that duplicate, out-of-order XML elements are collapsed into lists in the resulting Qore hash, thereby losing the order in the original XML string.
The availability of this function depends on the presence of libxml2's xmlTextReaderRelaxNGSetSchema()
function when the xml module was compiled; for maximum portability check the constant HAVE_PARSEXMLWITHRELAXNG before running this function.
- Code Flags:
- RET_VALUE_ONLY, DEPRECATED
- Parameters
-
xml | the XML string to parse |
relaxng | the RelaxNG schema string to use to validate the XML string |
encoding | an optional string giving the string encoding of any strings output; if this parameter is missing, the any strings output in the output hash will have UTF-8 encoding |
- Returns
- a Qore hash structure corresponding to the input
- Exceptions
-
PARSE-XML-EXCEPTION | error parsing the XML string |
RELAXNG-SYNTAX-ERROR | invalid RelaxNG string |
RELAXNG-VALIDATION-ERROR | the XML did not pass RelaxNG schema validation |
MISSING-FEATURE-ERROR | this exception is thrown when the function is not available; for maximum portability, check the constant HAVE_PARSEXMLWITHRELAXNG before calling this function |
- Deprecated:
- use parse_xml_with_relaxng(); camel-case function names were deprecated in xml 1.3
hash Qore::Xml::parseXMLAsDataWithSchema |
( |
string |
xml, |
|
|
string |
xsd, |
|
|
*string |
encoding |
|
) |
| |
Parses an XML string as data (does not preserve hash order with out-of-order duplicate keys: collapses all to the same list), validates the XML string against an XSD schema string, and returns a Qore hash structure.
If any errors occur parsing the XSD string, parsing the XML string, or validating the XML against the XSD, exceptions are thrown. If no encoding string argument is passed, then all strings in the resulting hash will be in UTF-8 encoding regardless of the input encoding of the XML string.
Please note that data deserialized with this function may not be reserialized to an identical XML string to the input due to the fact that duplicate, out-of-order XML elements are collapsed into lists in the resulting Qore hash, thereby losing the order in the original XML string.
If any errors occur parsing the XSD string, parsing the XML string, or validating the XML against the XSD, exceptions are thrown. If no encoding string argument is passed, then all strings in the resulting hash will be in UTF-8 encoding regardless of the input encoding of the XML string.
The availability of this function depends on the presence of libxml2's xmlTextReaderSetSchema()
function when the xml module was compiled; for maximum portability check the constant HAVE_PARSEXMLWITHSCHEMA before running this function.
- Code Flags:
- RET_VALUE_ONLY, DEPRECATED
- Parameters
-
xml | the XML string to parse |
xsd | the XSD schema string to use to validate the XML string |
encoding | an optional string giving the string encoding of any strings output; if this parameter is missing, the any strings output in the output hash will have UTF-8 encoding |
- Returns
- a Qore hash structure corresponding to the input
- Exceptions
-
PARSE-XML-EXCEPTION | error parsing the XML string |
XSD-SYNTAX-ERROR | invalid XSD string |
XSD-VALIDATION-ERROR | the XML did not pass schema validation |
MISSING-FEATURE-ERROR | this exception is thrown when the function is not available; for maximum portability, check the constant HAVE_PARSEXMLWITHSCHEMA before calling this function |
- Deprecated:
- use parse_xml_with_schema(); camel-case function names were deprecated in xml 1.3
hash Qore::Xml::parseXMLWithRelaxNG |
( |
string |
xml, |
|
|
string |
relaxng, |
|
|
*string |
encoding |
|
) |
| |
Parses an XML string, validates the XML string against a RelaxNG schema string, and returns a Qore hash structure.
If any errors occur parsing the RelaxNG string, parsing the XML string, or validating the XML against the RelaxNG schema, exceptions are thrown. If no encoding string argument is passed, then all strings in the resulting hash will be in UTF-8 encoding regardless of the input encoding of the XML string.
If duplicate, out-of-order XML elements are found in the input string, they are deserialized to Qore hash elements with the same name as the XML element but including a caret "^" and a numeric prefix to maintain the same key order in the Qore hash as in the input XML string.
The availability of this function depends on the presence of libxml2's xmlTextReaderRelaxNGSetSchema()
function when the xml module was compiled; for maximum portability check the constant HAVE_PARSEXMLWITHRELAXNG before running this function.
- Code Flags:
- RET_VALUE_ONLY, DEPRECATED
- Parameters
-
xml | the XML string to parse |
relaxng | the RelaxNG schema string to use to validate the XML string |
encoding | an optional string giving the string encoding of any strings output; if this parameter is missing, the any strings output in the output hash will have UTF-8 encoding |
- Returns
- a Qore hash structure corresponding to the input
- Exceptions
-
PARSE-XML-EXCEPTION | error parsing the XML string |
RELAXNG-SYNTAX-ERROR | invalid RelaxNG string |
RELAXNG-VALIDATION-ERROR | the XML did not pass RelaxNG schema validation |
MISSING-FEATURE-ERROR | this exception is thrown when the function is not available; for maximum portability, check the constant HAVE_PARSEXMLWITHRELAXNG before calling this function |
- Deprecated:
- use parse_xml_with_relaxng(); camel-case function names were deprecated in xml 1.3
hash Qore::Xml::parseXMLWithSchema |
( |
string |
xml, |
|
|
string |
xsd, |
|
|
*string |
encoding |
|
) |
| |
Parses an XML string, validates the XML string against an XSD schema string, and returns a Qore hash structure.
If any errors occur parsing the XSD string, parsing the XML string, or validating the XML against the XSD, exceptions are thrown. If no encoding string argument is passed, then all strings in the resulting hash will be in UTF-8 encoding regardless of the input encoding of the XML string.
If duplicate, out-of-order XML elements are found in the input string, they are deserialized to Qore hash elements with the same name as the XML element but including a caret '^'
and a numeric prefix to maintain the same key order in the Qore hash as in the input XML string.
The availability of this function depends on the presence of libxml2's xmlTextReaderSetSchema()
function when the xml module was compiled; for maximum portability check the constant HAVE_PARSEXMLWITHSCHEMA before running this function.
- Code Flags:
- RET_VALUE_ONLY, DEPRECATED
- Parameters
-
xml | the XML string to parse |
xsd | the XSD schema string to use to validate the XML string |
encoding | an optional string giving the string encoding of any strings output; if this parameter is missing, the any strings output in the output hash will have UTF-8 encoding |
- Returns
- a Qore hash structure corresponding to the input
- Exceptions
-
PARSE-XML-EXCEPTION | error parsing the XML string |
XSD-SYNTAX-ERROR | invalid XSD string |
XSD-VALIDATION-ERROR | the XML did not pass schema validation |
MISSING-FEATURE-ERROR | this exception is thrown when the function is not available; for maximum portability, check the constant HAVE_PARSEXMLWITHSCHEMA before calling this function |
- Deprecated:
- use parse_xml_with_schema(); camel-case function names were deprecated in xml 1.3