⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a00014.html

📁 这是symbian下的实现XML解析的源代码。里面包括解析器和解析例子代码。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Generates the default document handler. <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>KErrNoMemory</em>&nbsp;</td><td>if no memory for buffer ELevelUnderRun if startdoc already called </td></tr>  </table></dl><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aStandalone</em>&nbsp;</td><td>indicates if the document is standalone. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea1" doxytag="CSyGenerator::StartDocumentL"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CSyGeneratorBase::StartDocumentL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aEncoding</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const TBool&nbsp;</td>          <td class="mdname" nowrap> <em>aStandalone</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aPublicId</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aSystemId</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Generates the XML header and sends it to the output handler. <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>KErrNoMemory</em>&nbsp;</td><td>if no memory for buffer ELevelUnderRun if startdoc already called </td></tr>  </table></dl><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aEncoding</em>&nbsp;</td><td>the document encoding. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aStandalone</em>&nbsp;</td><td>whether the document is standalone. i.e. it does not have an external DTD. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aPublicId</em>&nbsp;</td><td>the public id of the document. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aSystemId</em>&nbsp;</td><td>the system id of the document. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea7" doxytag="CSyGenerator::StartElementL"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CSyGeneratorBase::StartElementL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aPrefix</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aName</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Starts an element that has a prefix. <p>Call SetNamespaceL and SetAttributeL functions to add attributs and namespaces to the element <dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>KErrNoMemory</em>&nbsp;</td><td>if no memory for buffer. </td></tr>  </table></dl><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aPrefix</em>&nbsp;</td><td>the namespace prefix of the element. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aName</em>&nbsp;</td><td>the name of the element. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>The name is added to the context stack so must be kept until its respective EndElementL function is called. </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea6" doxytag="CSyGenerator::StartElementL"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CSyGeneratorBase::StartElementL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aName</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Starts an element that does not have a prefix. <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>KErrNoMemory</em>&nbsp;</td><td>if no memory for buffer. </td></tr>  </table></dl><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aName</em>&nbsp;</td><td>the name of the element. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>The name is added to the context stack so must be kept until its respective EndElementL function is called. </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea4" doxytag="CSyGenerator::StartFragmentL"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CSyGeneratorBase::StartFragmentL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Starts the xml fragment. <p>i.e. no document header <dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>KErrNoMemory</em>&nbsp;</td><td>if no memory for buffer ELevelUnderRun if startdoc already called </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea21" doxytag="CSyGenerator::VersionInfo"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">const TVersion CSyGeneratorBase::VersionInfo           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: This should be used to get the version number of the XMLWriter. <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>KErrNoMemory</em>&nbsp;</td><td>if no memory for buffer. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The version structure with the version info of the writer </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>none </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>none </dd></dl>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="../../d3/dfe/a00025.html">SyGen.h</a></ul><HR><center><strong>Expat Homepage <A HREF="http://www.toddsoftware.com">http://www.toddsoftware.com</A></strong></center></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -