version 1.1.1.1, 2012/02/11 18:18:16 |
version 1.1.1.1.6.2, 2017/06/21 16:41:41 |
|
|
<li><a href="#XML_GetBase">XML_GetBase</a></li> |
<li><a href="#XML_GetBase">XML_GetBase</a></li> |
<li><a href="#XML_GetSpecifiedAttributeCount">XML_GetSpecifiedAttributeCount</a></li> |
<li><a href="#XML_GetSpecifiedAttributeCount">XML_GetSpecifiedAttributeCount</a></li> |
<li><a href="#XML_GetIdAttributeIndex">XML_GetIdAttributeIndex</a></li> |
<li><a href="#XML_GetIdAttributeIndex">XML_GetIdAttributeIndex</a></li> |
|
<li><a href="#XML_GetAttributeInfo">XML_GetAttributeInfo</a></li> |
<li><a href="#XML_SetEncoding">XML_SetEncoding</a></li> |
<li><a href="#XML_SetEncoding">XML_SetEncoding</a></li> |
<li><a href="#XML_SetParamEntityParsing">XML_SetParamEntityParsing</a></li> |
<li><a href="#XML_SetParamEntityParsing">XML_SetParamEntityParsing</a></li> |
|
<li><a href="#XML_SetHashSalt">XML_SetHashSalt</a></li> |
<li><a href="#XML_UseForeignDTD">XML_UseForeignDTD</a></li> |
<li><a href="#XML_UseForeignDTD">XML_UseForeignDTD</a></li> |
<li><a href="#XML_SetReturnNSTriplet">XML_SetReturnNSTriplet</a></li> |
<li><a href="#XML_SetReturnNSTriplet">XML_SetReturnNSTriplet</a></li> |
<li><a href="#XML_DefaultCurrent">XML_DefaultCurrent</a></li> |
<li><a href="#XML_DefaultCurrent">XML_DefaultCurrent</a></li> |
Line 275 directions or Unix directions below.</p> |
|
Line 277 directions or Unix directions below.</p> |
|
<p>If you're using the GNU compiler under cygwin, follow the Unix |
<p>If you're using the GNU compiler under cygwin, follow the Unix |
directions in the next section. Otherwise if you have Microsoft's |
directions in the next section. Otherwise if you have Microsoft's |
Developer Studio installed, then from Windows Explorer double-click on |
Developer Studio installed, then from Windows Explorer double-click on |
"expat.dsp" in the lib directory and build and install in the usual |
"expat.vcxproj" in the lib directory and build and install in the usual |
manner.</p> |
manner.</p> |
|
|
<p>Alternatively, you may download the Win32 binary package that |
<p>Alternatively, you may download the Win32 binary package that |
Line 369 footprint and can be faster.</dd> |
|
Line 371 footprint and can be faster.</dd> |
|
statically with the code that calls it; this is required to get all |
statically with the code that calls it; this is required to get all |
the right MSVC magic annotations correct. This is ignored on other |
the right MSVC magic annotations correct. This is ignored on other |
platforms.</dd> |
platforms.</dd> |
|
|
|
<dt>XML_ATTR_INFO</dt> |
|
<dd>If defined, makes the the additional function <code><a href= |
|
"#XML_GetAttributeInfo" >XML_GetAttributeInfo</a></code> available |
|
for reporting attribute byte offsets.</dd> |
</dl> |
</dl> |
|
|
<hr /> |
<hr /> |
Line 917 XML_ParserCreateNS(const XML_Char *encod |
|
Line 924 XML_ParserCreateNS(const XML_Char *encod |
|
Constructs a new parser that has namespace processing in effect. Namespace |
Constructs a new parser that has namespace processing in effect. Namespace |
expanded element names and attribute names are returned as a concatenation |
expanded element names and attribute names are returned as a concatenation |
of the namespace URI, <em>sep</em>, and the local part of the name. This |
of the namespace URI, <em>sep</em>, and the local part of the name. This |
means that you should pick a character for <em>sep</em> that can't be |
means that you should pick a character for <em>sep</em> that can't be part |
part of a legal URI. There is a special case when <em>sep</em> is the null |
of an URI. Since Expat does not check namespace URIs for conformance, the |
character <code>'\0'</code>: the namespace URI and the local part will be |
only safe choice for a namespace separator is a character that is illegal |
concatenated without any separator - this is intended to support RDF processors. |
in XML. For instance, <code>'\xFF'</code> is not legal in UTF-8, and |
It is a programming error to use the null separator with |
<code>'\xFFFF'</code> is not legal in UTF-16. There is a special case when |
<a href= "#XML_SetReturnNSTriplet">namespace triplets</a>.</div> |
<em>sep</em> is the null character <code>'\0'</code>: 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 <a href= "#XML_SetReturnNSTriplet">namespace triplets</a>.</div> |
|
|
<pre class="fcndec" id="XML_ParserCreate_MM"> |
<pre class="fcndec" id="XML_ParserCreate_MM"> |
XML_Parser XMLCALL |
XML_Parser XMLCALL |
Line 2074 attribute. If called inside a start hand |
|
Line 2084 attribute. If called inside a start hand |
|
current call. |
current call. |
</div> |
</div> |
|
|
|
<pre class="fcndec" id="XML_GetAttributeInfo"> |
|
const XML_AttrInfo * XMLCALL |
|
XML_GetAttributeInfo(XML_Parser parser); |
|
</pre> |
|
<pre class="signature"> |
|
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; |
|
</pre> |
|
<div class="fcndef"> |
|
Returns an array of <code>XML_AttrInfo</code> structures for the |
|
attribute/value pairs passed in the last call to the |
|
<code>XML_StartElementHandler</code> 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 |
|
<code>XML_GetSpecifiedAttributeCount(parser) / 2</code>. |
|
</div> |
|
|
<pre class="fcndec" id="XML_SetEncoding"> |
<pre class="fcndec" id="XML_SetEncoding"> |
enum XML_Status XMLCALL |
enum XML_Status XMLCALL |
XML_SetEncoding(XML_Parser p, |
XML_SetEncoding(XML_Parser p, |
Line 2104 The choices for <code>code</code> are: |
|
Line 2135 The choices for <code>code</code> are: |
|
<li><code>XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE</code></li> |
<li><code>XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE</code></li> |
<li><code>XML_PARAM_ENTITY_PARSING_ALWAYS</code></li> |
<li><code>XML_PARAM_ENTITY_PARSING_ALWAYS</code></li> |
</ul> |
</ul> |
|
<b>Note:</b> If <code>XML_SetParamEntityParsing</code> is called after |
|
<code>XML_Parse</code> or <code>XML_ParseBuffer</code>, then it has |
|
no effect and will always return 0. |
|
</div> |
|
|
|
<pre class="fcndec" id="XML_SetHashSalt"> |
|
int XMLCALL |
|
XML_SetHashSalt(XML_Parser p, |
|
unsigned long hash_salt); |
|
</pre> |
|
<div class="fcndef"> |
|
Sets the hash salt to use for internal hash calculations. |
|
Helps in preventing DoS attacks based on predicting hash |
|
function behavior. In order to have an effect this must be called |
|
before parsing has started. Returns 1 if successful, 0 when called |
|
after <code>XML_Parse</code> or <code>XML_ParseBuffer</code>. |
|
<p><b>Note:</b>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. |
|
<p><b>Note:</b>One should not call <code>XML_SetHashSalt</code> with a |
|
hash salt value of 0, as this value is used as sentinel value to indicate |
|
that <code>XML_SetHashSalt</code> has <b>not</b> been called. Consequently |
|
such a call will have no effect, even if it returns 1.</p> |
</div> |
</div> |
|
|
<pre class="fcndec" id="XML_UseForeignDTD"> |
<pre class="fcndec" id="XML_UseForeignDTD"> |