You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Chih-Hsiang Chou <ch...@jtcsv.com> on 2000/03/09 03:17:11 UTC

Proposed Xerces-C API Changes

To continue on improving Xerces-C, we are proposing the following API
changes.  Please post your comments/suggestions here by Mar. 10 (Friday)
4PM.  If your applications call any of these API, please update your code as
well.

[1] The following IDL attributes are readonly but have a set method
decalared in their C++ API now.  Those methods will be removed.

IDL Attribute          Set Method to be removed
----------------------------------------------
Attr.specified         DOM_Attr::setSpecified
Entity.publicId        DOM_Entity::setPublicId
Entity.systemId        DOM_Entity::setSystemId
Entity.notationName    DOM_Entity::setNotationName
Notation.publicId      DOM_Notation::setPublicId
Notation.systemId      DOM_Notation::setSystemId


[2] The following APIs have a "const" keyword added.  The node in
acceptNode() is also changed to a reference.

BEFORE
    DOM_Node DOM_NamedNodeMap::item(unsigned int index);
    DOM_Node DOM_NamedNodeMap::getNamedItem(const DOMString &name);
    virtual short DOM_NodeFilter::acceptNode(DOM_Node node) = 0;

AFTER
    DOM_Node DOM_NamedNodeMap::item(unsigned int index) const;
    DOM_Node DOM_NamedNodeMap::getNamedItem(const DOMString &name) const;
    virtual short DOM_NodeFilter::acceptNode(const DOM_Node& node) = 0;



Chih-Hsiang Chou
IBM Center for Java Technology - Silicon Valley
chchou@us.ibm.com



Re: Proposed Xerces-C API Changes

Posted by Chih-Hsiang Chou <ch...@jtcsv.com>.
Done.  The changes have been checked into CVS.

Chih-Hsiang Chou
IBM Center for Java Technology - Silicon Valley
chchou@us.ibm.com

----- Original Message -----
From: "Chih-Hsiang Chou" <ch...@jtcsv.com>
To: "xerces-dev" <xe...@xml.apache.org>
Sent: Wednesday, March 08, 2000 6:17 PM
Subject: Proposed Xerces-C API Changes


To continue on improving Xerces-C, we are proposing the following API
changes.  Please post your comments/suggestions here by Mar. 10 (Friday)
4PM.  If your applications call any of these API, please update your code as
well.

[1] The following IDL attributes are readonly but have a set method
decalared in their C++ API now.  Those methods will be removed.

IDL Attribute          Set Method to be removed
----------------------------------------------
Attr.specified         DOM_Attr::setSpecified
Entity.publicId        DOM_Entity::setPublicId
Entity.systemId        DOM_Entity::setSystemId
Entity.notationName    DOM_Entity::setNotationName
Notation.publicId      DOM_Notation::setPublicId
Notation.systemId      DOM_Notation::setSystemId


[2] The following APIs have a "const" keyword added.  The node in
acceptNode() is also changed to a reference.

BEFORE
    DOM_Node DOM_NamedNodeMap::item(unsigned int index);
    DOM_Node DOM_NamedNodeMap::getNamedItem(const DOMString &name);
    virtual short DOM_NodeFilter::acceptNode(DOM_Node node) = 0;

AFTER
    DOM_Node DOM_NamedNodeMap::item(unsigned int index) const;
    DOM_Node DOM_NamedNodeMap::getNamedItem(const DOMString &name) const;
    virtual short DOM_NodeFilter::acceptNode(const DOM_Node& node) = 0;



Chih-Hsiang Chou
IBM Center for Java Technology - Silicon Valley
chchou@us.ibm.com