Week 28 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 1897 and Bug 1522.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: examples/SysLibs/XmlExample/xmlexample.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>examples/SysLibs/XmlExample/xmlexample.cpp File Reference</h1>
<p><a href="xmlexample_8cpp_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79d29997f1acff80b54002283f1968c5"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a79d29997f1acff80b54002283f1968c5" args="(KTitle,"XML example")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTitle,"XML example")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ec6c77c4cfe297f1e310eda07b3f555"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a7ec6c77c4cfe297f1e310eda07b3f555" args="(KStartKey,"\nThe example parses the given XML and WBXML files. Press any key to start\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KStartKey,"\nThe example parses the given XML and WBXML files. Press any key to start\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe7269e632d6878521fc75373ae7869e"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="abe7269e632d6878521fc75373ae7869e" args="(KPressAKey,"\nPress any key to continue \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPressAKey,"\nPress any key to continue \n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc19738e02bd634718c3948937397373"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="adc19738e02bd634718c3948937397373" args="(KExit,"\n Press any key to exit the application \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KExit,"\n Press any key to exit the application \n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a582d575367b306f8bf93c1725da364f2"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a582d575367b306f8bf93c1725da364f2" args="(KParsingXml,"\nParsing the XML file")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KParsingXml,"\nParsing the XML file")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa7263bf6db42018ae1d40c52f8d0913"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="afa7263bf6db42018ae1d40c52f8d0913" args="(KParsingWbXml,"\nParsing the WBXML file")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KParsingWbXml,"\nParsing the WBXML file")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4228d08f2ce91ac9b416bd1d9f60366"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="ac4228d08f2ce91ac9b416bd1d9f60366" args="(KParsingMatch,"\nParsing the XML file using match data criteria")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KParsingMatch,"\nParsing the XML file using match data criteria")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace265fc2f3da749d67eaec486830ae74"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="ace265fc2f3da749d67eaec486830ae74" args="(KError,"\n Could not open the XML file. Please check if the file exists.")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KError,"\n Could not open the XML file. Please check if the file exists.")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40730f3c363bf8f721aa97d4a0bc4453"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a40730f3c363bf8f721aa97d4a0bc4453" args="(KOnStartDoc,"\n<!-- CXmlExample::OnStartDocumentL -->\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOnStartDoc,"\n<!-- CXmlExample::OnStartDocumentL -->\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af99b2cfacc8059fa1ede511d8d9a4fa2"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="af99b2cfacc8059fa1ede511d8d9a4fa2" args="(KOnEndDoc,"\n<!-- CXmlExample::OnEndDocumentL -->\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOnEndDoc,"\n<!-- CXmlExample::OnEndDocumentL -->\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abccb0af980d82d2bf71db469eeebdaba"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="abccb0af980d82d2bf71db469eeebdaba" args="(KOnContent,"<!-- CXmlExample::OnContentL -->")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOnContent,"<!-- CXmlExample::OnContentL -->")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a279d568ba8b55213dd324eb6103f56"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a3a279d568ba8b55213dd324eb6103f56" args="(KOnProcInstrn,"\n<!-- CXmlExample::OnProcessingInstructionL -->\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOnProcInstrn,"\n<!-- CXmlExample::OnProcessingInstructionL -->\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aabbf1dd66f51c9350ee7d7d971aa95f9"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="aabbf1dd66f51c9350ee7d7d971aa95f9" args="(KOnError,"CXmlExample::OnError - ERROR: code=%d\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOnError,"CXmlExample::OnError - ERROR: code=%d\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e2a4ea45365b9d94ad430dc7592ae6b"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a8e2a4ea45365b9d94ad430dc7592ae6b" args="(KVersion,"<?xml version=\"1.0\" encoding=\"%S\"?>\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KVersion,"<?xml version=\"1.0\" encoding=\"%S\"?>\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98ac4d5bbb9bfc2e0817b36c232462fb"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a98ac4d5bbb9bfc2e0817b36c232462fb" args="(KStartElement,"\nStart of element: <%S>\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KStartElement,"\nStart of element: <%S>\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a142ac513ed81c4090adc43fb02b8d21f"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a142ac513ed81c4090adc43fb02b8d21f" args="(KEndElement,"\nEnd of element: </%S>\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KEndElement,"\nEnd of element: </%S>\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85dc5c19ac0d293976fe106f637135b5"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a85dc5c19ac0d293976fe106f637135b5" args="(KContent,"%S\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KContent,"%S\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b65eb1ee454e1cce11c2c554c8546bb"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a7b65eb1ee454e1cce11c2c554c8546bb" args="(KAttrib,"The attribute of element <%S>=\"%S\"")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KAttrib,"The attribute of element <%S>=\"%S\"")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2a88642957c95ee10e9423eeda2905d8"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a2a88642957c95ee10e9423eeda2905d8" args="(KProcInstrn,"<?%S %S?>\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KProcInstrn,"<?%S %S?>\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4676cf2741d1724e1d05c48f25d64dc2"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a4676cf2741d1724e1d05c48f25d64dc2" args="(KOnSkipped,"Found skipped entity %S")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KOnSkipped,"Found skipped entity %S")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98ff2e13ce2c6967833ad8b772e87d66"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a98ff2e13ce2c6967833ad8b772e87d66" args="(KNameSpaceRep,"\nNamespace mapping reporting enabled\n ")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KNameSpaceRep,"\nNamespace mapping reporting enabled\n ")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a128ae99bce705cbbe86f68e02e34d947"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a128ae99bce705cbbe86f68e02e34d947" args="(KPrefixMap,"\nThe prefix is %S and URI is %S\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPrefixMap,"\nThe prefix is %S and URI is %S\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a594e1e1a601d1e594ee42fe9c1fb1cda"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a594e1e1a601d1e594ee42fe9c1fb1cda" args="(KPrefixEnd,"End of prefix URI mapping %S\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KPrefixEnd,"End of prefix URI mapping %S\n")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9060d5c0ea2a0de24f5e9f36257c1592"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a9060d5c0ea2a0de24f5e9f36257c1592" args="(KSimpleXmlFile,"z:\\private\\E80000AE\\xmlexample.xml")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KSimpleXmlFile,"z:\\private\\E80000AE\\xmlexample.xml")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84fa8254c5e1e95686d265840107a67f"></a><!-- doxytag: member="xmlexample.cpp::_LIT" ref="a84fa8254c5e1e95686d265840107a67f" args="(KSimpleWbXmlFile,"z:\\private\\E80000AE\\xmlexample.wbxml")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KSimpleWbXmlFile,"z:\\private\\E80000AE\\xmlexample.wbxml")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62374a489a6a4b8d372378b06851bd39"></a><!-- doxytag: member="xmlexample.cpp::_LIT8" ref="a62374a489a6a4b8d372378b06851bd39" args="(KXmlMimeType,"text/xml")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT8</b> (KXmlMimeType,"text/xml")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ed0a6edf2a5cbe8265ea49227cdab56"></a><!-- doxytag: member="xmlexample.cpp::_LIT8" ref="a9ed0a6edf2a5cbe8265ea49227cdab56" args="(KWbxmlMimeType,"text/wbxml")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT8</b> (KWbxmlMimeType,"text/wbxml")</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LOCAL_C void </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlexample_8cpp.html#a689e0bf9aa924a1d7dc108665d44736c">MainL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GLDEF_C TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlexample_8cpp.html#a0f358e9c4355138f629b8c4f37310295">E32Main</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Definition in file <a class="el" href="xmlexample_8cpp_source.html">xmlexample.cpp</a>.</p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a689e0bf9aa924a1d7dc108665d44736c"></a><!-- doxytag: member="xmlexample.cpp::MainL" ref="a689e0bf9aa924a1d7dc108665d44736c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">LOCAL_C void MainL </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Much simpler MainL(), uses the new Rendezvous() call to sync with the client</p>
<p>Secure variant Much simpler, uses the new Rendezvous() call to sync with the client </p>
<p>Definition at line <a class="el" href="xmlexample_8cpp_source.html#l00449">449</a> of file <a class="el" href="xmlexample_8cpp_source.html">xmlexample.cpp</a>.</p>
</div>
</div>
<a class="anchor" id="a0f358e9c4355138f629b8c4f37310295"></a><!-- doxytag: member="xmlexample.cpp::E32Main" ref="a0f358e9c4355138f629b8c4f37310295" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">GLDEF_C TInt E32Main </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns standard error code on exit</p>
<p>Secure variant only Process entry point. Called by client using RProcess API </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Standard Epoc error code on process exit</dd>
<dd>
Standard Epoc error code on process exit Secure variant only Process entry point. Called by client using RProcess API</dd></dl>
<p>Entry point for the example</p>
<p>The below section is added to make the code compatible with v9.1 This is because only exe files are compatible with v9.1</p>
<p>Standard entry point function.</p>
<p>A normal Symbian OS executable provides an E32Main() function which is called by the operating system to start the program. </p>
<p>Definition at line <a class="el" href="xmlexample_8cpp_source.html#l00459">459</a> of file <a class="el" href="xmlexample_8cpp_source.html">xmlexample.cpp</a>.</p>
</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>