From: Karl Waclawek
XML_GetAttributeInfo
available
+for reporting attribute byte offsets.+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; ++
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,
@@ -2107,6 +2135,24 @@ The choices for code
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.