You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

417 lines
25 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>Xerces-C++: AttributeList Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">Xerces-C++
  21. &#160;<span id="projectnumber">3.1.2</span>
  22. </div>
  23. </td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. </div>
  28. <!-- end header part -->
  29. <!-- Generated by Doxygen 1.8.9.1 -->
  30. <div id="navrow1" class="tabs">
  31. <ul class="tablist">
  32. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  33. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  34. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  35. <li><a href="files.html"><span>Files</span></a></li>
  36. </ul>
  37. </div>
  38. <div id="navrow2" class="tabs2">
  39. <ul class="tablist">
  40. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  41. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  42. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  43. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  44. </ul>
  45. </div>
  46. </div><!-- top -->
  47. <div class="header">
  48. <div class="summary">
  49. <a href="classAttributeList-members.html">List of all members</a> </div>
  50. <div class="headertitle">
  51. <div class="title">AttributeList Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  52. </div><!--header-->
  53. <div class="contents">
  54. <p>Interface for an element's attribute specifications.
  55. <a href="classAttributeList.html#details">More...</a></p>
  56. <table class="memberdecls">
  57. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  58. Public Member Functions</h2></td></tr>
  59. <tr><td colspan="2"><div class="groupHeader">Constructors and Destructor</div></td></tr>
  60. <tr class="memitem:a192435ac438fe36a41a978bced27a7dc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#a192435ac438fe36a41a978bced27a7dc">AttributeList</a> ()</td></tr>
  61. <tr class="memdesc:a192435ac438fe36a41a978bced27a7dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <a href="#a192435ac438fe36a41a978bced27a7dc">More...</a><br /></td></tr>
  62. <tr class="separator:a192435ac438fe36a41a978bced27a7dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  63. <tr class="memitem:a011a36f9db543d4e248a883a09e38246"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#a011a36f9db543d4e248a883a09e38246">~AttributeList</a> ()</td></tr>
  64. <tr class="memdesc:a011a36f9db543d4e248a883a09e38246"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <a href="#a011a36f9db543d4e248a883a09e38246">More...</a><br /></td></tr>
  65. <tr class="separator:a011a36f9db543d4e248a883a09e38246"><td class="memSeparator" colspan="2">&#160;</td></tr>
  66. <tr><td colspan="2"><div class="groupHeader">The virtual attribute list interface</div></td></tr>
  67. <tr class="memitem:a643f1b6465cb6f1f7cff89263efd833c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#a643f1b6465cb6f1f7cff89263efd833c">getLength</a> () const =0</td></tr>
  68. <tr class="memdesc:a643f1b6465cb6f1f7cff89263efd833c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of attributes in this list. <a href="#a643f1b6465cb6f1f7cff89263efd833c">More...</a><br /></td></tr>
  69. <tr class="separator:a643f1b6465cb6f1f7cff89263efd833c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  70. <tr class="memitem:a3d8a300ce791232a745b2af28856a356"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#a3d8a300ce791232a745b2af28856a356">getName</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> index) const =0</td></tr>
  71. <tr class="memdesc:a3d8a300ce791232a745b2af28856a356"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the name of an attribute in this list (by position). <a href="#a3d8a300ce791232a745b2af28856a356">More...</a><br /></td></tr>
  72. <tr class="separator:a3d8a300ce791232a745b2af28856a356"><td class="memSeparator" colspan="2">&#160;</td></tr>
  73. <tr class="memitem:a0ddc41e174285f15a76caf1fdc2486fe"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#a0ddc41e174285f15a76caf1fdc2486fe">getType</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> index) const =0</td></tr>
  74. <tr class="memdesc:a0ddc41e174285f15a76caf1fdc2486fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the type of an attribute in the list (by position). <a href="#a0ddc41e174285f15a76caf1fdc2486fe">More...</a><br /></td></tr>
  75. <tr class="separator:a0ddc41e174285f15a76caf1fdc2486fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:ab4bf15238437e13da79bef4e6e13b6ef"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#ab4bf15238437e13da79bef4e6e13b6ef">getValue</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> index) const =0</td></tr>
  77. <tr class="memdesc:ab4bf15238437e13da79bef4e6e13b6ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the value of an attribute in the list (by position). <a href="#ab4bf15238437e13da79bef4e6e13b6ef">More...</a><br /></td></tr>
  78. <tr class="separator:ab4bf15238437e13da79bef4e6e13b6ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a9f6f66d9709e8937fc39c53a6e9e8306"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#a9f6f66d9709e8937fc39c53a6e9e8306">getType</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const name) const =0</td></tr>
  80. <tr class="memdesc:a9f6f66d9709e8937fc39c53a6e9e8306"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the type of an attribute in the list (by name). <a href="#a9f6f66d9709e8937fc39c53a6e9e8306">More...</a><br /></td></tr>
  81. <tr class="separator:a9f6f66d9709e8937fc39c53a6e9e8306"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <tr class="memitem:afeb329f05e0c21538314ee0ca36617a1"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#afeb329f05e0c21538314ee0ca36617a1">getValue</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const name) const =0</td></tr>
  83. <tr class="memdesc:afeb329f05e0c21538314ee0ca36617a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the value of an attribute in the list (by name). <a href="#afeb329f05e0c21538314ee0ca36617a1">More...</a><br /></td></tr>
  84. <tr class="separator:afeb329f05e0c21538314ee0ca36617a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:a156441032c80aa4214619c205bd1cd34"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAttributeList.html#a156441032c80aa4214619c205bd1cd34">getValue</a> (const char *const name) const =0</td></tr>
  86. <tr class="memdesc:a156441032c80aa4214619c205bd1cd34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the value of an attribute in the list (by name). <a href="#a156441032c80aa4214619c205bd1cd34">More...</a><br /></td></tr>
  87. <tr class="separator:a156441032c80aa4214619c205bd1cd34"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. </table>
  89. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  90. <div class="textblock"><p>Interface for an element's attribute specifications. </p>
  91. <p>The SAX parser implements this interface and passes an instance to the SAX application as the second argument of each startElement event.</p>
  92. <p>The instance provided will return valid results only during the scope of the startElement invocation (to save it for future use, the application must make a copy: the AttributeListImpl helper class provides a convenient constructor for doing so).</p>
  93. <p>An <a class="el" href="classAttributeList.html" title="Interface for an element&#39;s attribute specifications. ">AttributeList</a> includes only attributes that have been specified or defaulted: #IMPLIED attributes will not be included.</p>
  94. <p>There are two ways for the SAX application to obtain information from the <a class="el" href="classAttributeList.html" title="Interface for an element&#39;s attribute specifications. ">AttributeList</a>. First, it can iterate through the entire list:</p>
  95. <p><code> public void startElement (String name, <a class="el" href="classAttributeList.html" title="Interface for an element&#39;s attribute specifications. ">AttributeList</a> atts) {<br />
  96. &#160;for (XMLSize_t i = 0; i &lt; atts.getLength(); i++) {<br />
  97. &#160;&#160;String name = atts.getName(i);<br />
  98. &#160;&#160;String type = atts.getType(i);<br />
  99. &#160;&#160;String value = atts.getValue(i);<br />
  100. &#160;&#160;[...]<br />
  101. &#160;}<br />
  102. } </code></p>
  103. <p>(Note that the result of <a class="el" href="classAttributeList.html#a643f1b6465cb6f1f7cff89263efd833c" title="Return the number of attributes in this list. ">getLength()</a> will be zero if there are no attributes.)</p>
  104. <p>As an alternative, the application can request the value or type of specific attributes:</p>
  105. <p><code> public void startElement (String name, <a class="el" href="classAttributeList.html" title="Interface for an element&#39;s attribute specifications. ">AttributeList</a> atts) {<br />
  106. &#160;String identifier = atts.getValue("id");<br />
  107. &#160;String label = atts.getValue("label");<br />
  108. &#160;[...]<br />
  109. } </code></p>
  110. <p>The AttributeListImpl helper class provides a convenience implementation for use by parser or application writers.</p>
  111. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classDocumentHandler.html#a15fb4581aec4828d3ee85b658f7ceb69" title="Receive notification of the beginning of an element. ">DocumentHandler::startElement</a> </dd>
  112. <dd>
  113. AttributeListImpl::AttributeListImpl </dd></dl>
  114. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  115. <a class="anchor" id="a192435ac438fe36a41a978bced27a7dc"></a>
  116. <div class="memitem">
  117. <div class="memproto">
  118. <table class="memname">
  119. <tr>
  120. <td class="memname">AttributeList::AttributeList </td>
  121. <td>(</td>
  122. <td class="paramname"></td><td>)</td>
  123. <td></td>
  124. </tr>
  125. </table>
  126. </div><div class="memdoc">
  127. <p>Default constructor. </p>
  128. </div>
  129. </div>
  130. <a class="anchor" id="a011a36f9db543d4e248a883a09e38246"></a>
  131. <div class="memitem">
  132. <div class="memproto">
  133. <table class="mlabels">
  134. <tr>
  135. <td class="mlabels-left">
  136. <table class="memname">
  137. <tr>
  138. <td class="memname">virtual AttributeList::~AttributeList </td>
  139. <td>(</td>
  140. <td class="paramname"></td><td>)</td>
  141. <td></td>
  142. </tr>
  143. </table>
  144. </td>
  145. <td class="mlabels-right">
  146. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  147. </tr>
  148. </table>
  149. </div><div class="memdoc">
  150. <p>Destructor. </p>
  151. </div>
  152. </div>
  153. <h2 class="groupheader">Member Function Documentation</h2>
  154. <a class="anchor" id="a643f1b6465cb6f1f7cff89263efd833c"></a>
  155. <div class="memitem">
  156. <div class="memproto">
  157. <table class="mlabels">
  158. <tr>
  159. <td class="mlabels-left">
  160. <table class="memname">
  161. <tr>
  162. <td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> AttributeList::getLength </td>
  163. <td>(</td>
  164. <td class="paramname"></td><td>)</td>
  165. <td> const</td>
  166. </tr>
  167. </table>
  168. </td>
  169. <td class="mlabels-right">
  170. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  171. </tr>
  172. </table>
  173. </div><div class="memdoc">
  174. <p>Return the number of attributes in this list. </p>
  175. <p>The SAX parser may provide attributes in any arbitrary order, regardless of the order in which they were declared or specified. The number of attributes may be zero.</p>
  176. <dl class="section return"><dt>Returns</dt><dd>The number of attributes in the list. </dd></dl>
  177. </div>
  178. </div>
  179. <a class="anchor" id="a3d8a300ce791232a745b2af28856a356"></a>
  180. <div class="memitem">
  181. <div class="memproto">
  182. <table class="mlabels">
  183. <tr>
  184. <td class="mlabels-left">
  185. <table class="memname">
  186. <tr>
  187. <td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* AttributeList::getName </td>
  188. <td>(</td>
  189. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  190. <td class="paramname"><em>index</em></td><td>)</td>
  191. <td> const</td>
  192. </tr>
  193. </table>
  194. </td>
  195. <td class="mlabels-right">
  196. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  197. </tr>
  198. </table>
  199. </div><div class="memdoc">
  200. <p>Return the name of an attribute in this list (by position). </p>
  201. <p>The names must be unique: the SAX parser shall not include the same attribute twice. <a class="el" href="classAttributes.html" title="Interface for an element&#39;s attribute specifications. ">Attributes</a> without values (those declared #IMPLIED without a value specified in the start tag) will be omitted from the list.</p>
  202. <p>If the attribute name has a namespace prefix, the prefix will still be attached.</p>
  203. <dl class="params"><dt>Parameters</dt><dd>
  204. <table class="params">
  205. <tr><td class="paramname">index</td><td>The index of the attribute in the list (starting at 0). </td></tr>
  206. </table>
  207. </dd>
  208. </dl>
  209. <dl class="section return"><dt>Returns</dt><dd>The name of the indexed attribute, or null if the index is out of range. </dd></dl>
  210. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributeList.html#a643f1b6465cb6f1f7cff89263efd833c" title="Return the number of attributes in this list. ">getLength</a> </dd></dl>
  211. </div>
  212. </div>
  213. <a class="anchor" id="a0ddc41e174285f15a76caf1fdc2486fe"></a>
  214. <div class="memitem">
  215. <div class="memproto">
  216. <table class="mlabels">
  217. <tr>
  218. <td class="mlabels-left">
  219. <table class="memname">
  220. <tr>
  221. <td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* AttributeList::getType </td>
  222. <td>(</td>
  223. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  224. <td class="paramname"><em>index</em></td><td>)</td>
  225. <td> const</td>
  226. </tr>
  227. </table>
  228. </td>
  229. <td class="mlabels-right">
  230. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  231. </tr>
  232. </table>
  233. </div><div class="memdoc">
  234. <p>Return the type of an attribute in the list (by position). </p>
  235. <p>The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).</p>
  236. <p>If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommendation (clause 3.3.3, "Attribute-Value Normalization").</p>
  237. <p>For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".</p>
  238. <dl class="params"><dt>Parameters</dt><dd>
  239. <table class="params">
  240. <tr><td class="paramname">index</td><td>The index of the attribute in the list (starting at 0). </td></tr>
  241. </table>
  242. </dd>
  243. </dl>
  244. <dl class="section return"><dt>Returns</dt><dd>The attribute type as a string, or null if the index is out of range. </dd></dl>
  245. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributeList.html#a643f1b6465cb6f1f7cff89263efd833c" title="Return the number of attributes in this list. ">getLength</a> </dd>
  246. <dd>
  247. <a class="el" href="classAttributeList.html#a0ddc41e174285f15a76caf1fdc2486fe" title="Return the type of an attribute in the list (by position). ">getType</a> </dd></dl>
  248. </div>
  249. </div>
  250. <a class="anchor" id="a9f6f66d9709e8937fc39c53a6e9e8306"></a>
  251. <div class="memitem">
  252. <div class="memproto">
  253. <table class="mlabels">
  254. <tr>
  255. <td class="mlabels-left">
  256. <table class="memname">
  257. <tr>
  258. <td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* AttributeList::getType </td>
  259. <td>(</td>
  260. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  261. <td class="paramname"><em>name</em></td><td>)</td>
  262. <td> const</td>
  263. </tr>
  264. </table>
  265. </td>
  266. <td class="mlabels-right">
  267. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  268. </tr>
  269. </table>
  270. </div><div class="memdoc">
  271. <p>Return the type of an attribute in the list (by name). </p>
  272. <p>The return value is the same as the return value for getType(XMLSize_t).</p>
  273. <p>If the attribute name has a namespace prefix in the document, the application must include the prefix here.</p>
  274. <dl class="params"><dt>Parameters</dt><dd>
  275. <table class="params">
  276. <tr><td class="paramname">name</td><td>The name of the attribute. </td></tr>
  277. </table>
  278. </dd>
  279. </dl>
  280. <dl class="section return"><dt>Returns</dt><dd>The attribute type as a string, or null if no such attribute exists. </dd></dl>
  281. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributeList.html#a0ddc41e174285f15a76caf1fdc2486fe" title="Return the type of an attribute in the list (by position). ">getType</a> </dd></dl>
  282. </div>
  283. </div>
  284. <a class="anchor" id="ab4bf15238437e13da79bef4e6e13b6ef"></a>
  285. <div class="memitem">
  286. <div class="memproto">
  287. <table class="mlabels">
  288. <tr>
  289. <td class="mlabels-left">
  290. <table class="memname">
  291. <tr>
  292. <td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* AttributeList::getValue </td>
  293. <td>(</td>
  294. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
  295. <td class="paramname"><em>index</em></td><td>)</td>
  296. <td> const</td>
  297. </tr>
  298. </table>
  299. </td>
  300. <td class="mlabels-right">
  301. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  302. </tr>
  303. </table>
  304. </div><div class="memdoc">
  305. <p>Return the value of an attribute in the list (by position). </p>
  306. <p>If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string separated by whitespace.</p>
  307. <dl class="params"><dt>Parameters</dt><dd>
  308. <table class="params">
  309. <tr><td class="paramname">index</td><td>The index of the attribute in the list (starting at 0). </td></tr>
  310. </table>
  311. </dd>
  312. </dl>
  313. <dl class="section return"><dt>Returns</dt><dd>The attribute value as a string, or null if the index is out of range. </dd></dl>
  314. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributeList.html#a643f1b6465cb6f1f7cff89263efd833c" title="Return the number of attributes in this list. ">getLength</a> </dd>
  315. <dd>
  316. <a class="el" href="classAttributeList.html#ab4bf15238437e13da79bef4e6e13b6ef" title="Return the value of an attribute in the list (by position). ">getValue</a> </dd></dl>
  317. </div>
  318. </div>
  319. <a class="anchor" id="afeb329f05e0c21538314ee0ca36617a1"></a>
  320. <div class="memitem">
  321. <div class="memproto">
  322. <table class="mlabels">
  323. <tr>
  324. <td class="mlabels-left">
  325. <table class="memname">
  326. <tr>
  327. <td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* AttributeList::getValue </td>
  328. <td>(</td>
  329. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  330. <td class="paramname"><em>name</em></td><td>)</td>
  331. <td> const</td>
  332. </tr>
  333. </table>
  334. </td>
  335. <td class="mlabels-right">
  336. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  337. </tr>
  338. </table>
  339. </div><div class="memdoc">
  340. <p>Return the value of an attribute in the list (by name). </p>
  341. <p>The return value is the same as the return value for getValue(XMLSize_t).</p>
  342. <p>If the attribute name has a namespace prefix in the document, the application must include the prefix here.</p>
  343. <dl class="params"><dt>Parameters</dt><dd>
  344. <table class="params">
  345. <tr><td class="paramname">name</td><td>The name of the attribute in the list. </td></tr>
  346. </table>
  347. </dd>
  348. </dl>
  349. <dl class="section return"><dt>Returns</dt><dd>The attribute value as a string, or null if no such attribute exists. </dd></dl>
  350. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributeList.html#ab4bf15238437e13da79bef4e6e13b6ef" title="Return the value of an attribute in the list (by position). ">getValue</a> </dd></dl>
  351. </div>
  352. </div>
  353. <a class="anchor" id="a156441032c80aa4214619c205bd1cd34"></a>
  354. <div class="memitem">
  355. <div class="memproto">
  356. <table class="mlabels">
  357. <tr>
  358. <td class="mlabels-left">
  359. <table class="memname">
  360. <tr>
  361. <td class="memname">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* AttributeList::getValue </td>
  362. <td>(</td>
  363. <td class="paramtype">const char *const&#160;</td>
  364. <td class="paramname"><em>name</em></td><td>)</td>
  365. <td> const</td>
  366. </tr>
  367. </table>
  368. </td>
  369. <td class="mlabels-right">
  370. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  371. </tr>
  372. </table>
  373. </div><div class="memdoc">
  374. <p>Return the value of an attribute in the list (by name). </p>
  375. <p>The return value is the same as the return value for getValue(XMLSize_t).</p>
  376. <p>If the attribute name has a namespace prefix in the document, the application must include the prefix here.</p>
  377. <dl class="params"><dt>Parameters</dt><dd>
  378. <table class="params">
  379. <tr><td class="paramname">name</td><td>The name of the attribute in the list. </td></tr>
  380. </table>
  381. </dd>
  382. </dl>
  383. <dl class="section return"><dt>Returns</dt><dd>The attribute value as a string, or null if no such attribute exists. </dd></dl>
  384. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classAttributeList.html#ab4bf15238437e13da79bef4e6e13b6ef" title="Return the value of an attribute in the list (by position). ">getValue</a> </dd></dl>
  385. </div>
  386. </div>
  387. <hr/>The documentation for this class was generated from the following file:<ul>
  388. <li><a class="el" href="AttributeList_8hpp_source.html">AttributeList.hpp</a></li>
  389. </ul>
  390. </div><!-- contents -->
  391. <!-- start footer part -->
  392. <hr class="footer"/><address class="footer"><small>
  393. Generated on Wed Mar 18 2015 10:43:37 for Xerces-C++ by &#160;<a href="http://www.doxygen.org/index.html">
  394. <img class="footer" src="doxygen.png" alt="doxygen"/>
  395. </a> 1.8.9.1
  396. </small></address>
  397. </body>
  398. </html>