862 lines
80 KiB
HTML
862 lines
80 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>XQilla DOM3 API Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- Generated by Doxygen 1.7.3 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
|
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespacexercesc.html">xercesc</a> </li>
|
|
<li class="navelem"><a class="el" href="classxercesc_1_1DOMLSParser.html">DOMLSParser</a> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<h1>xercesc::DOMLSParser Class Reference</h1> </div>
|
|
</div>
|
|
<div class="contents">
|
|
<!-- doxytag: class="xercesc::DOMLSParser" -->
|
|
<p><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a> provides an API for parsing XML documents and building the corresponding DOM document tree.
|
|
<a href="#_details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="DOMLSParser_8hpp_source.html">DOMLSParser.hpp</a>></code></p>
|
|
|
|
<p><a href="classxercesc_1_1DOMLSParser-members.html">List of all members.</a></p>
|
|
<table class="memberdecls">
|
|
<tr><td colspan="2"><h2><a name="pub-types"></a>
|
|
Public Types</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Public Constants</div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933">ActionType</a> { <br/>
|
|
  <a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933a9caee96877d70efd06d66f4b786ef171">ACTION_APPEND_AS_CHILDREN</a> = 1,
|
|
<a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933a0c2569c1c8b3dba56e41ab6b9f353c70">ACTION_REPLACE_CHILDREN</a> = 2,
|
|
<a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933a0d3de6f8390917278c286a17f0ca4b23">ACTION_INSERT_BEFORE</a> = 3,
|
|
<a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933a76174c349a8217f8b081b4af6984c182">ACTION_INSERT_AFTER</a> = 4,
|
|
<br/>
|
|
  <a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933a2871e5af0565fdbd98abf02a27ecc17a">ACTION_REPLACE</a> = 5
