source: NonGTP/Xerces/xerces/doc/html/apiDocs/classDOMConfiguration.html @ 358

Revision 358, 33.4 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>DOMConfiguration 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">&nbsp;</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> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
44<hr><h1>DOMConfiguration  Class Reference</h1>The DOMConfiguration interface represents the configuration of a document and maintains a table of recognized parameters.
45<a href="#_details">More...</a>
46<p>
47<a href="classDOMConfiguration-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
48<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
49<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classDOMConfiguration.html#a0">setParameter</a> (const XMLCh *name, const void *value)=0</td></tr>
50<tr><td>&nbsp;</td><td><font size=-1><em>Set the value of a parameter.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
51<tr><td nowrap align=right valign=top>virtual const void *&nbsp;</td><td valign=bottom><a class="el" href="classDOMConfiguration.html#a1">getParameter</a> (const XMLCh *name) const=0</td></tr>
52<tr><td>&nbsp;</td><td><font size=-1><em>Return the value of a parameter if known.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
53<tr><td nowrap align=right valign=top>virtual bool&nbsp;</td><td valign=bottom><a class="el" href="classDOMConfiguration.html#a2">canSetParameter</a> (const XMLCh *name, const void *value) const=0</td></tr>
54<tr><td>&nbsp;</td><td><font size=-1><em>Check if setting a parameter to a specific value is supported.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
55<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
56<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classDOMConfiguration.html#z24_0">~DOMConfiguration</a> ()</td></tr>
57<tr><td>&nbsp;</td><td><font size=-1><em>Destructor.</em> <a href="#z24_0">More...</a><em></em></font><br><br></td></tr>
58<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
59<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
60<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classDOMConfiguration.html#z22_0">DOMConfiguration</a> ()</td></tr>
61</table>
62<hr><a name="_details"></a><h2>Detailed Description</h2>
63The DOMConfiguration interface represents the configuration of a document and maintains a table of recognized parameters.
64<p>
65using the configuration, it is possible to change Document.normalizeDocument behavior, such as replacing CDATASection nodes with Text nodes or specifying the type of the schema that must be used when the validation of the Document is requested. DOMConfiguration objects are also used in [DOM Level 3 Load and Save] in the <a class="el" href="classDOMBuilder.html">DOMBuilder</a> and <a class="el" href="classDOMWriter.html">DOMWriter</a> interfaces.
66<p>
67The DOMConfiguration distinguish two types of parameters: boolean (boolean parameters) and DOMUserData (parameters). The names used by the DOMConfiguration object are defined throughout the DOM Level 3 specifications. Names are case-insensitives. To avoid possible conflicts, as a convention, names referring to boolean parameters and parameters defined outside the DOM specification should be made unique. Names are recommended to follow the XML name production rule but it is not enforced by the DOM implementation. DOM Level 3 Core Implementations are required to recognize all boolean parameters and parameters defined in this specification. Each boolean parameter state or parameter value may then be supported or not by the implementation. Refer to their definition to know if a state or a value must be supported or not.
68<p>
69Note: Parameters are similar to features and properties used in SAX2 [SAX].
70<p>
71Issue DOMConfiguration-1: Can we rename boolean parameters to "flags"?
72<p>
73Issue DOMConfiguration-2: Are boolean parameters and parameters within the same scope for uniqueness? Which exception should be raised by setBooleanParameter("error-handler", true)?
74<p>
75The following list of parameters defined in the DOM:
76<p>
77"error-handler" [required] A <a class="el" href="classDOMErrorHandler.html">DOMErrorHandler</a> object. If an error is encountered in the document, the implementation will call back the <a class="el" href="classDOMErrorHandler.html">DOMErrorHandler</a> registered using this parameter. When called, DOMError.relatedData will contain the closest node to where the error occured. If the implementation is unable to determine the node where the error occurs, DOMError.relatedData will contain the Document node. Mutations to the document from within an error handler will result in implementation dependent behaviour.
78<p>
79Issue DOMConfiguration-4: Should we say non "readonly" operations are implementation dependent instead? Resolution: Removed: "or re-invoking a validation operation".
80<p>
81"schema-type" [optional] A DOMString object containing an absolute URI and representing the type of the schema language used to validate a document against. Note that no lexical checking is done on the absolute URI. If this parameter is not set, a default value may be provided by the implementation, based on the schema languages supported and on the schema language used at load time.
82<p>
83Note: For XML Schema [XML Schema Part 1], applications must use the value "<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>". For XML DTD [XML 1.0], applications must use the value "<a href="http://www.w3.org/TR/REC-xml">http://www.w3.org/TR/REC-xml</a>". Other schema languages are outside the scope of the W3C and therefore should recommend an absolute URI in order to use this method.
84<p>
85"schema-location" [optional] A DOMString object containing a list of URIs, separated by white spaces (characters matching the nonterminal production S defined in section 2.3 [XML 1.0]), that represents the schemas against which validation should occur. The types of schemas referenced in this list must match the type specified with schema-type, otherwise the behaviour of an implementation is undefined. If the schema type is XML Schema [XML Schema Part 1], only one of the XML Schemas in the list can be with no namespace. If validation occurs against a namespace aware schema, i.e. XML Schema, and the targetNamespace of a schema (specified using this property) matches the targetNamespace of a schema occurring in the instance document, i.e in schemaLocation attribute, the schema specified by the user using this property will be used (i.e., in XML Schema the schemaLocation attribute in the instance document or on the import element will be effectively ignored).
86<p>
87Note: It is illegal to set the schema-location parameter if the schema-type parameter value is not set. It is strongly recommended that DOMInputSource.baseURI will be set, so that an implementation can successfully resolve any external entities referenced.
88<p>
89The following list of boolean parameters (features) defined in the DOM:
90<p>
91"canonical-form"
92<p>
93true [optional] Canonicalize the document according to the rules specified in [Canonical XML]. Note that this is limited to what can be represented in the DOM. In particular, there is no way to specify the order of the attributes in the DOM.
94<p>
95Issue normalizationFeature-14: What happen to other features? are they ignored? if yes, how do you know if a feature is ignored?
96<p>
97false [required] (default) Do not canonicalize the document.
98<p>
99"cdata-sections"
100<p>
101true [required] (default) Keep CDATASection nodes in the document.
102<p>
103Issue normalizationFeature-11: Name does not work really well in this case. ALH suggests renaming this to "cdata-sections". It works for both load and save. Resolution: Renamed as suggested. (Telcon 27 Jan 2002).
104<p>
105false [required] Transform CDATASection nodes in the document into Text nodes. The new Text node is then combined with any adjacent Text node.
106<p>
107"comments"
108<p>
109true [required] (default) Keep Comment nodes in the document.
110<p>
111false [required] Discard Comment nodes in the Document.
112<p>
113"datatype-normalization"
114<p>
115true [required] Exposed normalized values in the tree.
116<p>
117Issue normalizationFeature-8: We should define "datatype normalization". Resolution: DTD normalization always apply because it's part of XML 1.0. Clarify the spec. (Telcon 27 Jan 2002).
118<p>
119false [required] (default) Do not perform normalization on the tree.
120<p>
121"discard-default-content"
122<p>
123true [required] (default) Use whatever information available to the implementation (i.e. XML schema, DTD, the specified flag on Attr nodes, and so on) to decide what attributes and content should be discarded or not. Note that the specified flag on Attr nodes in itself is not always reliable, it is only reliable when it is set to false since the only case where it can be set to false is if the attribute was created by the implementation. The default content won't be removed if an implementation does not have any information available.
124<p>
125Issue normalizationFeature-2: How does exactly work? What's the comment about level 1 implementations? Resolution: Remove "Level 1" (Telcon 16 Jan 2002).
126<p>
127false [required] Keep all attributes and all content.
128<p>
129"entities"
130<p>
131true [required] Keep EntityReference and Entity nodes in the document.
132<p>
133Issue normalizationFeature-9: How does that interact with expand-entity-references? ALH suggests consolidating the two to a single feature called "entity-references" that is used both for load and save. Resolution: Consolidate both features into a single feature called 'entities'. (Telcon 27 Jan 2002).
134<p>
135false [required] (default) Remove all EntityReference and Entity nodes from the document, putting the entity expansions directly in their place. Text nodes are into "normal" form. Only EntityReference nodes to non-defined entities are kept in the document.
136<p>
137"infoset"
138<p>
139true [required] Only keep in the document the information defined in the XML Information Set [XML Information set]. This forces the following features to false: namespace-declarations, validate-if-schema, entities, datatype-normalization, cdata-sections. This forces the following features to true: whitespace-in-element-content, comments, namespaces. Other features are not changed unless explicity specified in the description of the features. Note that querying this feature with getFeature returns true only if the individual features specified above are appropriately set.
140<p>
141Issue normalizationFeature-12: Name doesn't work well here. ALH suggests renaming this to limit-to-infoset or match-infoset, something like that. Resolution: Renamed 'infoset' (Telcon 27 Jan 2002).
142<p>
143false Setting infoset to false has no effect.
144<p>
145Issue normalizationFeature-13: Shouldn't we change this to setting the relevant options back to their default value? Resolution: No, this is more like a convenience function, it's better to keep it simple. (F2F 28 Feb 2002).
146<p>
147"namespaces"
148<p>
149true [required] (default) Perform the namespace processing as defined in [XML Namespaces].
150<p>
151false [optional] Do not perform the namespace processing.
152<p>
153"namespace-declarations"
154<p>
155true [required] (default) Include namespace declaration attributes, specified or defaulted from the schema or the DTD, in the document. See also the section Declaring Namespaces in [XML Namespaces].
156<p>
157false [required] Discard all namespace declaration attributes. The Namespace prefixes are retained even if this feature is set to false.
158<p>
159"normalize-characters"
160<p>
161true [optional] Perform the W3C Text Normalization of the characters [CharModel] in the document.
162<p>
163false [required] (default) Do not perform character normalization.
164<p>
165"split-cdata-sections"
166<p>
167true [required] (default) Split CDATA sections containing the CDATA section termination marker ']]&gt;'. When a CDATA section is split a warning is issued.
168<p>
169false [required] Signal an error if a CDATASection contains an unrepresentable character.
170<p>
171"validate"
172<p>
173true [optional] Require the validation against a schema (i.e. XML schema, DTD, any other type or representation of schema) of the document as it is being normalized as defined by [XML 1.0]. If validation errors are found, or no schema was found, the error handler is notified. Note also that normalized values will not be exposed to the schema in used unless the feature datatype-normalization is true.
174<p>
175Note: validate-if-schema and validate are mutually exclusive, setting one of them to true will set the other one to false.
176<p>
177false [required] (default) Only XML 1.0 non-validating processing must be done. Note that validation might still happen if validate-if-schema is true.
178<p>
179"validate-if-schema"
180<p>
181true [optional] Enable validation only if a declaration for the document element can be found (independently of where it is found, i.e. XML schema, DTD, or any other type or representation of schema). If validation errors are found, the error handler is notified. Note also that normalized values will not be exposed to the schema in used unless the feature datatype-normalization is true.
182<p>
183Note: validate-if-schema and validate are mutually exclusive, setting one of them to true will set the other one to false.
184<p>
185false [required] (default) No validation should be performed if the document has a schema. Note that validation must still happen if validate is true.
186<p>
187"whitespace-in-element-content"
188<p>
189true [required] (default) Keep all white spaces in the document.
190<p>
191Issue normalizationFeature-15: How does this feature interact with "validate" and Text.isWhitespaceInElementContent. Resolution: issue no longer relevant (f2f october 2002).
192<p>
193false [optional] Discard white space in element content while normalizing. The implementation is expected to use the isWhitespaceInElementContent flag on Text nodes to determine if a text node should be written out or not.
194<p>
195The resolutions of entities is done using Document.baseURI. However, when the features "LS-Load" or "LS-Save" defined in [DOM Level 3 Load and Save] are supported by the DOM implementation, the parameter "entity-resolver" can also be used on DOMConfiguration objects attached to Document nodes. If this parameter is set, Document.normalizeDocument will invoke the entity resolver instead of using Document.baseURI.
196<p>
197<hr><h2>Constructor &amp; Destructor Documentation</h2>
198<a name="z22_0" doxytag="DOMConfiguration::DOMConfiguration"></a><p>
199<table width="100%" cellpadding="2" cellspacing="0" border="0">
200  <tr>
201    <td class="md">
202      <table cellpadding="0" cellspacing="0" border="0">
203        <tr>
204          <td class="md" nowrap valign="top"> DOMConfiguration::DOMConfiguration </td>
205          <td class="md" valign="top">(&nbsp;</td>
206          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
207          <td class="md" valign="top">)&nbsp;</td>
208          <td class="md" nowrap><code> [protected]</code></td>
209        </tr>
210
211      </table>
212    </td>
213  </tr>
214</table>
215<table cellspacing=5 cellpadding=0 border=0>
216  <tr>
217    <td>
218      &nbsp;
219    </td>
220    <td>
221
222<p>
223    </td>
224  </tr>
225</table>
226<a name="z24_0" doxytag="DOMConfiguration::~DOMConfiguration"></a><p>
227<table width="100%" cellpadding="2" cellspacing="0" border="0">
228  <tr>
229    <td class="md">
230      <table cellpadding="0" cellspacing="0" border="0">
231        <tr>
232          <td class="md" nowrap valign="top"> virtual DOMConfiguration::~DOMConfiguration </td>
233          <td class="md" valign="top">(&nbsp;</td>
234          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
235          <td class="md" valign="top">)&nbsp;</td>
236          <td class="md" nowrap><code> [virtual]</code></td>
237        </tr>
238
239      </table>
240    </td>
241  </tr>
242</table>
243<table cellspacing=5 cellpadding=0 border=0>
244  <tr>
245    <td>
246      &nbsp;
247    </td>
248    <td>
249
250<p>
251Destructor.
252<p>
253    </td>
254  </tr>
255</table>
256<hr><h2>Member Function Documentation</h2>
257<a name="a2" doxytag="DOMConfiguration::canSetParameter"></a><p>
258<table width="100%" cellpadding="2" cellspacing="0" border="0">
259  <tr>
260    <td class="md">
261      <table cellpadding="0" cellspacing="0" border="0">
262        <tr>
263          <td class="md" nowrap valign="top"> virtual bool DOMConfiguration::canSetParameter </td>
264          <td class="md" valign="top">(&nbsp;</td>
265          <td class="md" nowrap valign="top">const XMLCh *&nbsp;</td>
266          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
267        </tr>
268        <tr>
269          <td></td>
270          <td></td>
271          <td class="md" nowrap>const void *&nbsp;</td>
272          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
273        </tr>
274        <tr>
275          <td></td>
276          <td class="md">)&nbsp;</td>
277          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
278        </tr>
279
280      </table>
281    </td>
282  </tr>
283</table>
284<table cellspacing=5 cellpadding=0 border=0>
285  <tr>
286    <td>
287      &nbsp;
288    </td>
289    <td>
290
291<p>
292Check if setting a parameter to a specific value is supported.
293<p>
294<dl compact><dt><b>
295Parameters: </b><dd>
296<table border=0 cellspacing=2 cellpadding=0>
297<tr><td valign=top><em>name</em>&nbsp;</td><td>
298The name of the parameter to check. </td></tr>
299<tr><td valign=top><em>value</em>&nbsp;</td><td>
300An object. if null, the returned value is true. </td></tr>
301</table>
302</dl><dl compact><dt><b>
303Returns: </b><dd>
304true if the parameter could be successfully set to the specified  value, or false if the parameter is not recognized or the requested value  is not supported. This does not change the current value of the parameter  itself. </dl><dl compact><dt><b>
305Since: </b><dd>
306DOM level 3 </dl>    </td>
307  </tr>
308</table>
309<a name="a1" doxytag="DOMConfiguration::getParameter"></a><p>
310<table width="100%" cellpadding="2" cellspacing="0" border="0">
311  <tr>
312    <td class="md">
313      <table cellpadding="0" cellspacing="0" border="0">
314        <tr>
315          <td class="md" nowrap valign="top"> virtual const void* DOMConfiguration::getParameter </td>
316          <td class="md" valign="top">(&nbsp;</td>
317          <td class="md" nowrap valign="top">const XMLCh *&nbsp;</td>
318          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</em>          </td>
319          <td class="md" valign="top">)&nbsp;</td>
320          <td class="md" nowrap> const<code> [pure virtual]</code></td>
321        </tr>
322
323      </table>
324    </td>
325  </tr>
326</table>
327<table cellspacing=5 cellpadding=0 border=0>
328  <tr>
329    <td>
330      &nbsp;
331    </td>
332    <td>
333
334<p>
335Return the value of a parameter if known.
336<p>
337<dl compact><dt><b>
338Parameters: </b><dd>
339<table border=0 cellspacing=2 cellpadding=0>
340<tr><td valign=top><em>name</em>&nbsp;</td><td>
341The name of the parameter. </td></tr>
342</table>
343</dl><dl compact><dt><b>
344Returns: </b><dd>
345The current object associated with the specified parameter or  null if no object has been associated or if the parameter is not  supported. </dl><dl compact><dt><b>
346Exceptions: </b><dd>
347<table border=0 cellspacing=2 cellpadding=0>
348<tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em>&nbsp;</td><td>
349 (NOT_FOUND_ERR) Raised when the i boolean parameter  name is not recognized. </td></tr>
350</table>
351</dl><dl compact><dt><b>
352Since: </b><dd>
353DOM level 3 </dl>    </td>
354  </tr>
355</table>
356<a name="a0" doxytag="DOMConfiguration::setParameter"></a><p>
357<table width="100%" cellpadding="2" cellspacing="0" border="0">
358  <tr>
359    <td class="md">
360      <table cellpadding="0" cellspacing="0" border="0">
361        <tr>
362          <td class="md" nowrap valign="top"> virtual void DOMConfiguration::setParameter </td>
363          <td class="md" valign="top">(&nbsp;</td>
364          <td class="md" nowrap valign="top">const XMLCh *&nbsp;</td>
365          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
366        </tr>
367        <tr>
368          <td></td>
369          <td></td>
370          <td class="md" nowrap>const void *&nbsp;</td>
371          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
372        </tr>
373        <tr>
374          <td></td>
375          <td class="md">)&nbsp;</td>
376          <td class="md" colspan="2"><code> [pure virtual]</code></td>
377        </tr>
378
379      </table>
380    </td>
381  </tr>
382</table>
383<table cellspacing=5 cellpadding=0 border=0>
384  <tr>
385    <td>
386      &nbsp;
387    </td>
388    <td>
389
390<p>
391Set the value of a parameter.
392<p>
393<dl compact><dt><b>
394Parameters: </b><dd>
395<table border=0 cellspacing=2 cellpadding=0>
396<tr><td valign=top><em>name</em>&nbsp;</td><td>
397The name of the parameter to set. </td></tr>
398<tr><td valign=top><em>value</em>&nbsp;</td><td>
399The new value or null if the user wishes to unset the  parameter. While the type of the value parameter is defined as  <code>DOMUserData</code>, the object type must match the type defined by the definition of the parameter. For example, if the parameter is  "error-handler", the value must be of type <code><a class="el" href="classDOMErrorHandler.html">DOMErrorHandler</a></code> </td></tr>
400</table>
401</dl><dl compact><dt><b>
402Exceptions: </b><dd>
403<table border=0 cellspacing=2 cellpadding=0>
404<tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em>&nbsp;</td><td>
405 (NOT_SUPPORTED_ERR) Raised when the  parameter name is recognized but the requested value cannot be set. </td></tr>
406<tr><td valign=top><em><a class="el" href="classDOMException.html">DOMException</a></em>&nbsp;</td><td>
407 (NOT_FOUND_ERR) Raised when the  parameter name is not recognized. </td></tr>
408</table>
409</dl><dl compact><dt><b>
410Since: </b><dd>
411DOM level 3 </dl>    </td>
412  </tr>
413</table>
414<hr>The documentation for this class was generated from the following file:<ul>
415<li><a class="el" href="DOMConfiguration_8hpp-source.html">DOMConfiguration.hpp</a></ul>
416    </FONT></TD></TR></TABLE><BR>
417</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>
418              Copyright &copy; 1994-2004 The Apache Software Foundation.
419              All Rights Reserved.
420            </I></FONT></TD></TR></TABLE></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.