1 | <HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>DOMElement class Reference</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
|
---|
2 | <A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
3 |
|
---|
4 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
5 |
|
---|
6 | <A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
7 | <A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
8 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
9 | <A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
10 | <A href="http://xml.apache.org/dist/xerces-c/" onMouseOut="rolloverOff('side-ext-18');" onMouseOver="rolloverOn('side-ext-18');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-18" onLoad="rolloverLoad('side-ext-18','../graphics/ext-18-label-2.jpg','../graphics/ext-18-label-3.jpg');" src="../graphics/ext-18-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
11 | <A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
12 |
|
---|
13 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
14 | <A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
15 | <A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
16 | <A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
17 |
|
---|
18 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
19 | <A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-68');" onMouseOver="rolloverOn('side-ext-68');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-68" onLoad="rolloverLoad('side-ext-68','../graphics/ext-68-label-2.jpg','../graphics/ext-68-label-3.jpg');" src="../graphics/ext-68-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
20 |
|
---|
21 | <A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
22 | <A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
23 |
|
---|
24 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
25 |
|
---|
26 | <A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
27 | <A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
28 | <A href="../pdf.html" onMouseOut="rolloverOff('side-pdf');" onMouseOver="rolloverOn('side-pdf');"><IMG alt="PDF Document" border="0" height="12" hspace="0" name="side-pdf" onLoad="rolloverLoad('side-pdf','../graphics/pdf-label-2.jpg','../graphics/pdf-label-3.jpg');" src="../graphics/pdf-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
29 |
|
---|
30 | <IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
|
---|
31 |
|
---|
32 | <A href="http://xml.apache.org/websrc/cvsweb.cgi/xml-xerces/c/" onMouseOut="rolloverOff('side-ext-100');" onMouseOver="rolloverOn('side-ext-100');"><IMG alt="CVS Repository" border="0" height="12" hspace="0" name="side-ext-100" onLoad="rolloverLoad('side-ext-100','../graphics/ext-100-label-2.jpg','../graphics/ext-100-label-3.jpg');" src="../graphics/ext-100-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
33 |
|
---|
34 | <A href="http://marc.theaimsgroup.com/?l=xerces-c-dev" onMouseOut="rolloverOff('side-ext-102');" onMouseOver="rolloverOn('side-ext-102');"><IMG alt="Mail Archive" border="0" height="12" hspace="0" name="side-ext-102" onLoad="rolloverLoad('side-ext-102','../graphics/ext-102-label-2.jpg','../graphics/ext-102-label-3.jpg');" src="../graphics/ext-102-label-3.jpg" vspace="0" width="120"></A><BR>
|
---|
35 |
|
---|
36 |
|
---|
37 | <IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
|
---|
38 | <TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10"> </TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
|
---|
39 |
|
---|
40 | <P>
|
---|
41 | <!-- Generated by Doxygen 1.2.14 -->
|
---|
42 | <center>
|
---|
43 | <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
---|
44 | <hr><h1>DOMElement Class Reference</h1>By far the vast majority of objects (apart from text) that authors encounter when traversing a document are <code>DOMElement</code> nodes.
|
---|
45 | <a href="#_details">More...</a>
|
---|
46 | <p>
|
---|
47 | Inheritance diagram for DOMElement:<p><center><img src="classDOMElement__inherit__graph.gif" border="0" usemap="#DOMElement__inherit__map" alt="Inheritance graph"></center>
|
---|
48 | <map name="DOMElement__inherit__map">
|
---|
49 | <area href="classDOMNode.html" shape="rect" coords="15,36,87,17" alt="">
|
---|
50 | </map>
|
---|
51 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for DOMElement:<p><center><img src="classDOMElement__coll__graph.gif" border="0" usemap="#DOMElement__coll__map" alt="Collaboration graph"></center>
|
---|
52 | <map name="DOMElement__coll__map">
|
---|
53 | <area href="classDOMNode.html" shape="rect" coords="15,36,87,17" alt="">
|
---|
54 | </map>
|
---|
55 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classDOMElement-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
|
---|
56 | <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
|
---|
57 | <tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
---|
58 | <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classDOMElement.html#z49_0">~DOMElement</a> ()</td></tr>
|
---|
59 | <tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#z49_0">More...</a><em></em></font><br><br></td></tr>
|
---|
60 | <tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 1</div></td></tr>
|
---|
61 | <tr><td nowrap align=right valign=top>virtual const XMLCh * </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_0">getTagName</a> () const=0</td></tr>
|
---|
62 | <tr><td> </td><td><font size=-1><em>The name of the element.</em> <a href="#z50_0">More...</a><em></em></font><br><br></td></tr>
|
---|
63 | <tr><td nowrap align=right valign=top>virtual const XMLCh * </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_1">getAttribute</a> (const XMLCh *name) const=0</td></tr>
|
---|
64 | <tr><td> </td><td><font size=-1><em>Retrieves an attribute value by name.</em> <a href="#z50_1">More...</a><em></em></font><br><br></td></tr>
|
---|
65 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classDOMAttr.html">DOMAttr</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_2">getAttributeNode</a> (const XMLCh *name) const=0</td></tr>
|
---|
66 | <tr><td> </td><td><font size=-1><em>Retrieves an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node by name.</em> <a href="#z50_2">More...</a><em></em></font><br><br></td></tr>
|
---|
67 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classDOMNodeList.html">DOMNodeList</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_3">getElementsByTagName</a> (const XMLCh *name) const=0</td></tr>
|
---|
68 | <tr><td> </td><td><font size=-1><em>Returns a <code><a class="el" href="classDOMNodeList.html">DOMNodeList</a></code> of all descendant elements with a given tag name, in the order in which they would be encountered in a preorder traversal of the <code>DOMElement</code> tree.</em> <a href="#z50_3">More...</a><em></em></font><br><br></td></tr>
|
---|
69 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_4">setAttribute</a> (const XMLCh *name, const XMLCh *value)=0</td></tr>
|
---|
70 | <tr><td> </td><td><font size=-1><em>Adds a new attribute.</em> <a href="#z50_4">More...</a><em></em></font><br><br></td></tr>
|
---|
71 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classDOMAttr.html">DOMAttr</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_5">setAttributeNode</a> (<a class="el" href="classDOMAttr.html">DOMAttr</a> *newAttr)=0</td></tr>
|
---|
72 | <tr><td> </td><td><font size=-1><em>Adds a new attribute.</em> <a href="#z50_5">More...</a><em></em></font><br><br></td></tr>
|
---|
73 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classDOMAttr.html">DOMAttr</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_6">removeAttributeNode</a> (<a class="el" href="classDOMAttr.html">DOMAttr</a> *oldAttr)=0</td></tr>
|
---|
74 | <tr><td> </td><td><font size=-1><em>Removes the specified attribute node.</em> <a href="#z50_6">More...</a><em></em></font><br><br></td></tr>
|
---|
75 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classDOMElement.html#z50_7">removeAttribute</a> (const XMLCh *name)=0</td></tr>
|
---|
76 | <tr><td> </td><td><font size=-1><em>Removes an attribute by name.</em> <a href="#z50_7">More...</a><em></em></font><br><br></td></tr>
|
---|
77 | <tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2.</div></td></tr>
|
---|
78 | <tr><td nowrap align=right valign=top>virtual const XMLCh * </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_0">getAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
---|
79 | <tr><td> </td><td><font size=-1><em>Retrieves an attribute value by local name and namespace URI.</em> <a href="#z51_0">More...</a><em></em></font><br><br></td></tr>
|
---|
80 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_1">setAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *qualifiedName, const XMLCh *value)=0</td></tr>
|
---|
81 | <tr><td> </td><td><font size=-1><em>Adds a new attribute.</em> <a href="#z51_1">More...</a><em></em></font><br><br></td></tr>
|
---|
82 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_2">removeAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName)=0</td></tr>
|
---|
83 | <tr><td> </td><td><font size=-1><em>Removes an attribute by local name and namespace URI.</em> <a href="#z51_2">More...</a><em></em></font><br><br></td></tr>
|
---|
84 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classDOMAttr.html">DOMAttr</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_3">getAttributeNodeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
---|
85 | <tr><td> </td><td><font size=-1><em>Retrieves an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node by local name and namespace URI.</em> <a href="#z51_3">More...</a><em></em></font><br><br></td></tr>
|
---|
86 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classDOMAttr.html">DOMAttr</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_4">setAttributeNodeNS</a> (<a class="el" href="classDOMAttr.html">DOMAttr</a> *newAttr)=0</td></tr>
|
---|
87 | <tr><td> </td><td><font size=-1><em>Adds a new attribute.</em> <a href="#z51_4">More...</a><em></em></font><br><br></td></tr>
|
---|
88 | <tr><td nowrap align=right valign=top>virtual <a class="el" href="classDOMNodeList.html">DOMNodeList</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_5">getElementsByTagNameNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
---|
89 | <tr><td> </td><td><font size=-1><em>Returns a <code><a class="el" href="classDOMNodeList.html">DOMNodeList</a></code> of all the <code>DOMElement</code>s with a given local name and namespace URI in the order in which they would be encountered in a preorder traversal of the <code><a class="el" href="classDOMDocument.html">DOMDocument</a></code> tree, starting from this node.</em> <a href="#z51_5">More...</a><em></em></font><br><br></td></tr>
|
---|
90 | <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_6">hasAttribute</a> (const XMLCh *name) const=0</td></tr>
|
---|
91 | <tr><td> </td><td><font size=-1><em>Returns <code>true</code> when an attribute with a given name is specified on this element or has a default value, <code>false</code> otherwise.</em> <a href="#z51_6">More...</a><em></em></font><br><br></td></tr>
|
---|
92 | <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classDOMElement.html#z51_7">hasAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
---|
93 | <tr><td> </td><td><font size=-1><em>Returns <code>true</code> when an attribute with a given local name and namespace URI is specified on this element or has a default value, <code>false</code> otherwise.</em> <a href="#z51_7">More...</a><em></em></font><br><br></td></tr>
|
---|
94 | <tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 3</div></td></tr>
|
---|
95 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classDOMElement.html#z52_0">setIdAttribute</a> (const XMLCh *name)=0</td></tr>
|
---|
96 | <tr><td> </td><td><font size=-1><em>Declares the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> specified by name to be of type ID.</em> <a href="#z52_0">More...</a><em></em></font><br><br></td></tr>
|
---|
97 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classDOMElement.html#z52_1">setIdAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName)=0</td></tr>
|
---|
98 | <tr><td> </td><td><font size=-1><em>Declares the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> specified by local name and namespace URI to be of type ID.</em> <a href="#z52_1">More...</a><em></em></font><br><br></td></tr>
|
---|
99 | <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classDOMElement.html#z52_2">setIdAttributeNode</a> (const <a class="el" href="classDOMAttr.html">DOMAttr</a> *idAttr)=0</td></tr>
|
---|
100 | <tr><td> </td><td><font size=-1><em>Declares the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> specified by node to be of type ID.</em> <a href="#z52_2">More...</a><em></em></font><br><br></td></tr>
|
---|
101 | <tr><td nowrap align=right valign=top>virtual const <a class="el" href="classDOMTypeInfo.html">DOMTypeInfo</a> * </td><td valign=bottom><a class="el" href="classDOMElement.html#z52_3">getTypeInfo</a> () const=0</td></tr>
|
---|
102 | <tr><td> </td><td><font size=-1><em>Returns the type information associated with this element.</em> <a href="#z52_3">More...</a><em></em></font><br><br></td></tr>
|
---|
103 | <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
|
---|
104 | <tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
---|
105 | <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classDOMElement.html#z47_0">DOMElement</a> ()</td></tr>
|
---|
106 | </table>
|
---|
107 | <hr><a name="_details"></a><h2>Detailed Description</h2>
|
---|
108 | By far the vast majority of objects (apart from text) that authors encounter when traversing a document are <code>DOMElement</code> nodes.
|
---|
109 | <p>
|
---|
110 | Assume the following XML document:<elementExample id="demo"> <subelement1/> <subelement2><subsubelement/></subelement2> </elementExample>
|
---|
111 | <p>
|
---|
112 | When represented using DOM, the top node is an <code>DOMElement</code> node for "elementExample", which contains two child <code>DOMElement</code> nodes, one for "subelement1" and one for "subelement2". "subelement1" contains no child nodes.
|
---|
113 | <p>
|
---|
114 | Elements may have attributes associated with them; since the <code>DOMElement</code> interface inherits from <code><a class="el" href="classDOMNode.html">DOMNode</a></code>, the generic <code><a class="el" href="classDOMNode.html">DOMNode</a></code> interface method <code>getAttributes</code> may be used to retrieve the set of all attributes for an element. There are methods on the <code>DOMElement</code> interface to retrieve either an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> object by name or an attribute value by name. In XML, where an attribute value may contain entity references, an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> object should be retrieved to examine the possibly fairly complex sub-tree representing the attribute value. On the other hand, in HTML, where all attributes have simple string values, methods to directly access an attribute value can safely be used as a convenience.
|
---|
115 | <p>
|
---|
116 | <dl compact><dt><b>
|
---|
117 | Since: </b><dd>
|
---|
118 | DOM Level 1 </dl>
|
---|
119 | <p>
|
---|
120 | <hr><h2>Constructor & Destructor Documentation</h2>
|
---|
121 | <a name="z47_0" doxytag="DOMElement::DOMElement"></a><p>
|
---|
122 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
123 | <tr>
|
---|
124 | <td class="md">
|
---|
125 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
126 | <tr>
|
---|
127 | <td class="md" nowrap valign="top"> DOMElement::DOMElement </td>
|
---|
128 | <td class="md" valign="top">( </td>
|
---|
129 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
130 | <td class="md" valign="top">) </td>
|
---|
131 | <td class="md" nowrap><code> [protected]</code></td>
|
---|
132 | </tr>
|
---|
133 |
|
---|
134 | </table>
|
---|
135 | </td>
|
---|
136 | </tr>
|
---|
137 | </table>
|
---|
138 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
139 | <tr>
|
---|
140 | <td>
|
---|
141 |
|
---|
142 | </td>
|
---|
143 | <td>
|
---|
144 |
|
---|
145 | <p>
|
---|
146 | </td>
|
---|
147 | </tr>
|
---|
148 | </table>
|
---|
149 | <a name="z49_0" doxytag="DOMElement::~DOMElement"></a><p>
|
---|
150 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
151 | <tr>
|
---|
152 | <td class="md">
|
---|
153 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
154 | <tr>
|
---|
155 | <td class="md" nowrap valign="top"> virtual DOMElement::~DOMElement </td>
|
---|
156 | <td class="md" valign="top">( </td>
|
---|
157 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
158 | <td class="md" valign="top">) </td>
|
---|
159 | <td class="md" nowrap><code> [virtual]</code></td>
|
---|
160 | </tr>
|
---|
161 |
|
---|
162 | </table>
|
---|
163 | </td>
|
---|
164 | </tr>
|
---|
165 | </table>
|
---|
166 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
167 | <tr>
|
---|
168 | <td>
|
---|
169 |
|
---|
170 | </td>
|
---|
171 | <td>
|
---|
172 |
|
---|
173 | <p>
|
---|
174 | Destructor.
|
---|
175 | <p>
|
---|
176 | </td>
|
---|
177 | </tr>
|
---|
178 | </table>
|
---|
179 | <hr><h2>Member Function Documentation</h2>
|
---|
180 | <a name="z50_1" doxytag="DOMElement::getAttribute"></a><p>
|
---|
181 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
182 | <tr>
|
---|
183 | <td class="md">
|
---|
184 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
185 | <tr>
|
---|
186 | <td class="md" nowrap valign="top"> virtual const XMLCh* DOMElement::getAttribute </td>
|
---|
187 | <td class="md" valign="top">( </td>
|
---|
188 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
189 | <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
---|
190 | <td class="md" valign="top">) </td>
|
---|
191 | <td class="md" nowrap> const<code> [pure virtual]</code></td>
|
---|
192 | </tr>
|
---|
193 |
|
---|
194 | </table>
|
---|
195 | </td>
|
---|
196 | </tr>
|
---|
197 | </table>
|
---|
198 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
199 | <tr>
|
---|
200 | <td>
|
---|
201 |
|
---|
202 | </td>
|
---|
203 | <td>
|
---|
204 |
|
---|
205 | <p>
|
---|
206 | Retrieves an attribute value by name.
|
---|
207 | <p>
|
---|
208 | <dl compact><dt><b>
|
---|
209 | Parameters: </b><dd>
|
---|
210 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
211 | <tr><td valign=top><em>name</em> </td><td>
|
---|
212 | The name of the attribute to retrieve. </td></tr>
|
---|
213 | </table>
|
---|
214 | </dl><dl compact><dt><b>
|
---|
215 | Returns: </b><dd>
|
---|
216 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> value as a string, or the empty string if that attribute does not have a specified or default value. </dl><dl compact><dt><b>
|
---|
217 | Since: </b><dd>
|
---|
218 | DOM Level 1 </dl> </td>
|
---|
219 | </tr>
|
---|
220 | </table>
|
---|
221 | <a name="z50_2" doxytag="DOMElement::getAttributeNode"></a><p>
|
---|
222 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
223 | <tr>
|
---|
224 | <td class="md">
|
---|
225 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
226 | <tr>
|
---|
227 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classDOMAttr.html">DOMAttr</a>* DOMElement::getAttributeNode </td>
|
---|
228 | <td class="md" valign="top">( </td>
|
---|
229 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
230 | <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
---|
231 | <td class="md" valign="top">) </td>
|
---|
232 | <td class="md" nowrap> const<code> [pure virtual]</code></td>
|
---|
233 | </tr>
|
---|
234 |
|
---|
235 | </table>
|
---|
236 | </td>
|
---|
237 | </tr>
|
---|
238 | </table>
|
---|
239 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
240 | <tr>
|
---|
241 | <td>
|
---|
242 |
|
---|
243 | </td>
|
---|
244 | <td>
|
---|
245 |
|
---|
246 | <p>
|
---|
247 | Retrieves an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node by name.
|
---|
248 | <p>
|
---|
249 | <dl compact><dt><b>
|
---|
250 | Parameters: </b><dd>
|
---|
251 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
252 | <tr><td valign=top><em>name</em> </td><td>
|
---|
253 | The name (<code>nodeName</code>) of the attribute to retrieve. </td></tr>
|
---|
254 | </table>
|
---|
255 | </dl><dl compact><dt><b>
|
---|
256 | Returns: </b><dd>
|
---|
257 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node with the specified name (<code>nodeName</code>) or <code>null</code> if there is no such attribute. </dl><dl compact><dt><b>
|
---|
258 | Since: </b><dd>
|
---|
259 | DOM Level 1 </dl> </td>
|
---|
260 | </tr>
|
---|
261 | </table>
|
---|
262 | <a name="z51_3" doxytag="DOMElement::getAttributeNodeNS"></a><p>
|
---|
263 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
264 | <tr>
|
---|
265 | <td class="md">
|
---|
266 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
267 | <tr>
|
---|
268 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classDOMAttr.html">DOMAttr</a>* DOMElement::getAttributeNodeNS </td>
|
---|
269 | <td class="md" valign="top">( </td>
|
---|
270 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
271 | <td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
---|
272 | </tr>
|
---|
273 | <tr>
|
---|
274 | <td></td>
|
---|
275 | <td></td>
|
---|
276 | <td class="md" nowrap>const XMLCh * </td>
|
---|
277 | <td class="mdname" nowrap> <em>localName</em></td>
|
---|
278 | </tr>
|
---|
279 | <tr>
|
---|
280 | <td></td>
|
---|
281 | <td class="md">) </td>
|
---|
282 | <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
|
---|
283 | </tr>
|
---|
284 |
|
---|
285 | </table>
|
---|
286 | </td>
|
---|
287 | </tr>
|
---|
288 | </table>
|
---|
289 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
290 | <tr>
|
---|
291 | <td>
|
---|
292 |
|
---|
293 | </td>
|
---|
294 | <td>
|
---|
295 |
|
---|
296 | <p>
|
---|
297 | Retrieves an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node by local name and namespace URI.
|
---|
298 | <p>
|
---|
299 | <dl compact><dt><b>
|
---|
300 | Parameters: </b><dd>
|
---|
301 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
302 | <tr><td valign=top><em>namespaceURI</em> </td><td>
|
---|
303 | The <em>namespace URI</em> of the attribute to retrieve. </td></tr>
|
---|
304 | <tr><td valign=top><em>localName</em> </td><td>
|
---|
305 | The <em>local name</em> of the attribute to retrieve. </td></tr>
|
---|
306 | </table>
|
---|
307 | </dl><dl compact><dt><b>
|
---|
308 | Returns: </b><dd>
|
---|
309 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node with the specified attribute local name and namespace URI or <code>null</code> if there is no such attribute. </dl><dl compact><dt><b>
|
---|
310 | Since: </b><dd>
|
---|
311 | DOM Level 2 </dl> </td>
|
---|
312 | </tr>
|
---|
313 | </table>
|
---|
314 | <a name="z51_0" doxytag="DOMElement::getAttributeNS"></a><p>
|
---|
315 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
316 | <tr>
|
---|
317 | <td class="md">
|
---|
318 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
319 | <tr>
|
---|
320 | <td class="md" nowrap valign="top"> virtual const XMLCh* DOMElement::getAttributeNS </td>
|
---|
321 | <td class="md" valign="top">( </td>
|
---|
322 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
323 | <td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
---|
324 | </tr>
|
---|
325 | <tr>
|
---|
326 | <td></td>
|
---|
327 | <td></td>
|
---|
328 | <td class="md" nowrap>const XMLCh * </td>
|
---|
329 | <td class="mdname" nowrap> <em>localName</em></td>
|
---|
330 | </tr>
|
---|
331 | <tr>
|
---|
332 | <td></td>
|
---|
333 | <td class="md">) </td>
|
---|
334 | <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
|
---|
335 | </tr>
|
---|
336 |
|
---|
337 | </table>
|
---|
338 | </td>
|
---|
339 | </tr>
|
---|
340 | </table>
|
---|
341 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
342 | <tr>
|
---|
343 | <td>
|
---|
344 |
|
---|
345 | </td>
|
---|
346 | <td>
|
---|
347 |
|
---|
348 | <p>
|
---|
349 | Retrieves an attribute value by local name and namespace URI.
|
---|
350 | <p>
|
---|
351 | <dl compact><dt><b>
|
---|
352 | Parameters: </b><dd>
|
---|
353 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
354 | <tr><td valign=top><em>namespaceURI</em> </td><td>
|
---|
355 | The <em>namespace URI</em> of the attribute to retrieve. </td></tr>
|
---|
356 | <tr><td valign=top><em>localName</em> </td><td>
|
---|
357 | The <em>local name</em> of the attribute to retrieve. </td></tr>
|
---|
358 | </table>
|
---|
359 | </dl><dl compact><dt><b>
|
---|
360 | Returns: </b><dd>
|
---|
361 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> value as a string, or an <code>null</code> if that attribute does not have a specified or default value. </dl><dl compact><dt><b>
|
---|
362 | Since: </b><dd>
|
---|
363 | DOM Level 2 </dl> </td>
|
---|
364 | </tr>
|
---|
365 | </table>
|
---|
366 | <a name="z50_3" doxytag="DOMElement::getElementsByTagName"></a><p>
|
---|
367 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
368 | <tr>
|
---|
369 | <td class="md">
|
---|
370 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
371 | <tr>
|
---|
372 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classDOMNodeList.html">DOMNodeList</a>* DOMElement::getElementsByTagName </td>
|
---|
373 | <td class="md" valign="top">( </td>
|
---|
374 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
375 | <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
---|
376 | <td class="md" valign="top">) </td>
|
---|
377 | <td class="md" nowrap> const<code> [pure virtual]</code></td>
|
---|
378 | </tr>
|
---|
379 |
|
---|
380 | </table>
|
---|
381 | </td>
|
---|
382 | </tr>
|
---|
383 | </table>
|
---|
384 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
385 | <tr>
|
---|
386 | <td>
|
---|
387 |
|
---|
388 | </td>
|
---|
389 | <td>
|
---|
390 |
|
---|
391 | <p>
|
---|
392 | Returns a <code><a class="el" href="classDOMNodeList.html">DOMNodeList</a></code> of all descendant elements with a given tag name, in the order in which they would be encountered in a preorder traversal of the <code>DOMElement</code> tree.
|
---|
393 | <p>
|
---|
394 | <dl compact><dt><b>
|
---|
395 | Parameters: </b><dd>
|
---|
396 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
397 | <tr><td valign=top><em>name</em> </td><td>
|
---|
398 | The name of the tag to match on. The special value "*" matches all tags. </td></tr>
|
---|
399 | </table>
|
---|
400 | </dl><dl compact><dt><b>
|
---|
401 | Returns: </b><dd>
|
---|
402 | A list of matching <code>DOMElement</code> nodes. </dl><dl compact><dt><b>
|
---|
403 | Since: </b><dd>
|
---|
404 | DOM Level 1 </dl> </td>
|
---|
405 | </tr>
|
---|
406 | </table>
|
---|
407 | <a name="z51_5" doxytag="DOMElement::getElementsByTagNameNS"></a><p>
|
---|
408 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
409 | <tr>
|
---|
410 | <td class="md">
|
---|
411 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
412 | <tr>
|
---|
413 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classDOMNodeList.html">DOMNodeList</a>* DOMElement::getElementsByTagNameNS </td>
|
---|
414 | <td class="md" valign="top">( </td>
|
---|
415 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
416 | <td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
---|
417 | </tr>
|
---|
418 | <tr>
|
---|
419 | <td></td>
|
---|
420 | <td></td>
|
---|
421 | <td class="md" nowrap>const XMLCh * </td>
|
---|
422 | <td class="mdname" nowrap> <em>localName</em></td>
|
---|
423 | </tr>
|
---|
424 | <tr>
|
---|
425 | <td></td>
|
---|
426 | <td class="md">) </td>
|
---|
427 | <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
|
---|
428 | </tr>
|
---|
429 |
|
---|
430 | </table>
|
---|
431 | </td>
|
---|
432 | </tr>
|
---|
433 | </table>
|
---|
434 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
435 | <tr>
|
---|
436 | <td>
|
---|
437 |
|
---|
438 | </td>
|
---|
439 | <td>
|
---|
440 |
|
---|
441 | <p>
|
---|
442 | Returns a <code><a class="el" href="classDOMNodeList.html">DOMNodeList</a></code> of all the <code>DOMElement</code>s with a given local name and namespace URI in the order in which they would be encountered in a preorder traversal of the <code><a class="el" href="classDOMDocument.html">DOMDocument</a></code> tree, starting from this node.
|
---|
443 | <p>
|
---|
444 | <dl compact><dt><b>
|
---|
445 | Parameters: </b><dd>
|
---|
446 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
447 | <tr><td valign=top><em>namespaceURI</em> </td><td>
|
---|
448 | The <em>namespace URI</em> of the elements to match on. The special value "*" matches all namespaces. </td></tr>
|
---|
449 | <tr><td valign=top><em>localName</em> </td><td>
|
---|
450 | The <em>local name</em> of the elements to match on. The special value "*" matches all local names. </td></tr>
|
---|
451 | </table>
|
---|
452 | </dl><dl compact><dt><b>
|
---|
453 | Returns: </b><dd>
|
---|
454 | A new <code><a class="el" href="classDOMNodeList.html">DOMNodeList</a></code> object containing all the matched <code>DOMElement</code>s. </dl><dl compact><dt><b>
|
---|
455 | Since: </b><dd>
|
---|
456 | DOM Level 2 </dl> </td>
|
---|
457 | </tr>
|
---|
458 | </table>
|
---|
459 | <a name="z50_0" doxytag="DOMElement::getTagName"></a><p>
|
---|
460 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
461 | <tr>
|
---|
462 | <td class="md">
|
---|
463 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
464 | <tr>
|
---|
465 | <td class="md" nowrap valign="top"> virtual const XMLCh* DOMElement::getTagName </td>
|
---|
466 | <td class="md" valign="top">( </td>
|
---|
467 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
468 | <td class="md" valign="top">) </td>
|
---|
469 | <td class="md" nowrap> const<code> [pure virtual]</code></td>
|
---|
470 | </tr>
|
---|
471 |
|
---|
472 | </table>
|
---|
473 | </td>
|
---|
474 | </tr>
|
---|
475 | </table>
|
---|
476 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
477 | <tr>
|
---|
478 | <td>
|
---|
479 |
|
---|
480 | </td>
|
---|
481 | <td>
|
---|
482 |
|
---|
483 | <p>
|
---|
484 | The name of the element.
|
---|
485 | <p>
|
---|
486 | For example, in: <elementExample id="demo"> ... </elementExample> , <code>tagName</code> has the value <code>"elementExample"</code>. Note that this is case-preserving in XML, as are all of the operations of the DOM. <dl compact><dt><b>
|
---|
487 | Since: </b><dd>
|
---|
488 | DOM Level 1 </dl> </td>
|
---|
489 | </tr>
|
---|
490 | </table>
|
---|
491 | <a name="z52_3" doxytag="DOMElement::getTypeInfo"></a><p>
|
---|
492 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
493 | <tr>
|
---|
494 | <td class="md">
|
---|
495 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
496 | <tr>
|
---|
497 | <td class="md" nowrap valign="top"> virtual const <a class="el" href="classDOMTypeInfo.html">DOMTypeInfo</a>* DOMElement::getTypeInfo </td>
|
---|
498 | <td class="md" valign="top">( </td>
|
---|
499 | <td class="mdname1" valign="top" nowrap> </td>
|
---|
500 | <td class="md" valign="top">) </td>
|
---|
501 | <td class="md" nowrap> const<code> [pure virtual]</code></td>
|
---|
502 | </tr>
|
---|
503 |
|
---|
504 | </table>
|
---|
505 | </td>
|
---|
506 | </tr>
|
---|
507 | </table>
|
---|
508 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
509 | <tr>
|
---|
510 | <td>
|
---|
511 |
|
---|
512 | </td>
|
---|
513 | <td>
|
---|
514 |
|
---|
515 | <p>
|
---|
516 | Returns the type information associated with this element.
|
---|
517 | <p>
|
---|
518 |
|
---|
519 | <p>
|
---|
520 | <b>"Experimental - subject to change"</b>
|
---|
521 | <p>
|
---|
522 | <dl compact><dt><b>
|
---|
523 | Returns: </b><dd>
|
---|
524 | the <code><a class="el" href="classDOMTypeInfo.html">DOMTypeInfo</a></code> associated with this element </dl><dl compact><dt><b>
|
---|
525 | Since: </b><dd>
|
---|
526 | DOM level 3 </dl> </td>
|
---|
527 | </tr>
|
---|
528 | </table>
|
---|
529 | <a name="z51_6" doxytag="DOMElement::hasAttribute"></a><p>
|
---|
530 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
531 | <tr>
|
---|
532 | <td class="md">
|
---|
533 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
534 | <tr>
|
---|
535 | <td class="md" nowrap valign="top"> virtual bool DOMElement::hasAttribute </td>
|
---|
536 | <td class="md" valign="top">( </td>
|
---|
537 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
538 | <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
---|
539 | <td class="md" valign="top">) </td>
|
---|
540 | <td class="md" nowrap> const<code> [pure virtual]</code></td>
|
---|
541 | </tr>
|
---|
542 |
|
---|
543 | </table>
|
---|
544 | </td>
|
---|
545 | </tr>
|
---|
546 | </table>
|
---|
547 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
548 | <tr>
|
---|
549 | <td>
|
---|
550 |
|
---|
551 | </td>
|
---|
552 | <td>
|
---|
553 |
|
---|
554 | <p>
|
---|
555 | Returns <code>true</code> when an attribute with a given name is specified on this element or has a default value, <code>false</code> otherwise.
|
---|
556 | <p>
|
---|
557 | <dl compact><dt><b>
|
---|
558 | Parameters: </b><dd>
|
---|
559 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
560 | <tr><td valign=top><em>name</em> </td><td>
|
---|
561 | The name of the attribute to look for. </td></tr>
|
---|
562 | </table>
|
---|
563 | </dl><dl compact><dt><b>
|
---|
564 | Returns: </b><dd>
|
---|
565 | <code>true</code> if an attribute with the given name is specified on this element or has a default value, <code>false</code> otherwise. </dl><dl compact><dt><b>
|
---|
566 | Since: </b><dd>
|
---|
567 | DOM Level 2 </dl> </td>
|
---|
568 | </tr>
|
---|
569 | </table>
|
---|
570 | <a name="z51_7" doxytag="DOMElement::hasAttributeNS"></a><p>
|
---|
571 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
572 | <tr>
|
---|
573 | <td class="md">
|
---|
574 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
575 | <tr>
|
---|
576 | <td class="md" nowrap valign="top"> virtual bool DOMElement::hasAttributeNS </td>
|
---|
577 | <td class="md" valign="top">( </td>
|
---|
578 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
579 | <td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
---|
580 | </tr>
|
---|
581 | <tr>
|
---|
582 | <td></td>
|
---|
583 | <td></td>
|
---|
584 | <td class="md" nowrap>const XMLCh * </td>
|
---|
585 | <td class="mdname" nowrap> <em>localName</em></td>
|
---|
586 | </tr>
|
---|
587 | <tr>
|
---|
588 | <td></td>
|
---|
589 | <td class="md">) </td>
|
---|
590 | <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
|
---|
591 | </tr>
|
---|
592 |
|
---|
593 | </table>
|
---|
594 | </td>
|
---|
595 | </tr>
|
---|
596 | </table>
|
---|
597 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
598 | <tr>
|
---|
599 | <td>
|
---|
600 |
|
---|
601 | </td>
|
---|
602 | <td>
|
---|
603 |
|
---|
604 | <p>
|
---|
605 | Returns <code>true</code> when an attribute with a given local name and namespace URI is specified on this element or has a default value, <code>false</code> otherwise.
|
---|
606 | <p>
|
---|
607 | HTML-only DOM implementations do not need to implement this method. <dl compact><dt><b>
|
---|
608 | Parameters: </b><dd>
|
---|
609 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
610 | <tr><td valign=top><em>namespaceURI</em> </td><td>
|
---|
611 | The namespace URI of the attribute to look for. </td></tr>
|
---|
612 | <tr><td valign=top><em>localName</em> </td><td>
|
---|
613 | The local name of the attribute to look for. </td></tr>
|
---|
614 | </table>
|
---|
615 | </dl><dl compact><dt><b>
|
---|
616 | Returns: </b><dd>
|
---|
617 | <code>true</code> if an attribute with the given local name and namespace URI is specified or has a default value on this element, <code>false</code> otherwise. </dl><dl compact><dt><b>
|
---|
618 | Since: </b><dd>
|
---|
619 | DOM Level 2 </dl> </td>
|
---|
620 | </tr>
|
---|
621 | </table>
|
---|
622 | <a name="z50_7" doxytag="DOMElement::removeAttribute"></a><p>
|
---|
623 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
624 | <tr>
|
---|
625 | <td class="md">
|
---|
626 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
627 | <tr>
|
---|
628 | <td class="md" nowrap valign="top"> virtual void DOMElement::removeAttribute </td>
|
---|
629 | <td class="md" valign="top">( </td>
|
---|
630 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
631 | <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
---|
632 | <td class="md" valign="top">) </td>
|
---|
633 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
634 | </tr>
|
---|
635 |
|
---|
636 | </table>
|
---|
637 | </td>
|
---|
638 | </tr>
|
---|
639 | </table>
|
---|
640 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
641 | <tr>
|
---|
642 | <td>
|
---|
643 |
|
---|
644 | </td>
|
---|
645 | <td>
|
---|
646 |
|
---|
647 | <p>
|
---|
648 | Removes an attribute by name.
|
---|
649 | <p>
|
---|
650 | If the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.<br>
|
---|
651 | To remove an attribute by local name and namespace URI, use the <code>removeAttributeNS</code> method. <dl compact><dt><b>
|
---|
652 | Parameters: </b><dd>
|
---|
653 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
654 | <tr><td valign=top><em>name</em> </td><td>
|
---|
655 | The name of the attribute to remove. </td></tr>
|
---|
656 | </table>
|
---|
657 | </dl><dl compact><dt><b>
|
---|
658 | Exceptions: </b><dd>
|
---|
659 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
660 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
661 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. </td></tr>
|
---|
662 | </table>
|
---|
663 | </dl><dl compact><dt><b>
|
---|
664 | Since: </b><dd>
|
---|
665 | DOM Level 1 </dl> </td>
|
---|
666 | </tr>
|
---|
667 | </table>
|
---|
668 | <a name="z50_6" doxytag="DOMElement::removeAttributeNode"></a><p>
|
---|
669 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
670 | <tr>
|
---|
671 | <td class="md">
|
---|
672 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
673 | <tr>
|
---|
674 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classDOMAttr.html">DOMAttr</a>* DOMElement::removeAttributeNode </td>
|
---|
675 | <td class="md" valign="top">( </td>
|
---|
676 | <td class="md" nowrap valign="top"><a class="el" href="classDOMAttr.html">DOMAttr</a> * </td>
|
---|
677 | <td class="mdname1" valign="top" nowrap> <em>oldAttr</em> </td>
|
---|
678 | <td class="md" valign="top">) </td>
|
---|
679 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
680 | </tr>
|
---|
681 |
|
---|
682 | </table>
|
---|
683 | </td>
|
---|
684 | </tr>
|
---|
685 | </table>
|
---|
686 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
687 | <tr>
|
---|
688 | <td>
|
---|
689 |
|
---|
690 | </td>
|
---|
691 | <td>
|
---|
692 |
|
---|
693 | <p>
|
---|
694 | Removes the specified attribute node.
|
---|
695 | <p>
|
---|
696 | If the removed <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> has a default value it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix, when applicable.<dl compact><dt><b>
|
---|
697 | Parameters: </b><dd>
|
---|
698 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
699 | <tr><td valign=top><em>oldAttr</em> </td><td>
|
---|
700 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node to remove from the attribute list. </td></tr>
|
---|
701 | </table>
|
---|
702 | </dl><dl compact><dt><b>
|
---|
703 | Returns: </b><dd>
|
---|
704 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node that was removed. </dl><dl compact><dt><b>
|
---|
705 | Exceptions: </b><dd>
|
---|
706 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
707 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
708 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
---|
709 | NOT_FOUND_ERR: Raised if <code>oldAttr</code> is not an attribute of the element. </td></tr>
|
---|
710 | </table>
|
---|
711 | </dl><dl compact><dt><b>
|
---|
712 | Since: </b><dd>
|
---|
713 | DOM Level 1 </dl> </td>
|
---|
714 | </tr>
|
---|
715 | </table>
|
---|
716 | <a name="z51_2" doxytag="DOMElement::removeAttributeNS"></a><p>
|
---|
717 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
718 | <tr>
|
---|
719 | <td class="md">
|
---|
720 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
721 | <tr>
|
---|
722 | <td class="md" nowrap valign="top"> virtual void DOMElement::removeAttributeNS </td>
|
---|
723 | <td class="md" valign="top">( </td>
|
---|
724 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
725 | <td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
---|
726 | </tr>
|
---|
727 | <tr>
|
---|
728 | <td></td>
|
---|
729 | <td></td>
|
---|
730 | <td class="md" nowrap>const XMLCh * </td>
|
---|
731 | <td class="mdname" nowrap> <em>localName</em></td>
|
---|
732 | </tr>
|
---|
733 | <tr>
|
---|
734 | <td></td>
|
---|
735 | <td class="md">) </td>
|
---|
736 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
737 | </tr>
|
---|
738 |
|
---|
739 | </table>
|
---|
740 | </td>
|
---|
741 | </tr>
|
---|
742 | </table>
|
---|
743 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
744 | <tr>
|
---|
745 | <td>
|
---|
746 |
|
---|
747 | </td>
|
---|
748 | <td>
|
---|
749 |
|
---|
750 | <p>
|
---|
751 | Removes an attribute by local name and namespace URI.
|
---|
752 | <p>
|
---|
753 | If the removed attribute has a default value it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix.<dl compact><dt><b>
|
---|
754 | Parameters: </b><dd>
|
---|
755 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
756 | <tr><td valign=top><em>namespaceURI</em> </td><td>
|
---|
757 | The <em>namespace URI</em> of the attribute to remove. </td></tr>
|
---|
758 | <tr><td valign=top><em>localName</em> </td><td>
|
---|
759 | The <em>local name</em> of the attribute to remove. </td></tr>
|
---|
760 | </table>
|
---|
761 | </dl><dl compact><dt><b>
|
---|
762 | Exceptions: </b><dd>
|
---|
763 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
764 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
765 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. </td></tr>
|
---|
766 | </table>
|
---|
767 | </dl><dl compact><dt><b>
|
---|
768 | Since: </b><dd>
|
---|
769 | DOM Level 2 </dl> </td>
|
---|
770 | </tr>
|
---|
771 | </table>
|
---|
772 | <a name="z50_4" doxytag="DOMElement::setAttribute"></a><p>
|
---|
773 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
774 | <tr>
|
---|
775 | <td class="md">
|
---|
776 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
777 | <tr>
|
---|
778 | <td class="md" nowrap valign="top"> virtual void DOMElement::setAttribute </td>
|
---|
779 | <td class="md" valign="top">( </td>
|
---|
780 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
781 | <td class="mdname" nowrap> <em>name</em>, </td>
|
---|
782 | </tr>
|
---|
783 | <tr>
|
---|
784 | <td></td>
|
---|
785 | <td></td>
|
---|
786 | <td class="md" nowrap>const XMLCh * </td>
|
---|
787 | <td class="mdname" nowrap> <em>value</em></td>
|
---|
788 | </tr>
|
---|
789 | <tr>
|
---|
790 | <td></td>
|
---|
791 | <td class="md">) </td>
|
---|
792 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
793 | </tr>
|
---|
794 |
|
---|
795 | </table>
|
---|
796 | </td>
|
---|
797 | </tr>
|
---|
798 | </table>
|
---|
799 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
800 | <tr>
|
---|
801 | <td>
|
---|
802 |
|
---|
803 | </td>
|
---|
804 | <td>
|
---|
805 |
|
---|
806 | <p>
|
---|
807 | Adds a new attribute.
|
---|
808 | <p>
|
---|
809 | If an attribute with that name is already present in the element, its value is changed to be that of the value parameter. This value is a simple string, it is not parsed as it is being set. So any markup (such as syntax to be recognized as an entity reference) is treated as literal text, and needs to be appropriately escaped by the implementation when it is written out. In order to assign an attribute value that contains entity references, the user must create an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node plus any <code><a class="el" href="classDOMText.html">DOMText</a></code> and <code><a class="el" href="classDOMEntityReference.html">DOMEntityReference</a></code> nodes, build the appropriate subtree, and use <code>setAttributeNode</code> to assign it as the value of an attribute. <dl compact><dt><b>
|
---|
810 | Parameters: </b><dd>
|
---|
811 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
812 | <tr><td valign=top><em>name</em> </td><td>
|
---|
813 | The name of the attribute to create or alter. </td></tr>
|
---|
814 | <tr><td valign=top><em>value</em> </td><td>
|
---|
815 | Value to set in string form. </td></tr>
|
---|
816 | </table>
|
---|
817 | </dl><dl compact><dt><b>
|
---|
818 | Exceptions: </b><dd>
|
---|
819 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
820 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
821 | INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. <br>
|
---|
822 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. </td></tr>
|
---|
823 | </table>
|
---|
824 | </dl><dl compact><dt><b>
|
---|
825 | Since: </b><dd>
|
---|
826 | DOM Level 1 </dl> </td>
|
---|
827 | </tr>
|
---|
828 | </table>
|
---|
829 | <a name="z50_5" doxytag="DOMElement::setAttributeNode"></a><p>
|
---|
830 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
831 | <tr>
|
---|
832 | <td class="md">
|
---|
833 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
834 | <tr>
|
---|
835 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classDOMAttr.html">DOMAttr</a>* DOMElement::setAttributeNode </td>
|
---|
836 | <td class="md" valign="top">( </td>
|
---|
837 | <td class="md" nowrap valign="top"><a class="el" href="classDOMAttr.html">DOMAttr</a> * </td>
|
---|
838 | <td class="mdname1" valign="top" nowrap> <em>newAttr</em> </td>
|
---|
839 | <td class="md" valign="top">) </td>
|
---|
840 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
841 | </tr>
|
---|
842 |
|
---|
843 | </table>
|
---|
844 | </td>
|
---|
845 | </tr>
|
---|
846 | </table>
|
---|
847 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
848 | <tr>
|
---|
849 | <td>
|
---|
850 |
|
---|
851 | </td>
|
---|
852 | <td>
|
---|
853 |
|
---|
854 | <p>
|
---|
855 | Adds a new attribute.
|
---|
856 | <p>
|
---|
857 | If an attribute with that name (<code>nodeName</code>) is already present in the element, it is replaced by the new one. <dl compact><dt><b>
|
---|
858 | Parameters: </b><dd>
|
---|
859 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
860 | <tr><td valign=top><em>newAttr</em> </td><td>
|
---|
861 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node to add to the attribute list. </td></tr>
|
---|
862 | </table>
|
---|
863 | </dl><dl compact><dt><b>
|
---|
864 | Returns: </b><dd>
|
---|
865 | If the <code>newAttr</code> attribute replaces an existing attribute, the replaced <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node is returned, otherwise <code>null</code> is returned. </dl><dl compact><dt><b>
|
---|
866 | Exceptions: </b><dd>
|
---|
867 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
868 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
869 | WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a different document than the one that created the element. <br>
|
---|
870 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
---|
871 | INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an attribute of another <code>DOMElement</code> object. The DOM user must explicitly clone <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> nodes to re-use them in other elements. </td></tr>
|
---|
872 | </table>
|
---|
873 | </dl><dl compact><dt><b>
|
---|
874 | Since: </b><dd>
|
---|
875 | DOM Level 1 </dl> </td>
|
---|
876 | </tr>
|
---|
877 | </table>
|
---|
878 | <a name="z51_4" doxytag="DOMElement::setAttributeNodeNS"></a><p>
|
---|
879 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
880 | <tr>
|
---|
881 | <td class="md">
|
---|
882 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
883 | <tr>
|
---|
884 | <td class="md" nowrap valign="top"> virtual <a class="el" href="classDOMAttr.html">DOMAttr</a>* DOMElement::setAttributeNodeNS </td>
|
---|
885 | <td class="md" valign="top">( </td>
|
---|
886 | <td class="md" nowrap valign="top"><a class="el" href="classDOMAttr.html">DOMAttr</a> * </td>
|
---|
887 | <td class="mdname1" valign="top" nowrap> <em>newAttr</em> </td>
|
---|
888 | <td class="md" valign="top">) </td>
|
---|
889 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
890 | </tr>
|
---|
891 |
|
---|
892 | </table>
|
---|
893 | </td>
|
---|
894 | </tr>
|
---|
895 | </table>
|
---|
896 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
897 | <tr>
|
---|
898 | <td>
|
---|
899 |
|
---|
900 | </td>
|
---|
901 | <td>
|
---|
902 |
|
---|
903 | <p>
|
---|
904 | Adds a new attribute.
|
---|
905 | <p>
|
---|
906 | If an attribute with that local name and namespace URI is already present in the element, it is replaced by the new one.<dl compact><dt><b>
|
---|
907 | Parameters: </b><dd>
|
---|
908 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
909 | <tr><td valign=top><em>newAttr</em> </td><td>
|
---|
910 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node to add to the attribute list. </td></tr>
|
---|
911 | </table>
|
---|
912 | </dl><dl compact><dt><b>
|
---|
913 | Returns: </b><dd>
|
---|
914 | If the <code>newAttr</code> attribute replaces an existing attribute with the same <em>local name</em> and <em>namespace URI</em>, the replaced <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node is returned, otherwise <code>null</code> is returned. </dl><dl compact><dt><b>
|
---|
915 | Exceptions: </b><dd>
|
---|
916 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
917 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
918 | WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a different document than the one that created the element. <br>
|
---|
919 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
---|
920 | INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an attribute of another <code>DOMElement</code> object. The DOM user must explicitly clone <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> nodes to re-use them in other elements. </td></tr>
|
---|
921 | </table>
|
---|
922 | </dl><dl compact><dt><b>
|
---|
923 | Since: </b><dd>
|
---|
924 | DOM Level 2 </dl> </td>
|
---|
925 | </tr>
|
---|
926 | </table>
|
---|
927 | <a name="z51_1" doxytag="DOMElement::setAttributeNS"></a><p>
|
---|
928 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
929 | <tr>
|
---|
930 | <td class="md">
|
---|
931 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
932 | <tr>
|
---|
933 | <td class="md" nowrap valign="top"> virtual void DOMElement::setAttributeNS </td>
|
---|
934 | <td class="md" valign="top">( </td>
|
---|
935 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
936 | <td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
---|
937 | </tr>
|
---|
938 | <tr>
|
---|
939 | <td></td>
|
---|
940 | <td></td>
|
---|
941 | <td class="md" nowrap>const XMLCh * </td>
|
---|
942 | <td class="mdname" nowrap> <em>qualifiedName</em>, </td>
|
---|
943 | </tr>
|
---|
944 | <tr>
|
---|
945 | <td></td>
|
---|
946 | <td></td>
|
---|
947 | <td class="md" nowrap>const XMLCh * </td>
|
---|
948 | <td class="mdname" nowrap> <em>value</em></td>
|
---|
949 | </tr>
|
---|
950 | <tr>
|
---|
951 | <td></td>
|
---|
952 | <td class="md">) </td>
|
---|
953 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
954 | </tr>
|
---|
955 |
|
---|
956 | </table>
|
---|
957 | </td>
|
---|
958 | </tr>
|
---|
959 | </table>
|
---|
960 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
961 | <tr>
|
---|
962 | <td>
|
---|
963 |
|
---|
964 | </td>
|
---|
965 | <td>
|
---|
966 |
|
---|
967 | <p>
|
---|
968 | Adds a new attribute.
|
---|
969 | <p>
|
---|
970 | If an attribute with the same local name and namespace URI is already present on the element, its prefix is changed to be the prefix part of the <code>qualifiedName</code>, and its value is changed to be the <code>value</code> parameter. This value is a simple string, it is not parsed as it is being set. So any markup (such as syntax to be recognized as an entity reference) is treated as literal text, and needs to be appropriately escaped by the implementation when it is written out. In order to assign an attribute value that contains entity references, the user must create an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node plus any <code><a class="el" href="classDOMText.html">DOMText</a></code> and <code><a class="el" href="classDOMEntityReference.html">DOMEntityReference</a></code> nodes, build the appropriate subtree, and use <code>setAttributeNodeNS</code> or <code>setAttributeNode</code> to assign it as the value of an attribute.<dl compact><dt><b>
|
---|
971 | Parameters: </b><dd>
|
---|
972 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
973 | <tr><td valign=top><em>namespaceURI</em> </td><td>
|
---|
974 | The <em>namespace URI</em> of the attribute to create or alter. </td></tr>
|
---|
975 | <tr><td valign=top><em>qualifiedName</em> </td><td>
|
---|
976 | The <em>qualified name</em> of the attribute to create or alter. </td></tr>
|
---|
977 | <tr><td valign=top><em>value</em> </td><td>
|
---|
978 | The value to set in string form. </td></tr>
|
---|
979 | </table>
|
---|
980 | </dl><dl compact><dt><b>
|
---|
981 | Exceptions: </b><dd>
|
---|
982 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
983 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
984 | INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character. <br>
|
---|
985 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
---|
986 | NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is malformed, if the <code>qualifiedName</code> has a prefix and the <code>namespaceURI</code> is <code>null</code> or an empty string, if the <code>qualifiedName</code> has a prefix that is "xml" and the <code>namespaceURI</code> is different from "<a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>", if the <code>qualifiedName</code> has a prefix that is "xmlns" and the <code>namespaceURI</code> is different from "<a href="http://www.w3.org/2000/xmlns/">http://www.w3.org/2000/xmlns/</a>", or if the <code>qualifiedName</code> is "xmlns" and the <code>namespaceURI</code> is different from "<a href="http://www.w3.org/2000/xmlns/">http://www.w3.org/2000/xmlns/</a>". </td></tr>
|
---|
987 | </table>
|
---|
988 | </dl><dl compact><dt><b>
|
---|
989 | Since: </b><dd>
|
---|
990 | DOM Level 2 </dl> </td>
|
---|
991 | </tr>
|
---|
992 | </table>
|
---|
993 | <a name="z52_0" doxytag="DOMElement::setIdAttribute"></a><p>
|
---|
994 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
995 | <tr>
|
---|
996 | <td class="md">
|
---|
997 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
998 | <tr>
|
---|
999 | <td class="md" nowrap valign="top"> virtual void DOMElement::setIdAttribute </td>
|
---|
1000 | <td class="md" valign="top">( </td>
|
---|
1001 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
1002 | <td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
---|
1003 | <td class="md" valign="top">) </td>
|
---|
1004 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
1005 | </tr>
|
---|
1006 |
|
---|
1007 | </table>
|
---|
1008 | </td>
|
---|
1009 | </tr>
|
---|
1010 | </table>
|
---|
1011 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
1012 | <tr>
|
---|
1013 | <td>
|
---|
1014 |
|
---|
1015 | </td>
|
---|
1016 | <td>
|
---|
1017 |
|
---|
1018 | <p>
|
---|
1019 | Declares the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> specified by name to be of type ID.
|
---|
1020 | <p>
|
---|
1021 | If the value of the specified <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use. To specify an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> by local name and namespace URI, use the setIdAttributeNS method. <dl compact><dt><b>
|
---|
1022 | Parameters: </b><dd>
|
---|
1023 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
1024 | <tr><td valign=top><em>name</em> </td><td>
|
---|
1025 | The name of the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code>. </td></tr>
|
---|
1026 | </table>
|
---|
1027 | </dl><dl compact><dt><b>
|
---|
1028 | Exceptions: </b><dd>
|
---|
1029 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
1030 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
1031 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
---|
1032 | NOT_FOUND_ERR: Raised if the specified node is not an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> of this element.</td></tr>
|
---|
1033 | </table>
|
---|
1034 | </dl>
|
---|
1035 | <p>
|
---|
1036 | <b>"Experimental - subject to change"</b>
|
---|
1037 | <p>
|
---|
1038 | <dl compact><dt><b>
|
---|
1039 | Since: </b><dd>
|
---|
1040 | DOM Level 3 </dl> </td>
|
---|
1041 | </tr>
|
---|
1042 | </table>
|
---|
1043 | <a name="z52_2" doxytag="DOMElement::setIdAttributeNode"></a><p>
|
---|
1044 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
1045 | <tr>
|
---|
1046 | <td class="md">
|
---|
1047 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
1048 | <tr>
|
---|
1049 | <td class="md" nowrap valign="top"> virtual void DOMElement::setIdAttributeNode </td>
|
---|
1050 | <td class="md" valign="top">( </td>
|
---|
1051 | <td class="md" nowrap valign="top">const <a class="el" href="classDOMAttr.html">DOMAttr</a> * </td>
|
---|
1052 | <td class="mdname1" valign="top" nowrap> <em>idAttr</em> </td>
|
---|
1053 | <td class="md" valign="top">) </td>
|
---|
1054 | <td class="md" nowrap><code> [pure virtual]</code></td>
|
---|
1055 | </tr>
|
---|
1056 |
|
---|
1057 | </table>
|
---|
1058 | </td>
|
---|
1059 | </tr>
|
---|
1060 | </table>
|
---|
1061 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
1062 | <tr>
|
---|
1063 | <td>
|
---|
1064 |
|
---|
1065 | </td>
|
---|
1066 | <td>
|
---|
1067 |
|
---|
1068 | <p>
|
---|
1069 | Declares the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> specified by node to be of type ID.
|
---|
1070 | <p>
|
---|
1071 | If the value of the specified <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> is unique then this <code>DOMElement</code> node can later be retrieved using getElementById on <code><a class="el" href="classDOMDocument.html">DOMDocument</a></code>. Note, however, that this simply affects this node and does not change any grammar that may be in use. <dl compact><dt><b>
|
---|
1072 | Parameters: </b><dd>
|
---|
1073 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
1074 | <tr><td valign=top><em>idAttr</em> </td><td>
|
---|
1075 | The <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> node. </td></tr>
|
---|
1076 | </table>
|
---|
1077 | </dl><dl compact><dt><b>
|
---|
1078 | Exceptions: </b><dd>
|
---|
1079 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
1080 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
1081 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
---|
1082 | NOT_FOUND_ERR: Raised if the specified node is not an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> of this element.</td></tr>
|
---|
1083 | </table>
|
---|
1084 | </dl>
|
---|
1085 | <p>
|
---|
1086 | <b>"Experimental - subject to change"</b>
|
---|
1087 | <p>
|
---|
1088 | <dl compact><dt><b>
|
---|
1089 | Since: </b><dd>
|
---|
1090 | DOM Level 3 </dl> </td>
|
---|
1091 | </tr>
|
---|
1092 | </table>
|
---|
1093 | <a name="z52_1" doxytag="DOMElement::setIdAttributeNS"></a><p>
|
---|
1094 | <table width="100%" cellpadding="2" cellspacing="0" border="0">
|
---|
1095 | <tr>
|
---|
1096 | <td class="md">
|
---|
1097 | <table cellpadding="0" cellspacing="0" border="0">
|
---|
1098 | <tr>
|
---|
1099 | <td class="md" nowrap valign="top"> virtual void DOMElement::setIdAttributeNS </td>
|
---|
1100 | <td class="md" valign="top">( </td>
|
---|
1101 | <td class="md" nowrap valign="top">const XMLCh * </td>
|
---|
1102 | <td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
---|
1103 | </tr>
|
---|
1104 | <tr>
|
---|
1105 | <td></td>
|
---|
1106 | <td></td>
|
---|
1107 | <td class="md" nowrap>const XMLCh * </td>
|
---|
1108 | <td class="mdname" nowrap> <em>localName</em></td>
|
---|
1109 | </tr>
|
---|
1110 | <tr>
|
---|
1111 | <td></td>
|
---|
1112 | <td class="md">) </td>
|
---|
1113 | <td class="md" colspan="2"><code> [pure virtual]</code></td>
|
---|
1114 | </tr>
|
---|
1115 |
|
---|
1116 | </table>
|
---|
1117 | </td>
|
---|
1118 | </tr>
|
---|
1119 | </table>
|
---|
1120 | <table cellspacing=5 cellpadding=0 border=0>
|
---|
1121 | <tr>
|
---|
1122 | <td>
|
---|
1123 |
|
---|
1124 | </td>
|
---|
1125 | <td>
|
---|
1126 |
|
---|
1127 | <p>
|
---|
1128 | Declares the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> specified by local name and namespace URI to be of type ID.
|
---|
1129 | <p>
|
---|
1130 | If the value of the specified <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> is unique then this <code>DOMElement</code> node can later be retrieved using getElementById on <code><a class="el" href="classDOMDocument.html">DOMDocument</a></code>. Note, however, that this simply affects this node and does not change any grammar that may be in use. <dl compact><dt><b>
|
---|
1131 | Parameters: </b><dd>
|
---|
1132 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
1133 | <tr><td valign=top><em>namespaceURI</em> </td><td>
|
---|
1134 | The namespace URI of the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code>. </td></tr>
|
---|
1135 | <tr><td valign=top><em>localName</em> </td><td>
|
---|
1136 | The local name of the <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code>. </td></tr>
|
---|
1137 | </table>
|
---|
1138 | </dl><dl compact><dt><b>
|
---|
1139 | Exceptions: </b><dd>
|
---|
1140 | <table border=0 cellspacing=2 cellpadding=0>
|
---|
1141 | <tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em> </td><td>
|
---|
1142 | NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
---|
1143 | NOT_FOUND_ERR: Raised if the specified node is not an <code><a class="el" href="classDOMAttr.html">DOMAttr</a></code> of this element.</td></tr>
|
---|
1144 | </table>
|
---|
1145 | </dl>
|
---|
1146 | <p>
|
---|
1147 | <b>"Experimental - subject to change"</b>
|
---|
1148 | <p>
|
---|
1149 | <dl compact><dt><b>
|
---|
1150 | Since: </b><dd>
|
---|
1151 | DOM Level 3 </dl> </td>
|
---|
1152 | </tr>
|
---|
1153 | </table>
|
---|
1154 | <hr>The documentation for this class was generated from the following file:<ul>
|
---|
1155 | <li><a class="el" href="DOMElement_8hpp-source.html">DOMElement.hpp</a></ul>
|
---|
1156 | </FONT></TD></TR></TABLE><BR>
|
---|
1157 | </TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
|
---|
1158 | Copyright © 1994-2004 The Apache Software Foundation.
|
---|
1159 | All Rights Reserved.
|
---|
1160 | </I></FONT></TD></TR></TABLE></BODY></HTML>
|
---|