Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/xerces-c-3.0.0@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
Executable
+149
@@ -0,0 +1,149 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
-->
|
||||
|
||||
<!DOCTYPE s1 SYSTEM "sbk:/style/dtd/document.dtd">
|
||||
|
||||
<s1 title="Programming Guide">
|
||||
|
||||
<p>This Programming Guide is for &XercesCName; version &XercesC3Version;.</p>
|
||||
|
||||
<p>Independent of the API you want to use, DOM, SAX, or SAX2, your
|
||||
application must initialize the &XercesCProjectName; system
|
||||
before using the API, and terminate it after you are done. This
|
||||
is achieved by the following code:</p>
|
||||
<source>
|
||||
#include <xercesc/util/PlatformUtils.hpp>
|
||||
// Other include files, declarations, and non-&XercesCName; initializations.
|
||||
|
||||
using namespace xercesc;
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
try {
|
||||
XMLPlatformUtils::Initialize();
|
||||
}
|
||||
catch (const XMLException& toCatch) {
|
||||
// Do your failure processing here
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Do your actual work with &XercesCName; here.
|
||||
|
||||
XMLPlatformUtils::Terminate();
|
||||
|
||||
// Other terminations and cleanup.
|
||||
return 0;
|
||||
}</source>
|
||||
|
||||
|
||||
<p><code>XMLPlatformUtils::Initialize()</code> and
|
||||
<code>XMLPlatformUtils::Terminate</code> must be called at
|
||||
least once in each process. You are allowed to call
|
||||
<code>XMLPlatformUtils::Initialize()</code> and
|
||||
<code>XMLPlatformUtils::Terminate</code> multiple times, but
|
||||
each call to <code>XMLPlatformUtils::Initialize()</code> must
|
||||
be matched with a call to
|
||||
<code>XMLPlatformUtils::Terminate</code>.</p>
|
||||
|
||||
<s2 title="DOM Programming Guide">
|
||||
<p>The DOM API is based on the
|
||||
<jump href="ApacheDOMC++Binding.html">Apache Recommended DOM C++ binding</jump>.</p>
|
||||
<p>Read the <jump href="program-dom-&XercesC3Series;.html">DOM Programming Guide</jump> document
|
||||
or jump directly to:</p>
|
||||
<ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#Objectives">Design Objectives</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOM3">DOM Level 3 Support in &XercesCName; </jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#UsingDOMAPI">Using DOM API</jump></li>
|
||||
<ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#AccessAPI">Accessing API from application code</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMClassNames">Class Names</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMObjMgmt">Objects Management</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMMemMgmt">Memory Management</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#XMLCh">String Type</jump></li>
|
||||
</ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#XercesDOMParser">XercesDOMParser</jump></li>
|
||||
<ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#ConstructXercesDOMParser">Constructing a XercesDOMParser</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#XercesDOMFeatures">Supported Features</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#XercesDOMProperties">Supported Properties</jump></li>
|
||||
</ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMLSParser">DOMLSParser</jump></li>
|
||||
<ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#ConstructDOMLSParser">Constructing a DOMLSParser</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#InputSourceWrapper">How to interchange DOMLSInput and SAX InputSource?</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMLSParserFeatures">Supported Features</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMLSParserProperties">Supported Properties</jump></li>
|
||||
</ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMLSSerializer">DOMLSSerializer</jump></li>
|
||||
<ul>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#ConstructDOMLSSerializer">Constructing a DOMLSSerializer</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMLSSerializerEntityRef">How does DOMLSSerializer handle built-in entity Reference in node value?</jump></li>
|
||||
<li><jump href="program-dom-&XercesC3Series;.html#DOMLSSerializerFeatures">Supported Features</jump></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</s2>
|
||||
|
||||
<s2 title="SAX2 Programming Guide">
|
||||
<p>Read the <jump href="program-sax2-&XercesC3Series;.html">SAX2 Programming Guide</jump> document
|
||||
or jump directly to:</p>
|
||||
<ul>
|
||||
<li><jump href="program-sax2-&XercesC3Series;.html#UsingSAX2API">Using the SAX2 API</jump></li>
|
||||
<li><jump href="program-sax2-&XercesC3Series;.html#SAX2XMLReader">SAX2XMLReader</jump></li>
|
||||
<ul>
|
||||
<li><jump href="program-sax2-&XercesC3Series;.html#ConstructParser2">Constructing an XML Reader</jump></li>
|
||||
<li><jump href="program-sax2-&XercesC3Series;.html#SAX2Features">Supported Features</jump></li>
|
||||
<li><jump href="program-sax2-&XercesC3Series;.html#SAX2Properties">Supported Properties</jump></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</s2>
|
||||
|
||||
<s2 title="SAX Programming Guide">
|
||||
<p>Read the <jump href="program-sax-&XercesC3Series;.html">SAX Programming Guide</jump> document
|
||||
or jump directly to:</p>
|
||||
<ul>
|
||||
<li><jump href="program-sax-&XercesC3Series;.html#UsingSAX1API">Using the SAX API</jump></li>
|
||||
<li><jump href="program-sax-&XercesC3Series;.html#SAXParser">SAXParser</jump></li>
|
||||
<ul>
|
||||
<li><jump href="program-sax-&XercesC3Series;.html#ConstructParser">Constructing a SAXParser</jump></li>
|
||||
<li><jump href="program-sax-&XercesC3Series;.html#SAXFeatures">Supported Features</jump></li>
|
||||
</ul>
|
||||
</ul>
|
||||
</s2>
|
||||
|
||||
<s2 title="Other Features">
|
||||
<p>Read the <jump href="program-others-&XercesC3Series;.html">&XercesCName; Programming Guide</jump> document
|
||||
or jump directly to:</p>
|
||||
<ul>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#Macro">Version Macros</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#Schema">Schema Support</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#Progressive">Progressive Parsing</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#GrammarCache">Pre-parsing Grammar and Grammar Caching</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#LoadableMessageText">Loadable Message Text</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#PluggableTranscoders">Pluggable Transcoders</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#PortingGuidelines">Porting Guidelines</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#CPPNamespace">Using C++ Namespace</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#SpecifylocaleforMessageLoader">Specify Locale for Message Loader</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#SpecifylocationforMessageLoader">Specify Location for Message Loader</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#UseSpecificScanner">Use Specific Scanner</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#PluggablePanicHandler">Pluggable Panic Handler</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#PluggableMemoryManager">Pluggable Memory Manager</jump></li>
|
||||
<li><jump href="program-others-&XercesC3Series;.html#SecurityManager">Managing Security Vulnerabilities</jump></li>
|
||||
</ul>
|
||||
</s2>
|
||||
|
||||
</s1>
|
||||
Reference in New Issue
Block a user