742 |
|
XMLPARSEAPI(int) |
743 |
|
XML_GetIdAttributeIndex(XML_Parser parser); |
744 |
|
|
745 |
+ |
#ifdef XML_ATTR_INFO |
746 |
+ |
/* Source file byte offsets for the start and end of attribute names and values. |
747 |
+ |
The value indices are exclusive of surrounding quotes; thus in a UTF-8 source |
748 |
+ |
file an attribute value of "blah" will yield: |
749 |
+ |
info->valueEnd - info->valueStart = 4 bytes. |
750 |
+ |
*/ |
751 |
+ |
typedef struct { |
752 |
+ |
XML_Index nameStart; /* Offset to beginning of the attribute name. */ |
753 |
+ |
XML_Index nameEnd; /* Offset after the attribute name's last byte. */ |
754 |
+ |
XML_Index valueStart; /* Offset to beginning of the attribute value. */ |
755 |
+ |
XML_Index valueEnd; /* Offset after the attribute value's last byte. */ |
756 |
+ |
} XML_AttrInfo; |
757 |
+ |
|
758 |
+ |
/* Returns an array of XML_AttrInfo structures for the attribute/value pairs |
759 |
+ |
passed in last call to the XML_StartElementHandler that were specified |
760 |
+ |
in the start-tag rather than defaulted. Each attribute/value pair counts |
761 |
+ |
as 1; thus the number of entries in the array is |
762 |
+ |
XML_GetSpecifiedAttributeCount(parser) / 2. |
763 |
+ |
*/ |
764 |
+ |
XMLPARSEAPI(const XML_AttrInfo *) |
765 |
+ |
XML_GetAttributeInfo(XML_Parser parser); |
766 |
+ |
#endif |
767 |
+ |
|
768 |
|
/* Parses some input. Returns XML_STATUS_ERROR if a fatal error is |
769 |
|
detected. The last call to XML_Parse must have isFinal true; len |
770 |
|
may be zero for this call (or any other). |
906 |
|
XML_SetParamEntityParsing(XML_Parser parser, |
907 |
|
enum XML_ParamEntityParsing parsing); |
908 |
|
|
909 |
+ |
/* Sets the hash salt to use for internal hash calculations. |
910 |
+ |
Helps in preventing DoS attacks based on predicting hash |
911 |
+ |
function behavior. This must be called before parsing is started. |
912 |
+ |
Returns 1 if successful, 0 when called after parsing has started. |
913 |
+ |
*/ |
914 |
+ |
XMLPARSEAPI(int) |
915 |
+ |
XML_SetHashSalt(XML_Parser parser, |
916 |
+ |
unsigned long hash_salt); |
917 |
+ |
|
918 |
|
/* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then |
919 |
|
XML_GetErrorCode returns information about the error. |
920 |
|
*/ |
1016 |
|
XML_FEATURE_SIZEOF_XML_CHAR, |
1017 |
|
XML_FEATURE_SIZEOF_XML_LCHAR, |
1018 |
|
XML_FEATURE_NS, |
1019 |
< |
XML_FEATURE_LARGE_SIZE |
1019 |
> |
XML_FEATURE_LARGE_SIZE, |
1020 |
> |
XML_FEATURE_ATTR_INFO |
1021 |
|
/* Additional features must be added to the end of this enum. */ |
1022 |
|
}; |
1023 |
|
|
1037 |
|
change to major or minor version. |
1038 |
|
*/ |
1039 |
|
#define XML_MAJOR_VERSION 2 |
1040 |
< |
#define XML_MINOR_VERSION 0 |
1041 |
< |
#define XML_MICRO_VERSION 1 |
1040 |
> |
#define XML_MINOR_VERSION 1 |
1041 |
> |
#define XML_MICRO_VERSION 0 |
1042 |
|
|
1043 |
|
#ifdef __cplusplus |
1044 |
|
} |