--- embedaddon/expat/doc/reference.html 2012/02/21 23:00:54 1.1.1.1 +++ embedaddon/expat/doc/reference.html 2014/06/15 16:09:43 1.1.1.2 @@ -129,8 +129,10 @@ interface.
XML_GetAttributeInfo
available
+for reporting attribute byte offsets.'\0'
: the namespace URI and the local part will be
-concatenated without any separator - this is intended to support RDF processors.
-It is a programming error to use the null separator with
-namespace triplets.
+means that you should pick a character for sep that can't be part
+of an URI. Since Expat does not check namespace URIs for conformance, the
+only safe choice for a namespace separator is a character that is illegal
+in XML. For instance, '\xFF'
is not legal in UTF-8, and
+'\xFFFF'
is not legal in UTF-16. There is a special case when
+sep is the null character '\0'
: the namespace URI and
+the local part will be concatenated without any separator - this is intended
+to support RDF processors. It is a programming error to use the null separator
+with namespace triplets.
XML_Parser XMLCALL @@ -2074,6 +2084,27 @@ attribute. If called inside a start handler, then that current call. ++const XML_AttrInfo * XMLCALL +XML_GetAttributeInfo(XML_Parser parser); +++typedef struct { + XML_Index nameStart; /* Offset to beginning of the attribute name. */ + XML_Index nameEnd; /* Offset after the attribute name's last byte. */ + XML_Index valueStart; /* Offset to beginning of the attribute value. */ + XML_Index valueEnd; /* Offset after the attribute value's last byte. */ +} XML_AttrInfo; +++Returns an array of+XML_AttrInfo
structures for the +attribute/value pairs passed in the last call to the +XML_StartElementHandler
that were specified +in the start-tag rather than defaulted. Each attribute/value pair counts +as 1; thus the number of entries in the array is +XML_GetSpecifiedAttributeCount(parser) / 2
. +enum XML_Status XMLCALL XML_SetEncoding(XML_Parser p, @@ -2104,6 +2135,24 @@ The choices forcode
are:
XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE
XML_PARAM_ENTITY_PARSING_ALWAYS
XML_SetParamEntityParsing
is called after
+XML_Parse
or XML_ParseBuffer
, then it has
+no effect and will always return 0.
+
+
++int XMLCALL +XML_SetHashSalt(XML_Parser p, + unsigned long hash_salt); ++
XML_Parse
or XML_ParseBuffer
.
+Note: This call is optional, as the parser will auto-generate a new +random salt value if no value has been set at the start of parsing.