|
|
<br/>
|
|
}</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight"><p>A set of possible actions for the parseWithContext method. </p>
|
|
<a href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933">More...</a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a893b1cce65cc918187f01cf19bc5b61a">~DOMLSParser</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a893b1cce65cc918187f01cf19bc5b61a"></a><br/></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 3</div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMConfiguration.html">DOMConfiguration</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a3aa425557d9e378551b7ebacf1cf9e49">getDomConfig</a> ()=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a pointer to the <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> object used when parsing an input source. <a href="#a3aa425557d9e378551b7ebacf1cf9e49"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classxercesc_1_1DOMLSParserFilter.html">DOMLSParserFilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#ab1f523f0f72ea66e388e1399868c2762">getFilter</a> () const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a const pointer to the application filter. <a href="#ab1f523f0f72ea66e388e1399868c2762"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a8aeb114e0ae9fa0f1c8200ac93afd5c9">getAsync</a> () const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return whether the parser is asynchronous. <a href="#a8aeb114e0ae9fa0f1c8200ac93afd5c9"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a9f67ede68295c401780c3d00525fc6d3">getBusy</a> () const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return whether the parser is busy parsing. <a href="#a9f67ede68295c401780c3d00525fc6d3"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#af94bb5843d1a9ef2966bbff05f919a03">setFilter</a> (<a class="el" href="classxercesc_1_1DOMLSParserFilter.html">DOMLSParserFilter</a> *const filter)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the application filter. <a href="#af94bb5843d1a9ef2966bbff05f919a03"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a1c0b1c6bddfd8a318be22575e1c2b35a">parse</a> (const <a class="el" href="classxercesc_1_1DOMLSInput.html">DOMLSInput</a> *source)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse an XML document from a resource identified by a <code><a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a></code>. <a href="#a1c0b1c6bddfd8a318be22575e1c2b35a"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#ae8ac493e0c390960cdcde30dfcfa9e0f">parseURI</a> (const XMLCh *const uri)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse an XML document from a location identified by a URI reference [IETF RFC 2396]. <a href="#ae8ac493e0c390960cdcde30dfcfa9e0f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a8b51c2ea89f3974f6dd4ec0a81592874">parseURI</a> (const char *const uri)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse an XML document from a location identified by a URI reference [IETF RFC 2396]. <a href="#a8b51c2ea89f3974f6dd4ec0a81592874"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a24e6f6a33080d8f962662e4fef4a4a00">parseWithContext</a> (const <a class="el" href="classxercesc_1_1DOMLSInput.html">DOMLSInput</a> *source, <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *contextNode, const <a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933">ActionType</a> action)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse an XML fragment from a resource identified by a <code><a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a></code> and insert the content into an existing document at the position specified with the context and action arguments. <a href="#a24e6f6a33080d8f962662e4fef4a4a00"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a4ab699caad7723915ee2728c02dbd95e">abort</a> ()=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Abort the loading of the document that is currently being loaded by the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code>. <a href="#a4ab699caad7723915ee2728c02dbd95e"></a><br/></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Non-standard Extension</div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a65be01a37333dceb926feada3cc943d5">release</a> ()=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to indicate that this <a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a> is no longer in use and that the implementation may relinquish any resources associated with it. <a href="#a65be01a37333dceb926feada3cc943d5"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#ad8ee62271288319ca16565703b3088e9">resetDocumentPool</a> ()=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reset the documents vector pool and release all the associated memory back to the system. <a href="#ad8ee62271288319ca16565703b3088e9"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Grammar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a1b78035eb95a780c6ccebbefffd84ff4">loadGrammar</a> (const <a class="el" href="classxercesc_1_1DOMLSInput.html">DOMLSInput</a> *source, const Grammar::GrammarType grammarType, const bool toCache=false)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Preparse schema grammar (XML Schema, DTD, etc.) via an input source object. <a href="#a1b78035eb95a780c6ccebbefffd84ff4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Grammar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#ad07ab388489070b466853ead0a9483ee">loadGrammar</a> (const XMLCh *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. <a href="#ad07ab388489070b466853ead0a9483ee"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Grammar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a342c09fc7d32ce8b43e8b00e0d63b9cd">loadGrammar</a> (const char *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. <a href="#a342c09fc7d32ce8b43e8b00e0d63b9cd"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Grammar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a922a6b6b16df38b68cb399b12a53ae51">getGrammar</a> (const XMLCh *const nameSpaceKey) const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the grammar that is associated with the specified namespace key. <a href="#a922a6b6b16df38b68cb399b12a53ae51"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual Grammar * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a7607dcbfb528129c44fd43cc96079a5b">getRootGrammar</a> () const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the grammar where the root element is declared. <a href="#a7607dcbfb528129c44fd43cc96079a5b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#ab1df9f28ce16a6ea4c9f1dc226ac2c75">getURIText</a> (unsigned int uriId) const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the string corresponding to a URI id from the URI string pool. <a href="#ab1df9f28ce16a6ea4c9f1dc226ac2c75"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a77c98975c7d63ae7b2ec36c20f9b7584">resetCachedGrammarPool</a> ()=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Clear the cached grammar pool. <a href="#a77c98975c7d63ae7b2ec36c20f9b7584"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual XMLFilePos </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a710f44b8a0aae507143505cb2f46f809">getSrcOffset</a> () const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current src offset within the input source. <a href="#a710f44b8a0aae507143505cb2f46f809"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="pro-methods"></a>
|
|
Protected Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMLSParser.html#a07cbd39f414ab64b19b0c0183c7e43b5">DOMLSParser</a> ()</td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<div class="textblock"><p><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a> provides an API for parsing XML documents and building the corresponding DOM document tree. </p>
|
|
<p>A <a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a> instance is obtained from the <a class="el" href="classxercesc_1_1DOMImplementationLS.html">DOMImplementationLS</a> interface by invoking its createLSParser method.</p>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
</div><hr/><h2>Member Enumeration Documentation</h2>
|
|
<a class="anchor" id="a5e94fce5ce6b35f848c3c4ce03e80933"></a><!-- doxytag: member="xercesc::DOMLSParser::ActionType" ref="a5e94fce5ce6b35f848c3c4ce03e80933" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933">xercesc::DOMLSParser::ActionType</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>A set of possible actions for the parseWithContext method. </p>
|
|
<p><code>ACTION_APPEND_AS_CHILDREN</code>: Append the result of the parse operation as children of the context node. For this action to work, the context node must be a <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> or a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html" title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument object...">DOMDocumentFragment</a></code>. </p>
|
|
<p><code>ACTION_INSERT_AFTER</code>: Insert the result of the parse operation as the immediately following sibling of the context node. For this action to work the context node's parent must be a <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> or a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html" title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument object...">DOMDocumentFragment</a></code>. </p>
|
|
<p><code>ACTION_INSERT_BEFORE</code>: Insert the result of the parse operation as the immediately preceding sibling of the context node. For this action to work the context node's parent must be a <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> or a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html" title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument object...">DOMDocumentFragment</a></code>. </p>
|
|
<p><code>ACTION_REPLACE</code>: Replace the context node with the result of the parse operation. For this action to work, the context node must have a parent, and the parent must be a <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> or a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html" title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument object...">DOMDocumentFragment</a></code>. </p>
|
|
<p><code>ACTION_REPLACE_CHILDREN</code>: Replace all the children of the context node with the result of the parse operation. For this action to work, the context node must be a <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code>, a <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code>, or a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html" title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument object...">DOMDocumentFragment</a></code>. </p>
|
|
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1DOMLSParser.html#a24e6f6a33080d8f962662e4fef4a4a00" title="Parse an XML fragment from a resource identified by a DOMLSInput and insert the content into an exist...">parseWithContext</a>(...) </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"><em><a class="anchor" id="a5e94fce5ce6b35f848c3c4ce03e80933a9caee96877d70efd06d66f4b786ef171"></a><!-- doxytag: member="ACTION_APPEND_AS_CHILDREN" ref="a5e94fce5ce6b35f848c3c4ce03e80933a9caee96877d70efd06d66f4b786ef171" args="" -->ACTION_APPEND_AS_CHILDREN</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="a5e94fce5ce6b35f848c3c4ce03e80933a0c2569c1c8b3dba56e41ab6b9f353c70"></a><!-- doxytag: member="ACTION_REPLACE_CHILDREN" ref="a5e94fce5ce6b35f848c3c4ce03e80933a0c2569c1c8b3dba56e41ab6b9f353c70" args="" -->ACTION_REPLACE_CHILDREN</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="a5e94fce5ce6b35f848c3c4ce03e80933a0d3de6f8390917278c286a17f0ca4b23"></a><!-- doxytag: member="ACTION_INSERT_BEFORE" ref="a5e94fce5ce6b35f848c3c4ce03e80933a0d3de6f8390917278c286a17f0ca4b23" args="" -->ACTION_INSERT_BEFORE</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="a5e94fce5ce6b35f848c3c4ce03e80933a76174c349a8217f8b081b4af6984c182"></a><!-- doxytag: member="ACTION_INSERT_AFTER" ref="a5e94fce5ce6b35f848c3c4ce03e80933a76174c349a8217f8b081b4af6984c182" args="" -->ACTION_INSERT_AFTER</em> </td><td>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="a5e94fce5ce6b35f848c3c4ce03e80933a2871e5af0565fdbd98abf02a27ecc17a"></a><!-- doxytag: member="ACTION_REPLACE" ref="a5e94fce5ce6b35f848c3c4ce03e80933a2871e5af0565fdbd98abf02a27ecc17a" args="" -->ACTION_REPLACE</em> </td><td>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a07cbd39f414ab64b19b0c0183c7e43b5"></a><!-- doxytag: member="xercesc::DOMLSParser::DOMLSParser" ref="a07cbd39f414ab64b19b0c0183c7e43b5" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">xercesc::DOMLSParser::DOMLSParser </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a893b1cce65cc918187f01cf19bc5b61a"></a><!-- doxytag: member="xercesc::DOMLSParser::~DOMLSParser" ref="a893b1cce65cc918187f01cf19bc5b61a" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual xercesc::DOMLSParser::~DOMLSParser </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Destructor. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="a4ab699caad7723915ee2728c02dbd95e"></a><!-- doxytag: member="xercesc::DOMLSParser::abort" ref="a4ab699caad7723915ee2728c02dbd95e" args="()=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMLSParser::abort </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Abort the loading of the document that is currently being loaded by the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code>. </p>
|
|
<p>If the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is currently not busy, a call to this method does nothing.</p>
|
|
<p>Note: invoking this method will remove the installed <code><a class="el" href="classxercesc_1_1DOMLSParserFilter.html">DOMLSParserFilter</a></code> filter</p>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8aeb114e0ae9fa0f1c8200ac93afd5c9"></a><!-- doxytag: member="xercesc::DOMLSParser::getAsync" ref="a8aeb114e0ae9fa0f1c8200ac93afd5c9" args="() const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool xercesc::DOMLSParser::getAsync </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Return whether the parser is asynchronous. </p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is asynchronous, <code>false</code> if it is synchronous </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9f67ede68295c401780c3d00525fc6d3"></a><!-- doxytag: member="xercesc::DOMLSParser::getBusy" ref="a9f67ede68295c401780c3d00525fc6d3" args="() const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool xercesc::DOMLSParser::getBusy </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Return whether the parser is busy parsing. </p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is currently busy loading a document, otherwise <code>false</code>. </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3aa425557d9e378551b7ebacf1cf9e49"></a><!-- doxytag: member="xercesc::DOMLSParser::getDomConfig" ref="a3aa425557d9e378551b7ebacf1cf9e49" args="()=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMConfiguration.html">DOMConfiguration</a>* xercesc::DOMLSParser::getDomConfig </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Get a pointer to the <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> object used when parsing an input source. </p>
|
|
<p>This <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> is specific to the parse operation. No parameter values from this <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> object are passed automatically to the <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> object on the <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> that is created, or used, by the parse operation. The DOM application is responsible for passing any needed parameter values from this <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> object to the <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> object referenced by the <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> object.</p>
|
|
<p>In addition to the parameters recognized in on the <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> interface defined in [DOM Level 3 Core], the <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> objects for <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> add or modify the following parameters:</p>
|
|
<p>"charset-overrides-xml-encoding" true [optional] (default) If a higher level protocol such as HTTP [IETF RFC 2616] provides an indication of the character encoding of the input stream being processed, that will override any encoding specified in the XML declaration or the Text declaration (see also section 4.3.3, "Character Encoding in Entities", in [XML 1.0]). Explicitly setting an encoding in the <code><a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a></code> overrides any encoding from the protocol. false [required] The parser ignores any character set encoding information from higher-level protocols.</p>
|
|
<p>"disallow-doctype" true [optional] Throw a fatal "doctype-not-allowed" error if a doctype node is found while parsing the document. This is useful when dealing with things like SOAP envelopes where doctype nodes are not allowed. false [required] (default) Allow doctype nodes in the document.</p>
|
|
<p>"ignore-unknown-character-denormalizations" true [required] (default) If, while verifying full normalization when [XML 1.1] is supported, a processor encounters characters for which it cannot determine the normalization properties, then the processor will ignore any possible denormalizations caused by these characters. This parameter is ignored for [XML 1.0]. false [optional] Report an fatal "unknown-character-denormalization" error if a character is encountered for which the processor cannot determine the normalization properties.</p>
|
|
<p>"infoset" See the definition of <a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a> for a description of this parameter. Unlike in [DOM Level 3 Core], this parameter will default to true for <a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a>.</p>
|
|
<p>"namespaces" true [required] (default) Perform the namespace processing as defined in [XML Namespaces] and [XML Namespaces 1.1]. false [optional] Do not perform the namespace processing.</p>
|
|
<p>"resource-resolver" [required] A pointer to a <a class="el" href="classxercesc_1_1DOMLSResourceResolver.html" title="DOMLSResourceResolver provides a way for applications to redirect references to external entities...">DOMLSResourceResolver</a> object, or NULL. If the value of this parameter is not null when an external resource (such as an external XML entity or an XML schema location) is encountered, the implementation will request that the <a class="el" href="classxercesc_1_1DOMLSResourceResolver.html" title="DOMLSResourceResolver provides a way for applications to redirect references to external entities...">DOMLSResourceResolver</a> referenced in this parameter resolves the resource.</p>
|
|
<p>"supported-media-types-only" true [optional] Check that the media type of the parsed resource is a supported media type. If an unsupported media type is encountered, a fatal error of type "unsupported-media-type" will be raised. The media types defined in [IETF RFC 3023] must always be accepted. false [required] (default) Accept any media type.</p>
|
|
<p>"validate" See the definition of <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> for a description of this parameter. Unlike in [DOM Level 3 Core], the processing of the internal subset is always accomplished, even if this parameter is set to false.</p>
|
|
<p>"validate-if-schema" See the definition of <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> for a description of this parameter. Unlike in [DOM Level 3 Core], the processing of the internal subset is always accomplished, even if this parameter is set to false.</p>
|
|
<p>"well-formed" See the definition of <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code> for a description of this parameter. Unlike in [DOM Level 3 Core], this parameter cannot be set to false.</p>
|
|
<p>In addition to these, Xerces adds these non standard parameters:</p>
|
|
<p>"http://apache.org/xml/properties/entity-resolver" A pointer to a XMLEntityResolver object, or NULL. If the value of this parameter is not null when an external resource (such as an external XML entity or an XML schema location) is encountered, the implementation will request that the XMLEntityResolver referenced in this parameter resolves the resource.</p>
|
|
<p>"http://apache.org/xml/properties/schema/external-schemaLocation" A string holding a set of [namespaceUri schemaLocation] entries that will be treated as the content of the attribute xsi:schemaLocation of the root element</p>
|
|
<p>"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation" A string holding the schemaLocation for the empty namespace URI that will be treated as the content of the attribute xsi:noNamespaceSchemaLocation of the root element</p>
|
|
<p>"http://apache.org/xml/properties/security-manager" A pointer to a SecurityManager object that will control how many entity references will be expanded during parsing</p>
|
|
<p>"http://apache.org/xml/properties/scannerName" A string holding the type of scanner used while parsing. The valid names are: </p>
|
|
<ul>
|
|
<li>
|
|
IGXMLScanner: the default one, capable of both XMLSchema and DTD validation </li>
|
|
<li>
|
|
SGXMLScanner: a scanner that can only perform XMLSchema validation </li>
|
|
<li>
|
|
DGXMLScanner: a scanner that can only perform DTD validation </li>
|
|
<li>
|
|
WFXMLScanner: a scanner that cannot perform any type validation, only well-formedness </li>
|
|
</ul>
|
|
<p>"http://apache.org/xml/properties/parser-use-DOMDocument-from-Implementation" A string holding the capabilities of the DOM implementation to be used to create the <a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a> resulting from the parse operation. For instance, "LS" or "Core"</p>
|
|
<p>"http://apache.org/xml/features/validation/schema" true Enable XMLSchema validation (note that also namespace processing should be enabled) false (default) Don't perform XMLSchema validation</p>
|
|
<p>"http://apache.org/xml/features/validation/schema-full-checking" true Turn on full XMLSchema checking (e.g. Unique Particle Attribution) false (default) Don't perform full XMLSchema checking</p>
|
|
<p>"http://apache.org/xml/features/validating/load-schema" true (default) Allow the parser to load schemas that are not in the grammar pool false Schemas that are not in the grammar pool are ignored</p>
|
|
<p>"http://apache.org/xml/features/dom/user-adopts-DOMDocument" true The <a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a> objects returned by <code>parse</code> will be owned by the caller false (default) The <a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a> objects returned by <code>parse</code> will be owned by this <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> and deleted when released</p>
|
|
<p>"http://apache.org/xml/features/nonvalidating/load-external-dtd" true (default) Allow the parser to load external DTDs false References to external DTDs will be ignored</p>
|
|
<p>"http://apache.org/xml/features/continue-after-fatal-error" true Parsing should try to continue even if a fatal error has been triggered, trying to generate a DOM tree from a non well-formed XML false (default) Violation of XML rules will abort parsing</p>
|
|
<p>"http://apache.org/xml/features/validation-error-as-fatal" true Validation errors are treated as fatal errors, and abort parsing (unless "continue-after-fatal-error" has been specified) false (default) Validation errors are normal errors</p>
|
|
<p>"http://apache.org/xml/features/validation/cache-grammarFromParse" true XMLSchemas referenced by an XML file are cached in order to be reused by other parse operations false (default) XMLSchemas loaded during a parse operation will be discarded before the next one</p>
|
|
<p>"http://apache.org/xml/features/validation/use-cachedGrammarInParse" true During this parse operation, reuse the XMLSchemas found in the cache false (default) Don't reuse the XMLSchemas found in the cache</p>
|
|
<p>"http://apache.org/xml/features/calculate-src-ofs" true During parsing update the position in the source stream false (default) Don't waste time computing the position in the source stream</p>
|
|
<p>"http://apache.org/xml/features/standard-uri-conformant" true Require that every URL being resolved is made of valid URL characters only false (default) Allow invalid URL characters in URL (e.g. spaces)</p>
|
|
<p>"http://apache.org/xml/features/dom-has-psvi-info" true Add schema informations to <a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a> and <a class="el" href="classxercesc_1_1DOMAttr.html" title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a> nodes in the output DOM tree false (default) Don't store schema informations in the output DOM tree</p>
|
|
<p>"http://apache.org/xml/features/generate-synthetic-annotations" true Create annotation objects in the representation of the loaded XMLSchemas false (default) Discard annotations found in the loaded XMLSchemas</p>
|
|
<p>"http://apache.org/xml/features/validate-annotations" true Check that annotations are valid according to their XMLSchema definition false (default) Don't validate annotations</p>
|
|
<p>"http://apache.org/xml/features/validation/identity-constraint-checking" true (default) Enforce identity constraints specified in the XMLSchema false Don't enforce identity constraints</p>
|
|
<p>"http://apache.org/xml/features/validation/ignoreCachedDTD" true Don't reuse DTDs found in the cache, even if use-cachedGrammarInParse is <code>true</code> false (default) Reuse DTDs found in the cache, if use-cachedGrammarInParse is <code>true</code></p>
|
|
<p>"http://apache.org/xml/features/schema/ignore-annotations" true Don't process annotations found in an XMLSchema false (default) Process the annotations found in an XMLSchema</p>
|
|
<p>"http://apache.org/xml/features/disable-default-entity-resolution" true Entities will be resolved only by a resolver installed by the user false (default) If the entity resolver has not been installed, or it refuses to resolve the given entity, the parser will try to locate it himself</p>
|
|
<p>"http://apache.org/xml/features/validation/schema/skip-dtd-validation" true If XMLSchema validation is <code>true</code>, DTD validation will not be performed false (default) If a DTD is found, it will be used to validate the XML</p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>The pointer to the configuration object. </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab1f523f0f72ea66e388e1399868c2762"></a><!-- doxytag: member="xercesc::DOMLSParser::getFilter" ref="ab1f523f0f72ea66e388e1399868c2762" args="() const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual const <a class="el" href="classxercesc_1_1DOMLSParserFilter.html">DOMLSParserFilter</a>* xercesc::DOMLSParser::getFilter </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Get a const pointer to the application filter. </p>
|
|
<p>This method returns the installed application filter. If no filter has been installed, then it will be a zero pointer.</p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>A const pointer to the installed application filter </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a922a6b6b16df38b68cb399b12a53ae51"></a><!-- doxytag: member="xercesc::DOMLSParser::getGrammar" ref="a922a6b6b16df38b68cb399b12a53ae51" args="(const XMLCh *const nameSpaceKey) const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Grammar* xercesc::DOMLSParser::getGrammar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh *const </td>
|
|
<td class="paramname"><em>nameSpaceKey</em></td><td>)</td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Retrieve the grammar that is associated with the specified namespace key. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">nameSpaceKey</td><td>Namespace key </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Grammar associated with the Namespace key. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7607dcbfb528129c44fd43cc96079a5b"></a><!-- doxytag: member="xercesc::DOMLSParser::getRootGrammar" ref="a7607dcbfb528129c44fd43cc96079a5b" args="() const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Grammar* xercesc::DOMLSParser::getRootGrammar </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Retrieve the grammar where the root element is declared. </p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Grammar where root element declared </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a710f44b8a0aae507143505cb2f46f809"></a><!-- doxytag: member="xercesc::DOMLSParser::getSrcOffset" ref="a710f44b8a0aae507143505cb2f46f809" args="() const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual XMLFilePos xercesc::DOMLSParser::getSrcOffset </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the current src offset within the input source. </p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>offset within the input source </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab1df9f28ce16a6ea4c9f1dc226ac2c75"></a><!-- doxytag: member="xercesc::DOMLSParser::getURIText" ref="ab1df9f28ce16a6ea4c9f1dc226ac2c75" args="(unsigned int uriId) const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual const XMLCh* xercesc::DOMLSParser::getURIText </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"><em>uriId</em></td><td>)</td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the string corresponding to a URI id from the URI string pool. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">uriId</td><td>id of the string in the URI string pool. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>URI string corresponding to the URI id. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a342c09fc7d32ce8b43e8b00e0d63b9cd"></a><!-- doxytag: member="xercesc::DOMLSParser::loadGrammar" ref="a342c09fc7d32ce8b43e8b00e0d63b9cd" args="(const char *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Grammar* xercesc::DOMLSParser::loadGrammar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char *const </td>
|
|
<td class="paramname"><em>systemId</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const Grammar::GrammarType </td>
|
|
<td class="paramname"><em>grammarType</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const bool </td>
|
|
<td class="paramname"><em>toCache</em> = <code>false</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. </p>
|
|
<p>This method invokes the preparsing process on a schema grammar XML file specified by the file path parameter. If the 'toCache' flag is enabled, the parser will cache the grammars for re-use. If a grammar key is found in the pool, no caching of any grammar will take place.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">systemId</td><td>A const char pointer to a native string which contains the path to the XML grammar file to be preparsed. </td></tr>
|
|
<tr><td class="paramname">grammarType</td><td>The grammar type (Schema or DTD). </td></tr>
|
|
<tr><td class="paramname">toCache</td><td>If <code>true</code>, we cache the preparsed grammar, otherwise, no chaching. Default is <code>false</code>. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>The preparsed schema grammar object (SchemaGrammar or DTDGrammar). That grammar object is owned by the parser.</dd></dl>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname">SAXException</td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
|
|
<tr><td class="paramname">XMLException</td><td>An exception from the parser or client handler code. </td></tr>
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></td><td>A DOM exception as per DOM spec. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1b78035eb95a780c6ccebbefffd84ff4"></a><!-- doxytag: member="xercesc::DOMLSParser::loadGrammar" ref="a1b78035eb95a780c6ccebbefffd84ff4" args="(const DOMLSInput *source, const Grammar::GrammarType grammarType, const bool toCache=false)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Grammar* xercesc::DOMLSParser::loadGrammar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classxercesc_1_1DOMLSInput.html">DOMLSInput</a> * </td>
|
|
<td class="paramname"><em>source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const Grammar::GrammarType </td>
|
|
<td class="paramname"><em>grammarType</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const bool </td>
|
|
<td class="paramname"><em>toCache</em> = <code>false</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Preparse schema grammar (XML Schema, DTD, etc.) via an input source object. </p>
|
|
<p>This method invokes the preparsing process on a schema grammar XML file specified by the <a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a> parameter. If the 'toCache' flag is enabled, the parser will cache the grammars for re-use. If a grammar key is found in the pool, no caching of any grammar will take place.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">source</td><td>A const reference to the <a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a> object which points to the schema grammar file to be preparsed. </td></tr>
|
|
<tr><td class="paramname">grammarType</td><td>The grammar type (Schema or DTD). </td></tr>
|
|
<tr><td class="paramname">toCache</td><td>If <code>true</code>, we cache the preparsed grammar, otherwise, no chaching. Default is <code>false</code>. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>The preparsed schema grammar object (SchemaGrammar or DTDGrammar). That grammar object is owned by the parser.</dd></dl>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname">SAXException</td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
|
|
<tr><td class="paramname">XMLException</td><td>An exception from the parser or client handler code. </td></tr>
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></td><td>A DOM exception as per DOM spec.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1DOMLSInput.html#a8733afa633d8ed541bcdc99abb147148">DOMLSInput::DOMLSInput</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad07ab388489070b466853ead0a9483ee"></a><!-- doxytag: member="xercesc::DOMLSParser::loadGrammar" ref="ad07ab388489070b466853ead0a9483ee" args="(const XMLCh *const systemId, const Grammar::GrammarType grammarType, const bool toCache=false)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual Grammar* xercesc::DOMLSParser::loadGrammar </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh *const </td>
|
|
<td class="paramname"><em>systemId</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const Grammar::GrammarType </td>
|
|
<td class="paramname"><em>grammarType</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const bool </td>
|
|
<td class="paramname"><em>toCache</em> = <code>false</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL. </p>
|
|
<p>This method invokes the preparsing process on a schema grammar XML file specified by the file path parameter. If the 'toCache' flag is enabled, the parser will cache the grammars for re-use. If a grammar key is found in the pool, no caching of any grammar will take place.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">systemId</td><td>A const XMLCh pointer to the Unicode string which contains the path to the XML grammar file to be preparsed. </td></tr>
|
|
<tr><td class="paramname">grammarType</td><td>The grammar type (Schema or DTD). </td></tr>
|
|
<tr><td class="paramname">toCache</td><td>If <code>true</code>, we cache the preparsed grammar, otherwise, no chaching. Default is <code>false</code>. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>The preparsed schema grammar object (SchemaGrammar or DTDGrammar). That grammar object is owned by the parser.</dd></dl>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname">SAXException</td><td>Any SAX exception, possibly wrapping another exception. </td></tr>
|
|
<tr><td class="paramname">XMLException</td><td>An exception from the parser or client handler code. </td></tr>
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></td><td>A DOM exception as per DOM spec. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1c0b1c6bddfd8a318be22575e1c2b35a"></a><!-- doxytag: member="xercesc::DOMLSParser::parse" ref="a1c0b1c6bddfd8a318be22575e1c2b35a" args="(const DOMLSInput *source)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>* xercesc::DOMLSParser::parse </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classxercesc_1_1DOMLSInput.html">DOMLSInput</a> * </td>
|
|
<td class="paramname"><em>source</em></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Parse an XML document from a resource identified by a <code><a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a></code>. </p>
|
|
<p>The parser owns the returned <a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a>. It will be deleted when the parser is released.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">source</td><td>The <code><a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a></code> from which the source of the document is to be read. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>If the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is a synchronous <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> the newly created and populated <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> is returned. If the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is asynchronous then <code>NULL</code> is returned since the document object may not yet be constructed when this method returns. </dd></dl>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></td><td>INVALID_STATE_ERR: Raised if the <code>DOMLSParser::busy</code> attribute is true. </td></tr>
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMLSException.html">DOMLSException</a></td><td>PARSE_ERR: Starting from Xerces-C++ 4.0.0 this exception is raised if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> was unable to load the XML document. DOM applications should attach a <code><a class="el" href="classxercesc_1_1DOMErrorHandler.html" title="Basic interface for DOM error handlers.">DOMErrorHandler</a></code> using the parameter "error-handler" if they wish to get details on the error.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1DOMLSInput.html#a8733afa633d8ed541bcdc99abb147148">DOMLSInput::DOMLSInput</a> </dd>
|
|
<dd>
|
|
<a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a> </dd>
|
|
<dd>
|
|
<a class="el" href="classxercesc_1_1DOMLSParser.html#ad8ee62271288319ca16565703b3088e9" title="Reset the documents vector pool and release all the associated memory back to the system...">resetDocumentPool</a> </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae8ac493e0c390960cdcde30dfcfa9e0f"></a><!-- doxytag: member="xercesc::DOMLSParser::parseURI" ref="ae8ac493e0c390960cdcde30dfcfa9e0f" args="(const XMLCh *const uri)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>* xercesc::DOMLSParser::parseURI </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh *const </td>
|
|
<td class="paramname"><em>uri</em></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Parse an XML document from a location identified by a URI reference [IETF RFC 2396]. </p>
|
|
<p>If the URI contains a fragment identifier (see section 4.1 in [IETF RFC 2396]), the behavior is not defined by this specification, future versions of this specification may define the behavior.</p>
|
|
<p>The parser owns the returned <a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a>. It will be deleted when the parser is released.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">uri</td><td>The location of the XML document to be read (in Unicode) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>If the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is a synchronous <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> the newly created and populated <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> is returned. If the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is asynchronous then <code>NULL</code> is returned since the document object is not yet parsed when this method returns. </dd></dl>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></td><td>INVALID_STATE_ERR: Raised if the <code>DOMLSParser::busy</code> attribute is true. </td></tr>
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMLSException.html">DOMLSException</a></td><td>PARSE_ERR: Starting from Xerces-C++ 4.0.0 this exception is raised if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> was unable to load the XML document. DOM applications should attach a <code><a class="el" href="classxercesc_1_1DOMErrorHandler.html" title="Basic interface for DOM error handlers.">DOMErrorHandler</a></code> using the parameter "error-handler" if they wish to get details on the error.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1DOMLSParser.html#a1c0b1c6bddfd8a318be22575e1c2b35a" title="Parse an XML document from a resource identified by a DOMLSInput.">parse</a>(<a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a>,...) </dd>
|
|
<dd>
|
|
<a class="el" href="classxercesc_1_1DOMLSParser.html#ad8ee62271288319ca16565703b3088e9" title="Reset the documents vector pool and release all the associated memory back to the system...">resetDocumentPool</a> </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8b51c2ea89f3974f6dd4ec0a81592874"></a><!-- doxytag: member="xercesc::DOMLSParser::parseURI" ref="a8b51c2ea89f3974f6dd4ec0a81592874" args="(const char *const uri)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>* xercesc::DOMLSParser::parseURI </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char *const </td>
|
|
<td class="paramname"><em>uri</em></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Parse an XML document from a location identified by a URI reference [IETF RFC 2396]. </p>
|
|
<p>If the URI contains a fragment identifier (see section 4.1 in [IETF RFC 2396]), the behavior is not defined by this specification, future versions of this specification may define the behavior.</p>
|
|
<p>The parser owns the returned <a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a>. It will be deleted when the parser is released.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">uri</td><td>The location of the XML document to be read (in the local code page) </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>If the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is a synchronous <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> the newly created and populated <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> is returned. If the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is asynchronous then <code>NULL</code> is returned since the document object is not yet parsed when this method returns. </dd></dl>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></td><td>INVALID_STATE_ERR: Raised if the <code>DOMLSParser::busy</code> attribute is true. </td></tr>
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMLSException.html">DOMLSException</a></td><td>PARSE_ERR: Starting from Xerces-C++ 4.0.0 this exception is raised if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> was unable to load the XML document. DOM applications should attach a <code><a class="el" href="classxercesc_1_1DOMErrorHandler.html" title="Basic interface for DOM error handlers.">DOMErrorHandler</a></code> using the parameter "error-handler" if they wish to get details on the error.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1DOMLSParser.html#a1c0b1c6bddfd8a318be22575e1c2b35a" title="Parse an XML document from a resource identified by a DOMLSInput.">parse</a>(<a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a>,...) </dd>
|
|
<dd>
|
|
<a class="el" href="classxercesc_1_1DOMLSParser.html#ad8ee62271288319ca16565703b3088e9" title="Reset the documents vector pool and release all the associated memory back to the system...">resetDocumentPool</a> </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a24e6f6a33080d8f962662e4fef4a4a00"></a><!-- doxytag: member="xercesc::DOMLSParser::parseWithContext" ref="a24e6f6a33080d8f962662e4fef4a4a00" args="(const DOMLSInput *source, DOMNode *contextNode, const ActionType action)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMLSParser::parseWithContext </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classxercesc_1_1DOMLSInput.html">DOMLSInput</a> * </td>
|
|
<td class="paramname"><em>source</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="paramname"><em>contextNode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classxercesc_1_1DOMLSParser.html#a5e94fce5ce6b35f848c3c4ce03e80933">ActionType</a> </td>
|
|
<td class="paramname"><em>action</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Parse an XML fragment from a resource identified by a <code><a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a></code> and insert the content into an existing document at the position specified with the context and action arguments. </p>
|
|
<p>When parsing the input stream, the context node (or its parent, depending on where the result will be inserted) is used for resolving unbound namespace prefixes. The context node's <code>ownerDocument</code> node (or the node itself if the node of type <code>DOCUMENT_NODE</code>) is used to resolve default attributes and entity references. As the new data is inserted into the document, at least one mutation event is fired per new immediate child or sibling of the context node. If the context node is a <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> node and the action is <code>ACTION_REPLACE_CHILDREN</code>, then the document that is passed as the context node will be changed such that its <code>xmlEncoding</code>, <code>documentURI</code>, <code>xmlVersion</code>, <code>inputEncoding</code>, <code>xmlStandalone</code>, and all other such attributes are set to what they would be set to if the input source was parsed using <code><a class="el" href="classxercesc_1_1DOMLSParser.html#a1c0b1c6bddfd8a318be22575e1c2b35a" title="Parse an XML document from a resource identified by a DOMLSInput.">DOMLSParser::parse()</a></code>. This method is always synchronous, even if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> is asynchronous (<code><a class="el" href="classxercesc_1_1DOMLSParser.html#a8aeb114e0ae9fa0f1c8200ac93afd5c9" title="Return whether the parser is asynchronous.">DOMLSParser::getAsync()</a></code> returns true). If an error occurs while parsing, the caller is notified through the <code>ErrorHandler</code> instance associated with the "error-handler" parameter of the <code><a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a></code>. When calling <code>parseWithContext</code>, the values of the following configuration parameters will be ignored and their default values will always be used instead: "validate", "validate-if-schema" "element-content-whitespace". Other parameters will be treated normally, and the parser is expected to call the <code><a class="el" href="classxercesc_1_1DOMLSParserFilter.html">DOMLSParserFilter</a></code> just as if a whole document was parsed.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">source</td><td>The <code><a class="el" href="classxercesc_1_1DOMLSInput.html" title="This interface represents a single input source for an XML entity.">DOMLSInput</a></code> from which the source document is to be read. The source document must be an XML fragment, i.e. anything except a complete XML document (except in the case where the context node of type <code>DOCUMENT_NODE</code>, and the action is <code>ACTION_REPLACE_CHILDREN</code>), a <code>DOCTYPE</code> (internal subset), entity declaration(s), notation declaration(s), or XML or text declaration(s). </td></tr>
|
|
<tr><td class="paramname">contextNode</td><td>The node that is used as the context for the data that is being parsed. This node must be a <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> node, a <code><a class="el" href="classxercesc_1_1DOMDocumentFragment.html" title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument object...">DOMDocumentFragment</a></code> node, or a node of a type that is allowed as a child of an <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> node, e.g. it cannot be an <code>DOMAttribute</code> node. </td></tr>
|
|
<tr><td class="paramname">action</td><td>This parameter describes which action should be taken between the new set of nodes being inserted and the existing children of the context node. The set of possible actions is defined in <code>ACTION_TYPES</code> above. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Return the node that is the result of the parse operation. If the result is more than one top-level node, the first one is returned.</dd></dl>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></td><td>HIERARCHY_REQUEST_ERR: Raised if the content cannot replace, be inserted before, after, or as a child of the context node (see also <code><a class="el" href="classxercesc_1_1DOMNode.html#ab53ebbb7276d3d20d24cb486f948717c" title="Inserts the node newChild before the existing child node refChild.">DOMNode::insertBefore</a></code> or <code><a class="el" href="classxercesc_1_1DOMNode.html#a94ce2693cd6634ac744ef6c3ed0609c0" title="Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node...">DOMNode::replaceChild</a></code> in [DOM Level 3 Core]). NOT_SUPPORTED_ERR: Raised if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> doesn't support this method, or if the context node is of type <code><a class="el" href="classxercesc_1_1DOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> and the DOM implementation doesn't support the replacement of the <code><a class="el" href="classxercesc_1_1DOMDocumentType.html" title="Each DOMDocument has a doctype attribute whose value is either null or a DOMDocumentType object...">DOMDocumentType</a></code> child or <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> child. NO_MODIFICATION_ALLOWED_ERR: Raised if the context node is a read only node and the content is being appended to its child list, or if the parent node of the context node is read only node and the content is being inserted in its child list. INVALID_STATE_ERR: Raised if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html#a9f67ede68295c401780c3d00525fc6d3" title="Return whether the parser is busy parsing.">DOMLSParser::getBusy()</a></code> returns true.</td></tr>
|
|
<tr><td class="paramname"><a class="el" href="classxercesc_1_1DOMLSException.html">DOMLSException</a></td><td>PARSE_ERR: Raised if the <code><a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a></code> was unable to load the XML fragment. DOM applications should attach a <code><a class="el" href="classxercesc_1_1DOMErrorHandler.html" title="Basic interface for DOM error handlers.">DOMErrorHandler</a></code> using the parameter "error-handler" if they wish to get details on the error. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a65be01a37333dceb926feada3cc943d5"></a><!-- doxytag: member="xercesc::DOMLSParser::release" ref="a65be01a37333dceb926feada3cc943d5" args="()=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMLSParser::release </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Called to indicate that this <a class="el" href="classxercesc_1_1DOMLSParser.html" title="DOMLSParser provides an API for parsing XML documents and building the corresponding DOM document tre...">DOMLSParser</a> is no longer in use and that the implementation may relinquish any resources associated with it. </p>
|
|
<p>Access to a released object will lead to unexpected result. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a77c98975c7d63ae7b2ec36c20f9b7584"></a><!-- doxytag: member="xercesc::DOMLSParser::resetCachedGrammarPool" ref="a77c98975c7d63ae7b2ec36c20f9b7584" args="()=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMLSParser::resetCachedGrammarPool </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Clear the cached grammar pool. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad8ee62271288319ca16565703b3088e9"></a><!-- doxytag: member="xercesc::DOMLSParser::resetDocumentPool" ref="ad8ee62271288319ca16565703b3088e9" args="()=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMLSParser::resetDocumentPool </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Reset the documents vector pool and release all the associated memory back to the system. </p>
|
|
<p>When parsing a document using a DOM parser, all memory allocated for a DOM tree is associated to the DOM document.</p>
|
|
<p>If you do multiple parse using the same DOM parser instance, then multiple DOM documents will be generated and saved in a vector pool. All these documents (and thus all the allocated memory) won't be deleted until the parser instance is destroyed.</p>
|
|
<p>If you don't need these DOM documents anymore and don't want to destroy the DOM parser instance at this moment, then you can call this method to reset the document vector pool and release all the allocated memory back to the system.</p>
|
|
<p>It is an error to call this method if you are in the middle of a parse (e.g. in the mid of a progressive parse).</p>
|
|
<dl><dt><b>Exceptions:</b></dt><dd>
|
|
<table class="exception">
|
|
<tr><td class="paramname">IOException</td><td>An exception from the parser if this function is called when a parse is in progress. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af94bb5843d1a9ef2966bbff05f919a03"></a><!-- doxytag: member="xercesc::DOMLSParser::setFilter" ref="af94bb5843d1a9ef2966bbff05f919a03" args="(DOMLSParserFilter *const filter)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMLSParser::setFilter </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMLSParserFilter.html">DOMLSParserFilter</a> *const </td>
|
|
<td class="paramname"><em>filter</em></td><td>)</td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Set the application filter. </p>
|
|
<p>When the application provides a filter, the parser will call out to the filter at the completion of the construction of each <code><a class="el" href="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> node. The filter implementation can choose to remove the element from the document being constructed or to terminate the parse early. The filter is invoked after the operations requested by the <a class="el" href="classxercesc_1_1DOMConfiguration.html" title="The DOMConfiguration interface represents the configuration of a document and maintains a table of re...">DOMConfiguration</a> parameters have been applied. For example, if "validate" is set to true, the validation is done before invoking the filter.</p>
|
|
<p><em>Any previously set filter is merely dropped, since the parser does not own them.</em></p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">filter</td><td>A const pointer to the user supplied application filter.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classxercesc_1_1DOMLSParser.html#ab1f523f0f72ea66e388e1399868c2762" title="Get a const pointer to the application filter.">getFilter</a> </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="DOMLSParser_8hpp_source.html">DOMLSParser.hpp</a></li>
|
|
</ul>
|
|
</div>
|
|
<hr class="footer"/><address class="footer"><small>Generated on Mon Oct 31 2011 19:08:37 for XQilla DOM Level 3 API by 
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
|
|
</body>
|
|
</html>
|