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

📄 a00015.html

📁 这是symbian下的实现XML解析的源代码。里面包括解析器和解析例子代码。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<p>Intended Usage : Helper function to generate a panic. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aPanic</em>&nbsp;</td><td>the panic code for the error </td></tr>  </table></dl><dl compact><dt><b>Precondition:</b></dt><dd>First phase of construction is complete. </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Never returns, only leaves!. </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea17" doxytag="CSyGeneratorBase::ProcessingInstructionL"></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::ProcessingInstructionL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aTarget</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>aData</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Writes out string a processing instruction to the xml writer. <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>aTarget</em>&nbsp;</td><td>the target of the processing instruction </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aData</em>&nbsp;</td><td>the data for the processing instruction. </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>none </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea13" doxytag="CSyGeneratorBase::SetAttributeL"></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::SetAttributeL           </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" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aValue</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Assigns an attribute to an element. <p>This form is the default form and write attributes with a namespace. If aPrefix is empty then the attribute name only will be written out. <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 attribute. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aName</em>&nbsp;</td><td>the name of the attribute. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aValue</em>&nbsp;</td><td>the value of the attribute </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>StartElement must have been called, but not EndElement </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>none </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea12" doxytag="CSyGeneratorBase::SetAttributeL"></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::SetAttributeL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aName</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>aValue</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Assigns an attribute to an element. <p>This form is used to write attributes with no namespace. <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 attribute. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aValue</em>&nbsp;</td><td>the value of the attribute. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>StartElement must have been called, but not EndElement </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>none </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea11" doxytag="CSyGeneratorBase::SetNamespaceL"></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::SetNamespaceL           </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>aURI</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Assigns a prefix to a a namespace within an element definition. <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>aPrefix</em>&nbsp;</td><td>the prefix to be mapped to the specified URI </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aURI</em>&nbsp;</td><td>the URI of the namespace to be set as the default namespace. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>StartElement must have been called, but not EndElement </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>none </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea10" doxytag="CSyGeneratorBase::SetNamespaceL"></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::SetNamespaceL           </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>aURI</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Declares a namespace within an element definition. <p>This is used to set the default namespace for 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>aURI</em>&nbsp;</td><td>the URI of the namespace to be set as the default namespace. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>none </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>StartElement must have been called, but not EndElement </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>this default namespace for this and all child elements will now be this URI </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyGeneratorBasea19" doxytag="CSyGeneratorBase::StartCDATAL"></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::StartCDATAL           </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></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Starts a CDATA Section. 

⌨️ 快捷键说明

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