You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/02/04 22:20:59 UTC

cvs commit: xml-xerces/c/src/xercesc/idom IDAttrImpl.cpp IDCDATASectionImpl.cpp IDCommentImpl.cpp IDDocumentFragmentImpl.cpp IDElementImpl.cpp IDElementImpl.hpp IDEntityImpl.cpp IDEntityReferenceImpl.cpp IDNodeImpl.hpp IDNodeIteratorImpl.cpp IDNodeIteratorImpl.hpp IDNotationImpl.cpp IDOM_Element.hpp IDOM_Node.hpp IDOM_NodeIterator.hpp IDOM_TreeWalker.hpp IDProcessingInstructionImpl.cpp IDTextImpl.cpp IDTreeWalkerImpl.cpp IDTreeWalkerImpl.hpp

tng         02/02/04 13:20:59

  Modified:    c/src/xercesc/idom IDAttrImpl.cpp IDCDATASectionImpl.cpp
                        IDCommentImpl.cpp IDDocumentFragmentImpl.cpp
                        IDElementImpl.cpp IDElementImpl.hpp
                        IDEntityImpl.cpp IDEntityReferenceImpl.cpp
                        IDNodeImpl.hpp IDNodeIteratorImpl.cpp
                        IDNodeIteratorImpl.hpp IDNotationImpl.cpp
                        IDOM_Element.hpp IDOM_Node.hpp
                        IDOM_NodeIterator.hpp IDOM_TreeWalker.hpp
                        IDProcessingInstructionImpl.cpp IDTextImpl.cpp
                        IDTreeWalkerImpl.cpp IDTreeWalkerImpl.hpp
  Log:
  Add DOM 2 Level missing functions:
    1. NodeIterator::getRoot
    2. TreeWalker::getRoot
    3. Element::hasAttribute
    4. Element::hasAttributeNS
    5. Node::hasAttributes
    6. Node::isSupported
  
  Revision  Changes    Path
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDAttrImpl.cpp
  
  Index: IDAttrImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDAttrImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDAttrImpl.cpp	1 Feb 2002 22:21:52 -0000	1.1
  +++ IDAttrImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDAttrImpl.cpp,v 1.1 2002/02/01 22:21:52 peiyongz Exp $
  + * $Id: IDAttrImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   #include "IDAttrImpl.hpp"
  @@ -258,9 +258,10 @@
              IDOM_Node          *IDAttrImpl::removeChild(IDOM_Node *oldChild)        {return fParent.removeChild (oldChild); };
              IDOM_Node          *IDAttrImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                                      {return fParent.replaceChild (newChild, oldChild); };
  -           bool                IDAttrImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                                   {return fNode.supports (feature, version); };
  +           bool                IDAttrImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                                   {return fNode.isSupported (feature, version); };
              void                IDAttrImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDAttrImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
   
   
   
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDCDATASectionImpl.cpp
  
  Index: IDCDATASectionImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDCDATASectionImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDCDATASectionImpl.cpp	1 Feb 2002 22:21:53 -0000	1.1
  +++ IDCDATASectionImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDCDATASectionImpl.cpp,v 1.1 2002/02/01 22:21:53 peiyongz Exp $
  + * $Id: IDCDATASectionImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   #include "IDCDATASectionImpl.hpp"
  @@ -182,9 +182,10 @@
              IDOM_Node          *IDCDATASectionImpl::removeChild(IDOM_Node *oldChild)        {return fParent.removeChild (oldChild); };
              IDOM_Node          *IDCDATASectionImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                               {return fParent.replaceChild (newChild, oldChild); };
  -           bool                IDCDATASectionImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                            {return fNode.supports (feature, version); };
  +           bool                IDCDATASectionImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                            {return fNode.isSupported (feature, version); };
              void                IDCDATASectionImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDCDATASectionImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
   
   
   //
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDCommentImpl.cpp
  
  Index: IDCommentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDCommentImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDCommentImpl.cpp	1 Feb 2002 22:21:53 -0000	1.1
  +++ IDCommentImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDCommentImpl.cpp,v 1.1 2002/02/01 22:21:53 peiyongz Exp $
  + * $Id: IDCommentImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   /**
  @@ -134,9 +134,10 @@
              IDOM_Node          *IDCommentImpl::removeChild(IDOM_Node *oldChild)        {return fNode.removeChild (oldChild); };
              IDOM_Node          *IDCommentImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                               {return fNode.replaceChild (newChild, oldChild); };
  -           bool                IDCommentImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                            {return fNode.supports (feature, version); };
  +           bool                IDCommentImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                            {return fNode.isSupported (feature, version); };
              void                IDCommentImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDCommentImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
   
   
   //
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDDocumentFragmentImpl.cpp
  
  Index: IDDocumentFragmentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDDocumentFragmentImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDDocumentFragmentImpl.cpp	1 Feb 2002 22:21:53 -0000	1.1
  +++ IDDocumentFragmentImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDDocumentFragmentImpl.cpp,v 1.1 2002/02/01 22:21:53 peiyongz Exp $
  + * $Id: IDDocumentFragmentImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   #include "IDDocumentFragmentImpl.hpp"
  @@ -137,7 +137,8 @@
              IDOM_Node          *IDDocumentFragmentImpl::removeChild(IDOM_Node *oldChild)        {return fParent.removeChild (oldChild); };
              IDOM_Node          *IDDocumentFragmentImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                               {return fParent.replaceChild (newChild, oldChild); };
  -           bool                IDDocumentFragmentImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                            {return fNode.supports (feature, version); };
  +           bool                IDDocumentFragmentImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                            {return fNode.isSupported (feature, version); };
              void                IDDocumentFragmentImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDDocumentFragmentImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
   
  
  
  
  1.2       +34 -8     xml-xerces/c/src/xercesc/idom/IDElementImpl.cpp
  
  Index: IDElementImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDElementImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDElementImpl.cpp	1 Feb 2002 22:21:54 -0000	1.1
  +++ IDElementImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDElementImpl.cpp,v 1.1 2002/02/01 22:21:54 peiyongz Exp $
  + * $Id: IDElementImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   #include "IDElementImpl.hpp"
  @@ -98,12 +98,19 @@
         fAttributes(0)
   {
       fName = other.fName;
  -    setupDefaultAttributes();
  -    if (!fAttributes)
  -        fAttributes = new (getOwnerDocument()) IDAttrMapImpl(this);
  -
       if (deep)
           fParent.cloneChildren(&other);
  +
  +    if (other.getAttributes())
  +    {
  +        fAttributes = ((IDAttrMapImpl *)other.getAttributes())->cloneAttrMap(this);
  +    }
  +
  +    if (!fAttributes) {
  +        setupDefaultAttributes();
  +        if (!fAttributes)
  +            fAttributes = new (getOwnerDocument()) IDAttrMapImpl(this);
  +    }
   };
   
   
  @@ -334,6 +341,25 @@
       return docImpl->getDeepNodeList(this, namespaceURI, localName);
   }
   
  +bool IDElementImpl::hasAttributes() const
  +{
  +    return (fAttributes != 0 && fAttributes->getLength() != 0);
  +};
  +
  +
  +bool IDElementImpl::hasAttribute(const XMLCh *name) const
  +{
  +    return (getAttributeNode(name) != 0);
  +};
  +
  +
  +bool IDElementImpl::hasAttributeNS(const XMLCh *namespaceURI,
  +	const XMLCh *localName) const
  +{
  +    return (getAttributeNodeNS(namespaceURI, localName) != 0);
  +};
  +
  +
   // DOM_NamedNodeMap UTILITIES
   #ifdef idom_revisit
   NamedNodeMapImpl *IDElementImpl::NNM_cloneMap(IDOM_Node *nnm_ownerNode)
  @@ -471,8 +497,8 @@
              IDOM_Node          *IDElementImpl::removeChild(IDOM_Node *oldChild)        {return fParent.removeChild (oldChild); };
              IDOM_Node          *IDElementImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                               {return fParent.replaceChild (newChild, oldChild); };
  -           bool                IDElementImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                            {return fNode.supports (feature, version); };
  +           bool                IDElementImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                            {return fNode.isSupported (feature, version); };
              void                IDElementImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
   
   
  
  
  
  1.2       +5 -2      xml-xerces/c/src/xercesc/idom/IDElementImpl.hpp
  
  Index: IDElementImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDElementImpl.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDElementImpl.hpp	1 Feb 2002 22:21:54 -0000	1.1
  +++ IDElementImpl.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -4,7 +4,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -58,7 +58,7 @@
    */
   
   /*
  - * $Id: IDElementImpl.hpp,v 1.1 2002/02/01 22:21:54 peiyongz Exp $
  + * $Id: IDElementImpl.hpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   //
  @@ -129,6 +129,9 @@
       virtual IDOM_Attr        *setAttributeNodeNS(IDOM_Attr *newAttr);
       virtual IDOM_NodeList    *getElementsByTagNameNS(const XMLCh *namespaceURI,
                                                     const XMLCh *localName) const;
  +    virtual bool              hasAttribute(const XMLCh *name) const;
  +    virtual bool              hasAttributeNS(const XMLCh *namespaceURI,
  +                                             const XMLCh *localName) const;
   
   
   
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDEntityImpl.cpp
  
  Index: IDEntityImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDEntityImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDEntityImpl.cpp	1 Feb 2002 22:21:54 -0000	1.1
  +++ IDEntityImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDEntityImpl.cpp,v 1.1 2002/02/01 22:21:54 peiyongz Exp $
  + * $Id: IDEntityImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   #include "IDOM_DOMException.hpp"
  @@ -228,6 +228,7 @@
              IDOM_Node          *IDEntityImpl::removeChild(IDOM_Node *oldChild)        {return fParent.removeChild (oldChild); };
              IDOM_Node          *IDEntityImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                               {return fParent.replaceChild (newChild, oldChild); };
  -           bool                IDEntityImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                            {return fNode.supports (feature, version); };
  +           bool                IDEntityImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                            {return fNode.isSupported (feature, version); };
              void                IDEntityImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDEntityImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDEntityReferenceImpl.cpp
  
  Index: IDEntityReferenceImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDEntityReferenceImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDEntityReferenceImpl.cpp	1 Feb 2002 22:21:54 -0000	1.1
  +++ IDEntityReferenceImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDEntityReferenceImpl.cpp,v 1.1 2002/02/01 22:21:54 peiyongz Exp $
  + * $Id: IDEntityReferenceImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   /**
  @@ -217,6 +217,7 @@
              IDOM_Node          *IDEntityReferenceImpl::removeChild(IDOM_Node *oldChild)        {return fParent.removeChild (oldChild); };
              IDOM_Node          *IDEntityReferenceImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                               {return fParent.replaceChild (newChild, oldChild); };
  -           bool                IDEntityReferenceImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                            {return fNode.supports (feature, version); };
  +           bool                IDEntityReferenceImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                            {return fNode.isSupported (feature, version); };
              void                IDEntityReferenceImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDEntityReferenceImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
  
  
  
  1.2       +6 -4      xml-xerces/c/src/xercesc/idom/IDNodeImpl.hpp
  
  Index: IDNodeImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDNodeImpl.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDNodeImpl.hpp	1 Feb 2002 22:21:55 -0000	1.1
  +++ IDNodeImpl.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -4,7 +4,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -58,7 +58,7 @@
    */
   
   /*
  - * $Id: IDNodeImpl.hpp,v 1.1 2002/02/01 22:21:55 peiyongz Exp $
  + * $Id: IDNodeImpl.hpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   //
  @@ -144,7 +144,8 @@
        void                setPrefix(const XMLCh *fPrefix);
        void                setReadOnly(bool readOnly, bool deep);
        void                setUserData(void *value);
  -     bool                supports(const XMLCh *feature, const XMLCh *version) const;
  +     bool                isSupported(const XMLCh *feature, const XMLCh *version) const;
  +     bool                hasAttributes() const;
   
       static  bool         isKidOK(IDOM_Node *parent, IDOM_Node *child);
   
  @@ -304,7 +305,8 @@
       virtual       IDOM_Node          *removeChild(IDOM_Node *oldChild) ;\
       virtual       IDOM_Node          *replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild) ;\
       virtual       void                setNodeValue(const XMLCh  *nodeValue) ;\
  -    virtual       bool                supports(const XMLCh *feature, const XMLCh *version) const ;\
  +    virtual       bool                isSupported(const XMLCh *feature, const XMLCh *version) const ;\
  +    virtual       bool                hasAttributes() const ;\
       virtual       void                setPrefix(const XMLCh * prefix)
   
   
  
  
  
  1.2       +7 -1      xml-xerces/c/src/xercesc/idom/IDNodeIteratorImpl.cpp
  
  Index: IDNodeIteratorImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDNodeIteratorImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDNodeIteratorImpl.cpp	1 Feb 2002 22:21:55 -0000	1.1
  +++ IDNodeIteratorImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -56,8 +56,17 @@
   
   /*
    * $Log: IDNodeIteratorImpl.cpp,v $
  - * Revision 1.1  2002/02/01 22:21:55  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/02/04 21:20:59  tng
  + * Add DOM 2 Level missing functions:
  + *   1. NodeIterator::getRoot
  + *   2. TreeWalker::getRoot
  + *   3. Element::hasAttribute
  + *   4. Element::hasAttributeNS
  + *   5. Node::hasAttributes
  + *   6. Node::isSupported
  + *
  + * Revision 1.1.1.1  2002/02/01 22:21:55  peiyongz
  + * sane_include
    *
    * Revision 1.3  2001/06/04 20:11:52  tng
    * IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
  @@ -141,6 +150,9 @@
       return *this;
   }
   
  +IDOM_Node* IDNodeIteratorImpl::getRoot() {
  +    return fRoot;
  +}
   
   
   // Implementation Note: Note that the iterator looks at whatToShow
  
  
  
  1.2       +6 -2      xml-xerces/c/src/xercesc/idom/IDNodeIteratorImpl.hpp
  
  Index: IDNodeIteratorImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDNodeIteratorImpl.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDNodeIteratorImpl.hpp	1 Feb 2002 22:21:55 -0000	1.1
  +++ IDNodeIteratorImpl.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -56,8 +56,17 @@
   
   /*
    * $Log: IDNodeIteratorImpl.hpp,v $
  - * Revision 1.1  2002/02/01 22:21:55  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/02/04 21:20:59  tng
  + * Add DOM 2 Level missing functions:
  + *   1. NodeIterator::getRoot
  + *   2. TreeWalker::getRoot
  + *   3. Element::hasAttribute
  + *   4. Element::hasAttributeNS
  + *   5. Node::hasAttributes
  + *   6. Node::isSupported
  + *
  + * Revision 1.1.1.1  2002/02/01 22:21:55  peiyongz
  + * sane_include
    *
    * Revision 1.3  2001/06/04 20:11:52  tng
    * IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
  @@ -135,7 +144,8 @@
   
           IDNodeIteratorImpl ( const IDNodeIteratorImpl& toCopy);
           IDNodeIteratorImpl& operator= (const IDNodeIteratorImpl& other);
  -        	
  +
  +        virtual IDOM_Node* getRoot ();                	
           virtual unsigned long getWhatToShow ();
           virtual IDOM_NodeFilter* getFilter ();
           // Get the expandEntity reference flag.
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDNotationImpl.cpp
  
  Index: IDNotationImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDNotationImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDNotationImpl.cpp	1 Feb 2002 22:21:55 -0000	1.1
  +++ IDNotationImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDNotationImpl.cpp,v 1.1 2002/02/01 22:21:55 peiyongz Exp $
  + * $Id: IDNotationImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   /**
  @@ -187,8 +187,9 @@
              IDOM_Node          *IDNotationImpl::removeChild(IDOM_Node *oldChild)        {return fNode.removeChild (oldChild); };
              IDOM_Node          *IDNotationImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                               {return fNode.replaceChild (newChild, oldChild); };
  -           bool                IDNotationImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                            {return fNode.supports (feature, version); };
  +           bool                IDNotationImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                            {return fNode.isSupported (feature, version); };
              void                IDNotationImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDNotationImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
   
   
  
  
  
  1.2       +30 -13    xml-xerces/c/src/xercesc/idom/IDOM_Element.hpp
  
  Index: IDOM_Element.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDOM_Element.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDOM_Element.hpp	1 Feb 2002 22:21:56 -0000	1.1
  +++ IDOM_Element.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -56,8 +56,17 @@
   
   /*
    * $Log: IDOM_Element.hpp,v $
  - * Revision 1.1  2002/02/01 22:21:56  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/02/04 21:20:59  tng
  + * Add DOM 2 Level missing functions:
  + *   1. NodeIterator::getRoot
  + *   2. TreeWalker::getRoot
  + *   3. Element::hasAttribute
  + *   4. Element::hasAttributeNS
  + *   5. Node::hasAttributes
  + *   6. Node::isSupported
  + *
  + * Revision 1.1.1.1  2002/02/01 22:21:56  peiyongz
  + * sane_include
    *
    * Revision 1.2  2001/05/11 13:25:52  tng
    * Copyright update.
  @@ -255,8 +264,6 @@
     /**
      * Retrieves an attribute value by local name and namespace URI.
      *
  -   * <p><b>"Experimental - subject to change"</b></p>
  -   *
      * @param namespaceURI The <em>namespace URI</em> of
      *    the attribute to retrieve.
      * @param localName The <em>local name</em> of the
  @@ -282,8 +289,6 @@
      * <CODE>setAttributeNodeNS</CODE> or <CODE>setAttributeNode</CODE> to assign
      * it as the value of an attribute.
      *
  -   * <p><b>"Experimental - subject to change"</b></p>
  -   *
      * @param namespaceURI The <em>namespace URI</em> of
      *    the attribute to create or alter.
      * @param qualifiedName The <em>qualified name</em> of the
  @@ -316,8 +321,6 @@
      * The replacing attribute has the same namespace URI and local name, as well as
      * the original prefix.
      *
  -   * <p><b>"Experimental - subject to change"</b></p>
  -   *
      * @param namespaceURI The <em>namespace URI</em> of
      *    the attribute to remove.
      * @param localName The <em>local name</em> of the
  @@ -331,8 +334,6 @@
     /**
      * Retrieves an <code>IDOM_Attr</code> node by local name and namespace URI.
      *
  -   * <p><b>"Experimental - subject to change"</b></p>
  -   *
      * @param namespaceURI The <em>namespace URI</em> of
      *    the attribute to retrieve.
      * @param localName The <em>local name</em> of the
  @@ -349,8 +350,6 @@
       * If an attribute with that local name and namespace URI is already present
       * in the element, it is replaced by the new one.
       *
  -    * <p><b>"Experimental - subject to change"</b></p>
  -    *
       * @param newAttr The <code>IDOM_Attr</code> node to add to the attribute list.
       * @return If the <code>newAttr</code> attribute replaces an existing
       *    attribute with the same <em>local name</em> and <em>namespace URI</em>,
  @@ -373,8 +372,6 @@
      * would be encountered in a preorder traversal of the
      * <code>IDOM_Document</code> tree, starting from this node.
      *
  -   * <p><b>"Experimental - subject to change"</b></p>
  -   *
      * @param namespaceURI The <em>namespace URI</em> of
      *    the elements to match on. The special value "*" matches all
      *    namespaces.
  @@ -385,6 +382,32 @@
      */
     virtual IDOM_NodeList   * getElementsByTagNameNS(const XMLCh *namespaceURI,
   	const XMLCh *localName) const = 0;
  +
  +    /**
  +     * 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.
  +     * @param nameThe name of the attribute to look for.
  +     * @return <code>true</code> if an attribute with the given name is
  +     *   specified on this element or has a default value, <code>false</code>
  +     *    otherwise.
  +     */
  +    virtual bool         hasAttribute(const XMLCh *name) const = 0;
  +
  +    /**
  +     * 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. HTML-only DOM implementations do not
  +     * need to implement this method.
  +     * @param namespaceURIThe namespace URI of the attribute to look for.
  +     * @param localNameThe local name of the attribute to look for.
  +     * @return <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.
  +     * @since DOM Level 2
  +     */
  +    virtual bool         hasAttributeNS(const XMLCh *namespaceURI,
  +                                        const XMLCh *localName) const = 0;
   
     //@}
   
  
  
  
  1.2       +11 -12    xml-xerces/c/src/xercesc/idom/IDOM_Node.hpp
  
  Index: IDOM_Node.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDOM_Node.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDOM_Node.hpp	1 Feb 2002 22:21:56 -0000	1.1
  +++ IDOM_Node.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDOM_Node.hpp,v 1.1 2002/02/01 22:21:56 peiyongz Exp $
  + * $Id: IDOM_Node.hpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   #ifndef IDOM_Node_HEADER_GUARD_
  @@ -232,8 +232,6 @@
        * which is not used with any <code>IDOM_Document</code> yet, this is
        * <code>null</code>.
        *
  -     * <p><b>"Experimental - subject to change"</b></p>
  -     *
        */
       virtual IDOM_Document      *getOwnerDocument() const = 0;
   
  @@ -419,8 +417,6 @@
        * Tests whether the DOM implementation implements a specific
        * feature and that feature is supported by this node.
        *
  -     * <p><b>"Experimental - subject to change"</b></p>
  -     *
        * @param feature The string of the feature to test. This is the same
        * name as what can be passed to the method <code>hasFeature</code> on
        * <code>IDOM_DOMImplementation</code>.
  @@ -431,8 +427,8 @@
        * @return Returns <code>true</code> if the specified feature is supported
        * on this node, <code>false</code> otherwise.
        */
  -    virtual bool      supports(const XMLCh *feature,
  -	                           const XMLCh *version) const = 0;
  +    virtual bool              isSupported(const XMLCh *feature,
  +	                                       const XMLCh *version) const = 0;
   
       /**
        * Get the <em>namespace URI</em> of
  @@ -447,8 +443,6 @@
        * such as <CODE>createElement</CODE> from the <CODE>IDOM_Document</CODE>
        * interface, this is always <CODE>null</CODE>.
        *
  -     * <p><b>"Experimental - subject to change"</b></p>
  -     *
        */
       virtual const XMLCh *         getNamespaceURI() const = 0;
   
  @@ -456,8 +450,6 @@
        * Get the <em>namespace prefix</em>
        * of this node, or <code>null</code> if it is unspecified.
        *
  -     * <p><b>"Experimental - subject to change"</b></p>
  -     *
        */
       virtual const XMLCh *          getPrefix() const = 0;
   
  @@ -505,6 +497,13 @@
        *      the <CODE>qualifiedName</CODE> of this node is "xmlns".
        */
       virtual void              setPrefix(const XMLCh * prefix) = 0;
  +
  +    /**
  +     *  Returns whether this node (if it is an element) has any attributes.
  +     * @return <code>true</code> if this node has any attributes,
  +     *   <code>false</code> otherwise.
  +     */
  +    virtual bool              hasAttributes() const = 0;
   
       //@}
   
  
  
  
  1.2       +9 -15     xml-xerces/c/src/xercesc/idom/IDOM_NodeIterator.hpp
  
  Index: IDOM_NodeIterator.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDOM_NodeIterator.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDOM_NodeIterator.hpp	1 Feb 2002 22:21:56 -0000	1.1
  +++ IDOM_NodeIterator.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -56,8 +56,17 @@
   
   /*
    * $Log: IDOM_NodeIterator.hpp,v $
  - * Revision 1.1  2002/02/01 22:21:56  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/02/04 21:20:59  tng
  + * Add DOM 2 Level missing functions:
  + *   1. NodeIterator::getRoot
  + *   2. TreeWalker::getRoot
  + *   3. Element::hasAttribute
  + *   4. Element::hasAttributeNS
  + *   5. Node::hasAttributes
  + *   6. Node::isSupported
  + *
  + * Revision 1.1.1.1  2002/02/01 22:21:56  peiyongz
  + * sane_include
    *
    * Revision 1.3  2001/06/04 20:11:53  tng
    * IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
  @@ -88,8 +97,6 @@
    * subtree. Instances of these iterators are created by calling
    * <code>DocumentTraversal.createNodeIterator()</code>.
    *
  - * <p><b>"Experimental - subject to change"</b></p>
  - *
    */
   class CDOM_EXPORT IDOM_NodeIterator
   {
  @@ -102,19 +109,20 @@
           /** @name Get functions. */
           //@{
           /**
  +         * The <code>root</code> node of the <code>NodeIterator</code>, as specified
  +         * when it was created.
  +         */
  +        virtual IDOM_Node*          getRoot() = 0;
  +        /**
             * Return which node types are presented via the iterator.
             * The available set of constants is defined in the IDOM_NodeFilter interface.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual unsigned long       getWhatToShow() = 0;
   
           /**
             * Return The filter used to screen nodes.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_NodeFilter*     getFilter() = 0;
   
  @@ -123,8 +131,6 @@
             * The value of this flag determines whether the children of entity reference
             * nodes are visible to the IDOM_NodeFilter. If false, they will be skipped over.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual bool getExpandEntityReferences() = 0;
   
  @@ -133,8 +139,6 @@
             * in the set. After a IDOM_NodeIterator is created, the first call to nextNode()
             * returns the first node in the set.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             * @exception DOMException
             *   INVALID_STATE_ERR: Raised if this method is called after the
             *   <code>detach</code> method was invoked.
  @@ -145,8 +149,6 @@
             * Returns the previous node in the set and moves the position of the iterator
             * backwards in the set.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             * @exception DOMException
             *   INVALID_STATE_ERR: Raised if this method is called after the
             *   <code>detach</code> method was invoked.
  @@ -161,8 +163,6 @@
             * computational resources and placing the iterator in the INVALID state. After
             * <code>detach</code> has been invoked, calls to <code>nextNode</code> or
             * <code>previousNode</code> will raise the exception INVALID_STATE_ERR.
  -          *
  -          * <p><b>"Experimental - subject to change"</b></p>
             *
             */
           virtual void                 detach() = 0;
  
  
  
  1.2       +9 -27     xml-xerces/c/src/xercesc/idom/IDOM_TreeWalker.hpp
  
  Index: IDOM_TreeWalker.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDOM_TreeWalker.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDOM_TreeWalker.hpp	1 Feb 2002 22:21:56 -0000	1.1
  +++ IDOM_TreeWalker.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -56,8 +56,17 @@
   
   /*
    * $Log: IDOM_TreeWalker.hpp,v $
  - * Revision 1.1  2002/02/01 22:21:56  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/02/04 21:20:59  tng
  + * Add DOM 2 Level missing functions:
  + *   1. NodeIterator::getRoot
  + *   2. TreeWalker::getRoot
  + *   3. Element::hasAttribute
  + *   4. Element::hasAttributeNS
  + *   5. Node::hasAttributes
  + *   6. Node::isSupported
  + *
  + * Revision 1.1.1.1  2002/02/01 22:21:56  peiyongz
  + * sane_include
    *
    * Revision 1.3  2001/06/04 20:11:53  tng
    * IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
  @@ -92,8 +101,6 @@
    * nodes will be siblings and appear as direct children of the root node, no matter how
    * deeply nested the structure of the original document.
    *
  - * <p><b>"Experimental - subject to change"</b></p>
  - *
    */
   class CDOM_EXPORT IDOM_TreeWalker {
       protected:
  @@ -105,19 +112,20 @@
           /** @name Get functions. */
           //@{
           /**
  +         * The <code>root</code> node of the <code>TreeWalker</code>, as specified
  +         * when it was created.
  +         */
  +        virtual IDOM_Node*          getRoot() = 0;
  +        /**
             * Return which node types are presented via the IDOM_TreeWalker.
             * These constants are defined in the IDOM_NodeFilter interface.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual unsigned long   	getWhatToShow()= 0;
   
           /**
             * Return The filter used to screen nodes.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_NodeFilter*		getFilter()= 0;
   
  @@ -126,16 +134,12 @@
             * The value of this flag determines whether the children of entity reference
             * nodes are visible to the IDOM_TreeWalker. If false, they will be skipped over.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual bool getExpandEntityReferences()= 0;
   
           /**
             * Return the node at which the IDOM_TreeWalker is currently positioned.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		getCurrentNode()= 0;
   
  @@ -145,8 +149,6 @@
             * node, or if it fails to find a visible ancestor node, this method retains the
             * current position and returns null.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		parentNode()= 0;
   
  @@ -155,8 +157,6 @@
             * and returns the new node. If the current node has no children, returns
             * <code>null</code>, and retains the current node.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		firstChild()= 0;
   
  @@ -165,8 +165,6 @@
             * returns the new node. If the current node has no children, returns
             * <code>null</code>, and retains the current node.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		lastChild()= 0;
   
  @@ -175,8 +173,6 @@
             * node, and returns the new node. If the current node has no previous sibling,
             * returns <code>null</code>, and retains the current node.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		previousSibling()= 0;
   
  @@ -185,8 +181,6 @@
             * and returns the new node. If the current node has no next sibling, returns
             * <code>null</code>, and retains the current node.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		nextSibling()= 0;
   
  @@ -197,8 +191,6 @@
             * or if the search for previousNode attempts to step upward from the IDOM_TreeWalker's
             * root node, returns <code>null</code>, and retains the current node.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		previousNode()= 0;
   
  @@ -209,8 +201,6 @@
             * or if the search for nextNode attempts to step upward from the IDOM_TreeWalker's
             * root node, returns <code>null</code>, and retains the current node.
             *
  -          * <p><b>"Experimental - subject to change"</b></p>
  -          *
             */
           virtual IDOM_Node*		nextNode()= 0;
           //@}
  @@ -219,8 +209,6 @@
           //@{
           /**
             * Set the node at which the IDOM_TreeWalker is currently positioned.
  -          *
  -          * <p><b>"Experimental - subject to change"</b></p>
             *
             */
           virtual void			setCurrentNode(IDOM_Node* currentNode)= 0;
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDProcessingInstructionImpl.cpp
  
  Index: IDProcessingInstructionImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDProcessingInstructionImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDProcessingInstructionImpl.cpp	1 Feb 2002 22:21:56 -0000	1.1
  +++ IDProcessingInstructionImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDProcessingInstructionImpl.cpp,v 1.1 2002/02/01 22:21:56 peiyongz Exp $
  + * $Id: IDProcessingInstructionImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   #include "IDProcessingInstructionImpl.hpp"
  @@ -182,6 +182,7 @@
              IDOM_Node          *IDProcessingInstructionImpl::removeChild(IDOM_Node *oldChild)        {return fNode.removeChild (oldChild); };
              IDOM_Node          *IDProcessingInstructionImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                                                       {return fNode.replaceChild (newChild, oldChild); };
  -           bool                IDProcessingInstructionImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                                                    {return fNode.supports (feature, version); };
  +           bool                IDProcessingInstructionImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                                                    {return fNode.isSupported (feature, version); };
              void                IDProcessingInstructionImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDProcessingInstructionImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
  
  
  
  1.2       +5 -4      xml-xerces/c/src/xercesc/idom/IDTextImpl.cpp
  
  Index: IDTextImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDTextImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDTextImpl.cpp	1 Feb 2002 22:21:57 -0000	1.1
  +++ IDTextImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDTextImpl.cpp,v 1.1 2002/02/01 22:21:57 peiyongz Exp $
  + * $Id: IDTextImpl.cpp,v 1.2 2002/02/04 21:20:59 tng Exp $
    */
   
   
  @@ -183,9 +183,10 @@
              IDOM_Node          *IDTextImpl::removeChild(IDOM_Node *oldChild)        {return fNode.removeChild (oldChild); };
              IDOM_Node          *IDTextImpl::replaceChild(IDOM_Node *newChild, IDOM_Node *oldChild)
                                                                                       {return fNode.replaceChild (newChild, oldChild); };
  -           bool                IDTextImpl::supports(const XMLCh *feature, const XMLCh *version) const
  -                                                                                    {return fNode.supports (feature, version); };
  +           bool                IDTextImpl::isSupported(const XMLCh *feature, const XMLCh *version) const
  +                                                                                    {return fNode.isSupported (feature, version); };
              void                IDTextImpl::setPrefix(const XMLCh  *prefix)         {fNode.setPrefix(prefix); };
  +           bool                IDTextImpl::hasAttributes() const                   {return fNode.hasAttributes(); };
   
   
   //
  
  
  
  1.2       +10 -1     xml-xerces/c/src/xercesc/idom/IDTreeWalkerImpl.cpp
  
  Index: IDTreeWalkerImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDTreeWalkerImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDTreeWalkerImpl.cpp	1 Feb 2002 22:21:57 -0000	1.1
  +++ IDTreeWalkerImpl.cpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -56,8 +56,17 @@
   
   /*
    * $Log: IDTreeWalkerImpl.cpp,v $
  - * Revision 1.1  2002/02/01 22:21:57  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/02/04 21:20:59  tng
  + * Add DOM 2 Level missing functions:
  + *   1. NodeIterator::getRoot
  + *   2. TreeWalker::getRoot
  + *   3. Element::hasAttribute
  + *   4. Element::hasAttributeNS
  + *   5. Node::hasAttributes
  + *   6. Node::isSupported
  + *
  + * Revision 1.1.1.1  2002/02/01 22:21:57  peiyongz
  + * sane_include
    *
    * Revision 1.3  2001/06/04 20:11:53  tng
    * IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
  @@ -115,6 +124,12 @@
       return *this;
   }
   
  +
  +
  +/** Return the root node */
  +IDOM_Node* IDTreeWalkerImpl::getRoot () {
  +    return fRoot;
  +}
   
   
   /** Return the whatToShow value */
  
  
  
  1.2       +7 -1      xml-xerces/c/src/xercesc/idom/IDTreeWalkerImpl.hpp
  
  Index: IDTreeWalkerImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/idom/IDTreeWalkerImpl.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDTreeWalkerImpl.hpp	1 Feb 2002 22:21:57 -0000	1.1
  +++ IDTreeWalkerImpl.hpp	4 Feb 2002 21:20:59 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -56,8 +56,17 @@
   
   /*
    * $Log: IDTreeWalkerImpl.hpp,v $
  - * Revision 1.1  2002/02/01 22:21:57  peiyongz
  - * Initial revision
  + * Revision 1.2  2002/02/04 21:20:59  tng
  + * Add DOM 2 Level missing functions:
  + *   1. NodeIterator::getRoot
  + *   2. TreeWalker::getRoot
  + *   3. Element::hasAttribute
  + *   4. Element::hasAttributeNS
  + *   5. Node::hasAttributes
  + *   6. Node::isSupported
  + *
  + * Revision 1.1.1.1  2002/02/01 22:21:57  peiyongz
  + * sane_include
    *
    * Revision 1.3  2001/06/04 20:11:53  tng
    * IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
  @@ -108,6 +117,9 @@
           bool expandEntityRef);
       IDTreeWalkerImpl (const IDTreeWalkerImpl& twi);
       IDTreeWalkerImpl& operator= (const IDTreeWalkerImpl& twi);
  +
  +    // Return the root node.
  +    virtual IDOM_Node* getRoot ();
   
       // Return the whatToShow value.
       virtual unsigned long  getWhatToShow ();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org