Newer
Older
Unknown (abagchi)
committed
<?xml version="1.0" standalone="no"?>
Unknown (abagchi)
committed
<!DOCTYPE s1 SYSTEM "./dtd/document.dtd">
Unknown (abagchi)
committed
<s2 title="Migrating from &XercesCName; &XercesCVersion; to &XercesCName; latest code base">
<p>This document is a discussion of the technical differences between
&XercesCName; &XercesCVersion; code base and the &XercesCName; latest code base.</p>
<p>Topics discussed are:</p>
<ul>
<li><link anchor="NewFeatures">New features in &XercesCName; latest code base</link></li>
<li><link anchor="API">Public API Changes in &XercesCName; latest code base</link></li>
<li><link anchor="NewAPI">New Public API</link></li>
<li><link anchor="ModifiedAPI">Modified Public API</link></li>
<li><link anchor="DeprecatedAPI">Deprecated Public API</link></li>
<li><link anchor="DirChange">Directory change in &XercesCName; latest code base</link></li>
<s2 title="New features in &XercesCName; latest code base">
<s2 title="Public API Changes in &XercesCName; latest code base">
<p>The following lists the public API changes between the &XercesCName;
&XercesCVersion; and the &XercesCName; latest code base releases
<anchor name="NewAPI"/>
<s3 title="New Public API">
<li>SAX2-ext's DeclHandler class.
See <jump href="api.html">the API documentation page</jump> for details.</li>
<li>To support SAX2-ext's DeclHandler, the following new methods are added:</li>
<ul>
<li>void DefaultHandler::elementDecl(const XMLCh* const name, const XMLCh* const model)</li>
<li>void DefaultHandler::attributeDecl(const XMLCh* const eName, const XMLCh* const aName,
const XMLCh* const type, const XMLCh* const mode, const XMLCh* const value)</li>
<li>void DefaultHandler::internalEntityDecl(const XMLCh* const name, const XMLCh* const value)</li>
<li>void DefaultHandler::externalEntityDecl(const XMLCh* const name, const XMLCh* const publicId,
const XMLCh* const systemId)</li>
<li>DeclHandler* SAX2XMLReader::getDeclarationHandler() const</li>
<li>void SAX2XMLReader::setDeclarationHandler(DeclHandler* const handler)</li>
<li>DeclHandler* SAX2XMLReaderImpl::getDeclarationHandler() const</li>
<li>void SAX2XMLReaderImpl::setDeclarationHandler(DeclHandler* const handler)</li>
</ul>
<s3 title="Modified Public API">
<li>The namespace-prefixes feature in SAX2 is set to off as default.</li>
<s3 title="Deprecated Public API">
<s2 title="Directory change in &XercesCName; latest code base">
<ul>
<li>
A new directory, <em>src/xercesc</em> is created to be the new parent directory to
all src's direct subdirectories.</li>
<li>
Windows application, <br/>
shall either change the <em>additional include directories </em> setting,
to "..\..\..\..\..\src\<em>xercesc</em>" (Projects->settings->C/C++->Preprocessor).
or <br/>
change the relevant #include instances, in the source/header files, accordingly, eg <br/>
#include <util/XMLString.hpp> be changed to <br/>
#include <<em>xercesc</em>/util/XMLString.hpp> </li>
<li>
Unix application, <br/>
shall either add the line to the Makefile " -I <installroot>/include/<em>xercesc</em>",
or <br/>
change the relevant #include instances in the source/header files as shown above. </li>
</ul>
</s2>
<p>For migration information to &XercesCName; &XercesCVersion; or earlier,
please refer to <jump href="migrate_archive.html">Migration Archive. </jump></p>