roddey      99/11/30 13:16:28

  Modified:    c/src/dom AttrImpl.cpp CharacterDataImpl.cpp DOMString.cpp
                        DOMString.hpp DOM_DOMImplementation.cpp
                        DocumentFragmentImpl.cpp DocumentImpl.cpp
                        DocumentTypeImpl.cpp ElementImpl.cpp EntityImpl.cpp
                        EntityReferenceImpl.cpp NamedNodeMapImpl.cpp
                        NodeImpl.cpp NodeIteratorImpl.cpp NotationImpl.cpp
                        ProcessingInstructionImpl.cpp TextImpl.cpp
                        TreeWalkerImpl.cpp
  Log:
  Changes to add the transcode() method to DOMString, which returns a transcoded
  version (to local code page) of the DOM string contents. And I changed all of 
the
  exception 'throw by pointer' to 'throw by value' style.
  
  Revision  Changes    Path
  1.2       +9 -2      xml-xerces/c/src/dom/AttrImpl.cpp
  
  Index: AttrImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/AttrImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AttrImpl.cpp      1999/11/09 01:08:39     1.1
  +++ AttrImpl.cpp      1999/11/30 21:16:24     1.2
  @@ -57,9 +57,14 @@
   
   /**
    * $Log: AttrImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:08:39  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:24  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:39  twl
  + * Initial checkin
  + *
    * Revision 1.3  1999/11/08 20:44:10  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -171,8 +176,12 @@
   void AttrImpl::setValue(const DOMString &val)
   {
       if (readOnly)
  -        throw new DOM_DOMException(
  -        DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +    {
  +        throw DOM_DOMException
  +        (
  +            DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null
  +        );
  +    }
       
       NodeImpl *kid;
       while ((kid = getFirstChild()) != null)         // Remove existing kids
  
  
  
  1.2       +13 -10    xml-xerces/c/src/dom/CharacterDataImpl.cpp
  
  Index: CharacterDataImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/CharacterDataImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CharacterDataImpl.cpp     1999/11/09 01:08:41     1.1
  +++ CharacterDataImpl.cpp     1999/11/30 21:16:24     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: CharacterDataImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:08:41  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:24  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:41  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:11  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -88,7 +93,7 @@
   void CharacterDataImpl::appendData(const DOMString &data)
   {
       if(readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       value.appendData(data);
  @@ -104,10 +109,10 @@
   void CharacterDataImpl::deleteData(int offset, int count)
   {
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       if (count < 0)
  -        throw new DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
  +        throw DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
       
       
       //int tailLength = Math.max(value.length() - count - offset, 0);
  @@ -117,11 +122,11 @@
       //}
       //catch (StringIndexOutOfBoundsException e)
       //{
  -    //      throw new DOM_DOMException(DOMException.INDEX_SIZE_ERR, null);
  +    //      throw DOM_DOMException(DOMException.INDEX_SIZE_ERR, null);
       
       int len = value.length();
       if (offset < 0 || offset >= len)
  -        throw new DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
  +        throw DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
       
       value.deleteData(offset, count);
   };
  @@ -156,11 +161,11 @@
   {
       
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       if (offset<0 || offset>value.length())
  -        throw new DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
  +        throw DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
       
       value.insertData(offset, data);
   }
  @@ -170,7 +175,7 @@
   void CharacterDataImpl::replaceData(int offset, int count, const DOMString 
&data)
   {
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       deleteData(offset, count);
       insertData(offset, data);
  @@ -182,7 +187,7 @@
   void CharacterDataImpl::setData(const DOMString &arg)
   {
       if (readOnly)
  -        throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +        throw 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       value = arg.clone();
   };
   
  @@ -194,7 +199,7 @@
   {
       
       if(count < 0 || offset < 0 || offset > value.length()-1)
  -        throw new DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR,null);
       
       return value.substringData(offset, count);
   };
  
  
  
  1.2       +35 -1     xml-xerces/c/src/dom/DOMString.cpp
  
  Index: DOMString.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DOMString.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMString.cpp     1999/11/09 01:08:47     1.1
  +++ DOMString.cpp     1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: DOMString.cpp,v $
  - * Revision 1.1  1999/11/09 01:08:47  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:47  twl
  + * Initial checkin
  + *
    * Revision 1.3  1999/11/08 20:44:12  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -802,8 +807,39 @@
       return retP;
   };
   
  +
  +char *DOMString::transcode() const
  +{
  +    if (!fHandle)
  +    {
  +        char* retP = new char[1];
  +        *retP = 0;
  +        return retP;
  +    }
  +
  +    // We've got some data, so cap it off first
  +    XMLCh* srcP = fHandle->fDSData->fData;
  +    srcP[fHandle->fLength] = 0;
  +
  +    //
  +    //  Find out how many chars we need and allocate a buffer big enough
  +    //  for that plus a null.
  +    //
  +    const unsigned int charsNeeded = 
getDomConverter()->calcRequiredSize(srcP);
  +    char* retP = new char[charsNeeded + 1];
  +
  +    if (!getDomConverter()->transcode(srcP, retP, charsNeeded))
  +    {
  +        // <TBD> We should throw something here?
  +    }
  +
  +    // Cap it off and return it
  +    retP[charsNeeded] = 0;
  +    return retP;
  +}
  +
   
  -int DOMString::strcmp(const DOMString &other) const
  +int DOMString::compareString(const DOMString &other) const
   {
       // Note: this strcmp does not match the semantics
       //       of the standard C strcmp.  All it needs to do is
  
  
  
  1.2       +13 -1     xml-xerces/c/src/dom/DOMString.hpp
  
  Index: DOMString.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DOMString.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMString.hpp     1999/11/09 01:08:48     1.1
  +++ DOMString.hpp     1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: DOMString.hpp,v $
  - * Revision 1.1  1999/11/09 01:08:48  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:48  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:12  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -264,6 +269,15 @@
       XMLCh       *rawBuffer() const;
   
       /**
  +      * Returns a copy of the string, transcoded to the local code page. The
  +      * caller is responsible for cleaning up this buffer.
  +      *
  +      * @return A pointer to a newly allocated buffer of char elements, which
  +      *         represents the original string, but in the local encoding.
  +      */
  +    char        *transcode() const;
  +
  +    /**
         * Returns a sub-string of the <code>DOMString</code> starting at a 
specified position.
         *
         * @param offset The offset from the beginning from which the 
sub-string is being requested.
  @@ -321,7 +335,7 @@
         * @param other The object to be compared with
         * @return Either -1, 0, or 1 based on the comparison. 
         */
  -    int         strcmp(const DOMString &other) const;
  +    int         compareString(const DOMString &other) const;
   
       /**
         * Tells if a <code>DOMString</code> contains the same character data
  
  
  
  1.2       +4 -1      xml-xerces/c/src/dom/DOM_DOMImplementation.cpp
  
  Index: DOM_DOMImplementation.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DOM_DOMImplementation.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOM_DOMImplementation.cpp 1999/11/09 01:08:56     1.1
  +++ DOM_DOMImplementation.cpp 1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: DOM_DOMImplementation.cpp,v $
  - * Revision 1.1  1999/11/09 01:08:56  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:56  twl
  + * Initial checkin
  + *
    * Revision 1.3  1999/11/08 20:44:15  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -155,7 +160,7 @@
        const DOMString &internalSubset)
   {
       if (!DocumentImpl::isXMLName(qualifiedName))
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::INVALID_CHARACTER_ERR, null);
       
       return DOM_DocumentType(new DocumentTypeImpl(qualifiedName, publicID, 
systemID, internalSubset));
  
  
  
  1.2       +4 -1      xml-xerces/c/src/dom/DocumentFragmentImpl.cpp
  
  Index: DocumentFragmentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DocumentFragmentImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DocumentFragmentImpl.cpp  1999/11/09 01:08:43     1.1
  +++ DocumentFragmentImpl.cpp  1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: DocumentFragmentImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:08:43  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:43  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:23  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -107,5 +112,5 @@
   
   void DocumentFragmentImpl::setNodeValue(const DOMString &x)
   {
  -        throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +        throw 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
   };
  
  
  
  1.2       +16 -13    xml-xerces/c/src/dom/DocumentImpl.cpp
  
  Index: DocumentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DocumentImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DocumentImpl.cpp  1999/11/09 01:08:43     1.1
  +++ DocumentImpl.cpp  1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: DocumentImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:08:43  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:43  twl
  + * Initial checkin
  + *
    * Revision 1.5  1999/11/08 20:44:24  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -114,7 +119,7 @@
   : NodeImpl(null, namespaceURI, qualifiedName, DOM_Node::DOCUMENT_NODE, 
false, null)
   {
       if (doctype != null && doctype->getOwnerDocument() != null)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
            DOM_DOMException::WRONG_DOCUMENT_ERR, null);
       docType=doctype;
       if (doctype != null)
  @@ -159,7 +164,7 @@
   AttrImpl *DocumentImpl::createAttribute(const DOMString &nam)
   {
       if(!isXMLName(nam))
  -        throw new 
DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
       return new AttrImpl(this,nam);
   };
   
  @@ -188,7 +193,7 @@
   DocumentTypeImpl *DocumentImpl::createDocumentType(const DOMString &nam)
   {
       if (!isXMLName(nam))
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::INVALID_CHARACTER_ERR, null);
   
       return new DocumentTypeImpl(this, nam);
  @@ -199,7 +204,7 @@
   ElementImpl *DocumentImpl::createElement(const DOMString &tagName)
   {
       if(!isXMLName(tagName))
  -        throw new 
DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
       DOMString pooledTagName = this->namePool->getPooledString(tagName);
       return new ElementImpl(this,pooledTagName);
   };
  @@ -217,7 +222,7 @@
   EntityImpl *DocumentImpl::createEntity(const DOMString &nam)
   {
       if (!isXMLName(nam))
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::INVALID_CHARACTER_ERR, null);
   
       return new EntityImpl(this, nam);
  @@ -228,7 +233,7 @@
   EntityReferenceImpl *DocumentImpl::createEntityReference(const DOMString 
&nam)
   {
       if (!isXMLName(nam))
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::INVALID_CHARACTER_ERR, null);
   
       return new EntityReferenceImpl(this, nam);
  @@ -239,7 +244,7 @@
   NotationImpl *DocumentImpl::createNotation(const DOMString &nam)
   {
       if (!isXMLName(nam))
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::INVALID_CHARACTER_ERR, null);
   
       return new NotationImpl(this, nam);
  @@ -251,7 +256,7 @@
                                             const DOMString &target, const 
DOMString &data)
   {
       if(!isXMLName(target))
  -        throw new 
DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
       return new ProcessingInstructionImpl(this,target,data);
   };
   
  @@ -429,7 +434,7 @@
   
       case DOM_Node::DOCUMENT_NODE : // Document can't be child of Document
       default:                                                // Unknown node 
type
  -        throw new 
DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
       }
   
       // If deep, replicate and attach the kids.
  @@ -452,7 +457,7 @@
           ||
           (newChild->isDocumentTypeImpl() && docType!=null)
           )
  -        throw new 
DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
   
       NodeImpl::insertBefore(newChild,refChild);
   
  @@ -518,7 +523,7 @@
   
   void DocumentImpl::setNodeValue(const DOMString &x)
   {
  -    throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +    throw DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, 
null);
   };
   
   
  @@ -547,7 +552,7 @@
       if (namespaceURI == null || namespaceURI.length() == 0)
        return createElement(qualifiedName);
       if(!isXMLName(qualifiedName))
  -        throw new 
DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
       //DOMString pooledTagName = 
this->namePool->getPooledString(qualifiedName);
       return new ElementImpl(this, namespaceURI, qualifiedName);
   }
  @@ -559,7 +564,7 @@
       if (namespaceURI == null || namespaceURI.length() == 0)
        return createAttribute(qualifiedName);
       if(!isXMLName(qualifiedName))
  -        throw new 
DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::INVALID_CHARACTER_ERR,null);
       return new AttrImpl(this, namespaceURI, qualifiedName); 
   }
   
  
  
  
  1.2       +4 -1      xml-xerces/c/src/dom/DocumentTypeImpl.cpp
  
  Index: DocumentTypeImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DocumentTypeImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DocumentTypeImpl.cpp      1999/11/09 01:08:44     1.1
  +++ DocumentTypeImpl.cpp      1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: DocumentTypeImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:08:44  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:08:44  twl
  + * Initial checkin
  + *
    * Revision 1.3  1999/11/08 20:44:24  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -178,7 +183,7 @@
   
   void DocumentTypeImpl::setNodeValue(const DOMString &val)
   {
  -    throw new DOM_DOMException(
  +    throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
   };
   
  
  
  
  1.2       +14 -11    xml-xerces/c/src/dom/ElementImpl.cpp
  
  Index: ElementImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/ElementImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ElementImpl.cpp   1999/11/09 01:09:08     1.1
  +++ ElementImpl.cpp   1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: ElementImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:08  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:08  twl
  + * Initial checkin
  + *
    * Revision 1.3  1999/11/08 20:44:26  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -212,7 +217,7 @@
   void ElementImpl::removeAttribute(const DOMString &nam)
   {
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       AttrImpl *att = (AttrImpl *) attributes->getNamedItem(nam);
  @@ -231,7 +236,7 @@
   AttrImpl *ElementImpl::removeAttributeNode(AttrImpl *oldAttr)
   {
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       AttrImpl *found = (AttrImpl *) 
attributes->getNamedItem(oldAttr->getName());
  @@ -246,7 +251,7 @@
           return found;
       }
       else
  -        throw new DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
  +        throw DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
        return null;    // just to keep the compiler happy
   };
   
  @@ -255,7 +260,7 @@
   void ElementImpl::setAttribute(const DOMString &nam, const DOMString &val)
   {
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       AttrImpl *newAttr = (AttrImpl *) ownerDocument->createAttribute(nam);
  @@ -275,11 +280,11 @@
   AttrImpl * ElementImpl::setAttributeNode(AttrImpl *newAttr)
   {
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       if (!(newAttr->isAttrImpl()))
  -        throw new DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR, 
null);
  +        throw DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR, null);
       AttrImpl *oldAttr = (AttrImpl *) 
attributes->getNamedItem(newAttr->getName());
       if (oldAttr)
        oldAttr->setOwnerElement(null);     //DOM Level 2
  @@ -302,7 +307,7 @@
   
   void ElementImpl::setNodeValue(const DOMString &x)
   {
  -    throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +    throw DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, 
null);
   };
   
   
  @@ -334,7 +339,7 @@
        return;
       }
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
            DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       AttrImpl *newAttr = (AttrImpl *) 
ownerDocument->createAttributeNS(namespaceURI, qualifiedName);
  @@ -358,7 +363,7 @@
        return;
       }
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
            DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       AttrImpl *att = (AttrImpl *) attributes->getNamedItemNS(namespaceURI, 
localName);
  @@ -386,11 +391,11 @@
       if (newAttr && newAttr ->getNamespaceURI() == null)
        return setAttributeNode(newAttr);
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
            DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       if (newAttr -> getOwnerDocument() != this -> getOwnerDocument())
  -        throw new DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR, 
null);
  +        throw DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR, null);
       AttrImpl *oldAttr = (AttrImpl *) attributes->getNamedItemNS(
        newAttr->getNamespaceURI(), newAttr->getLocalName());
       if (oldAttr)
  
  
  
  1.2       +4 -1      xml-xerces/c/src/dom/EntityImpl.cpp
  
  Index: EntityImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/EntityImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EntityImpl.cpp    1999/11/09 01:09:08     1.1
  +++ EntityImpl.cpp    1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: EntityImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:08  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:08  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:26  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -114,7 +119,7 @@
   
   void EntityImpl::setNodeValue(const DOMString &arg)
   {
  -    throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +    throw DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, 
null);
   };
   
   
  
  
  
  1.2       +5 -2      xml-xerces/c/src/dom/EntityReferenceImpl.cpp
  
  Index: EntityReferenceImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/EntityReferenceImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EntityReferenceImpl.cpp   1999/11/09 01:09:09     1.1
  +++ EntityReferenceImpl.cpp   1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: EntityReferenceImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:09  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:09  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:27  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -274,7 +279,7 @@
   */
   void EntityReferenceImpl::setNodeValue(const DOMString &x)
   {
  -    throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +    throw DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, 
null);
   }
   
   
  @@ -289,7 +294,7 @@
   void EntityReferenceImpl::setReadOnly(bool readOnl,bool deep)
   {
       if(readOnl==false)
  -        throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR,null);
  +        throw 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR,null);
       NodeImpl::setReadOnly(readOnl,deep);
   }
   
  
  
  
  1.2       +11 -8     xml-xerces/c/src/dom/NamedNodeMapImpl.cpp
  
  Index: NamedNodeMapImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/NamedNodeMapImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NamedNodeMapImpl.cpp      1999/11/09 01:09:11     1.1
  +++ NamedNodeMapImpl.cpp      1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: NamedNodeMapImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:11  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:11  twl
  + * Initial checkin
  + *
    * Revision 1.3  1999/11/08 20:44:29  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -175,7 +180,7 @@
           while(first<=last)
           {
               i=(first+last)/2;
  -            int test = name.strcmp(nodes->elementAt(i)->getNodeName());
  +            int test = 
name.compareString(nodes->elementAt(i)->getNodeName());
               if(test==0)
                   return i; // Name found
               else if(test<0)
  @@ -259,7 +264,7 @@
           {
               nnode = (AttrImpl *) nodes->elementAt(n);
               dnode = (AttrImpl *) defaults->nodes->elementAt(d);
  -            int test = nnode->getNodeName().strcmp( dnode->getNodeName());
  +            int test = nnode->getNodeName().compareString( 
dnode->getNodeName());
               // nnode->getNodeName()->compareTo(dnode->getNodeName());
               
               // Same name and a default -- make sure same value
  @@ -313,7 +318,7 @@
   {
       int i=findNamePoint(name);
       if(i<0)
  -        throw new DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
  +        throw DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
       else
       {
           NodeImpl * n = (NodeImpl *) (nodes->elementAt(i));
  @@ -354,7 +359,7 @@
         return n;
         }
         }
  -      throw new DOMExceptionImpl(DOMException.NOT_FOUND_ERR, null);
  +      throw DOMExceptionImpl(DOMException.NOT_FOUND_ERR, null);
       **************/ 
        return null;    // just to keep the compiler happy
   };
  @@ -379,10 +384,10 @@
   NodeImpl * NamedNodeMapImpl::setNamedItem(NodeImpl * arg)
   {
       if(arg->getOwnerDocument()!=ownerDoc)
  -        throw new 
DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR,null);
       
       if (arg->owned)
  -        throw new 
DOM_DOMException(DOM_DOMException::INUSE_ATTRIBUTE_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::INUSE_ATTRIBUTE_ERR,null);
       
       arg->owned = true;
       int i=findNamePoint(arg->getNodeName());
  @@ -494,13 +499,13 @@
        const DOMString &name)
   {
       if (readOnly)
  -     throw new DOM_DOMException(
  +     throw DOM_DOMException(
            DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       if (namespaceURI == null || namespaceURI.length() == 0)
        return removeNamedItem(name);
       int i = findNamePoint(namespaceURI, name);
       if (i < 0)
  -     throw new DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
  +     throw DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
       NodeImpl * n = nodes -> elementAt(i);   //node to be removed or replaced
       //find if n has a default value defined in DTD, if so replace n in nodes
       //by its corresponding default value node, otherwise remove n from nodes
  
  
  
  1.2       +14 -11    xml-xerces/c/src/dom/NodeImpl.cpp
  
  Index: NodeImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/NodeImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NodeImpl.cpp      1999/11/09 01:09:13     1.1
  +++ NodeImpl.cpp      1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: NodeImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:13  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:13  twl
  + * Initial checkin
  + *
    * Revision 1.3  1999/11/08 20:44:29  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -346,7 +351,7 @@
   
   NodeImpl *NodeImpl::insertBefore(NodeImpl *newChild, NodeImpl *refChild) {
       if (readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       
       if(  !(newChild->getOwnerDocument() == ownerDocument   ||
  @@ -354,7 +359,7 @@
           ( this->isDocumentImpl() &&
           newChild->getOwnerDocument() == (DocumentImpl *)this ) 
           ) )
  -        throw new DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR, 
null);
  +        throw DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR, null);
       
       // Convert to internal type, to avoid repeated casting  
       //   (left over from the original Java.  Meaningless in this version.)
  @@ -365,11 +370,11 @@
       for(NodeImpl *a=this->parentNode;treeSafe && a!=null;a=a->parentNode)
           treeSafe=(newInternal!=a);
       if(!treeSafe)
  -        throw new 
DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
       
       // refChild must in fact be a child of this node (or null)
       if(refChild!=null && refChild->parentNode != this)
  -        throw new DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR,null);
       
       if (newInternal->isDocumentFragmentImpl())
       {
  @@ -395,14 +400,14 @@
           kid=kid->getNextSibling())
           {
               if(!isKidOK(this,kid))
  -                throw new 
DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
  +                throw 
DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
           }                       
           while(newInternal->hasChildNodes())     // Move
               insertBefore(newInternal->getFirstChild(),refChild);
       }
       
       else if(!isKidOK(this, newInternal))
  -        throw new 
DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
  +        throw DOM_DOMException(DOM_DOMException::HIERARCHY_REQUEST_ERR,null);
       
       else
       {
  @@ -509,11 +514,11 @@
     NodeImpl *NodeImpl::removeChild(NodeImpl *oldChild) 
     {
         if (readOnly)
  -          throw new DOM_DOMException(
  +          throw DOM_DOMException(
             DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
         
         if (oldChild != null && oldChild->parentNode != this)
  -          throw new DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
  +          throw DOM_DOMException(DOM_DOMException::NOT_FOUND_ERR, null);
         
         // Patch tree past oldChild
         NodeImpl *prev = oldChild->previousSibling;
  @@ -565,7 +570,7 @@
     this instanceof Document && 
     newChild.getOwnerDocument() != (Document) this)
     {
  -  throw new DOMExceptionImpl(DOMException.WRONG_DOCUMENT_ERR, null);
  +  throw DOMExceptionImpl(DOMException.WRONG_DOCUMENT_ERR, null);
     }
         *********************************************************************/
         insertBefore(newChild, oldChild);
  @@ -579,7 +584,7 @@
     void NodeImpl::setNodeValue(const DOMString &val)
     {
         if (readOnly)
  -          throw new DOM_DOMException(
  +          throw DOM_DOMException(
             DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
         
         // Default behavior, overridden in some subclasses
  @@ -642,7 +647,7 @@
   void NodeImpl::setPrefix(const DOMString &prefix)
   {
       if (readOnly)
  -     throw new DOM_DOMException(
  +     throw DOM_DOMException(
            DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
       if (isAttrImpl() || isElementImpl()) {
        name = this -> prefix = prefix;
  
  
  
  1.4       +9 -6      xml-xerces/c/src/dom/NodeIteratorImpl.cpp
  
  Index: NodeIteratorImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/NodeIteratorImpl.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NodeIteratorImpl.cpp      1999/11/23 01:48:16     1.3
  +++ NodeIteratorImpl.cpp      1999/11/30 21:16:25     1.4
  @@ -56,6 +56,11 @@
   
   /**
    * $Log: NodeIteratorImpl.cpp,v $
  + * Revision 1.4  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
  + *
    * Revision 1.3  1999/11/23 01:48:16  rahulj
    * Changed 0L to 0. CC under HPUX is happy now.
    *
  @@ -165,7 +170,7 @@
   
   DOM_Node NodeIteratorImpl::nextNode () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
        DOM_Node result;
   
  @@ -214,7 +219,7 @@
   
   DOM_Node NodeIteratorImpl::previousNode () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
                
        DOM_Node result;
   
  @@ -259,7 +264,7 @@
   /** The node is accepted if it passes the whatToShow and the filter. */
   bool NodeIteratorImpl::acceptNode (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       if (fNodeFilter == 0) {
           return ((fWhatToShow & ((1 << node.getNodeType()) - 1)) != 0);
  @@ -291,7 +296,7 @@
   
   DOM_Node NodeIteratorImpl::nextNode (DOM_Node node, bool visitChildren) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       if (node.isNull()) return fRoot;
   
  @@ -334,7 +339,7 @@
   
   DOM_Node NodeIteratorImpl::previousNode (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       DOM_Node result;
   
  @@ -367,7 +372,7 @@
   
   void NodeIteratorImpl::removeNode (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       // Implementation note: Fix-up means setting the current node properly
       // after a remove.
  
  
  
  1.2       +6 -3      xml-xerces/c/src/dom/NotationImpl.cpp
  
  Index: NotationImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/NotationImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NotationImpl.cpp  1999/11/09 01:09:17     1.1
  +++ NotationImpl.cpp  1999/11/30 21:16:25     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: NotationImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:17  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:25  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:17  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:31  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -128,14 +133,14 @@
   
   void NotationImpl::setNodeValue(const DOMString &arg)
   {
  -    throw new 
DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  +    throw DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, 
null);
   };
   
   
   void NotationImpl::setPublicId(const DOMString &arg)
   {
       if(readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR,null);
       
       publicId = arg.clone();
  @@ -145,7 +150,7 @@
   void NotationImpl::setSystemId(const DOMString &arg)
   {
       if(readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR,null);
       
       systemId = arg.clone();
  
  
  
  1.2       +4 -1      xml-xerces/c/src/dom/ProcessingInstructionImpl.cpp
  
  Index: ProcessingInstructionImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/ProcessingInstructionImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ProcessingInstructionImpl.cpp     1999/11/09 01:09:18     1.1
  +++ ProcessingInstructionImpl.cpp     1999/11/30 21:16:26     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: ProcessingInstructionImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:18  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:26  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:18  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:32  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -126,7 +131,7 @@
   void ProcessingInstructionImpl::setData(const DOMString &arg)
   {
       if(readOnly)
  -        throw new DOM_DOMException(
  +        throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR,null);
       
       value = arg;
  
  
  
  1.2       +5 -2      xml-xerces/c/src/dom/TextImpl.cpp
  
  Index: TextImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/TextImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TextImpl.cpp      1999/11/09 01:09:19     1.1
  +++ TextImpl.cpp      1999/11/30 21:16:26     1.2
  @@ -56,9 +56,14 @@
   
   /**
    * $Log: TextImpl.cpp,v $
  - * Revision 1.1  1999/11/09 01:09:19  twl
  - * Initial revision
  + * Revision 1.2  1999/11/30 21:16:26  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
    *
  + * Revision 1.1.1.1  1999/11/09 01:09:19  twl
  + * Initial checkin
  + *
    * Revision 1.2  1999/11/08 20:44:33  rahul
    * Swat for adding in Product name and CVS comment log variable.
    *
  @@ -105,10 +110,10 @@
   TextImpl *TextImpl::splitText(int offset)
   {
           if (readOnly)
  -                throw new DOM_DOMException(
  +                throw DOM_DOMException(
           DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
           if (offset < 0 || offset > value.length() - 1)
  -        throw new DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
  +        throw DOM_DOMException(DOM_DOMException::INDEX_SIZE_ERR, null);
                   
           TextImpl *newText = 
                   (TextImpl *) ownerDocument->createTextNode(
  
  
  
  1.3       +18 -15    xml-xerces/c/src/dom/TreeWalkerImpl.cpp
  
  Index: TreeWalkerImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/TreeWalkerImpl.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TreeWalkerImpl.cpp        1999/11/23 01:48:17     1.2
  +++ TreeWalkerImpl.cpp        1999/11/30 21:16:26     1.3
  @@ -56,6 +56,11 @@
   
   /**
    * $Log: TreeWalkerImpl.cpp,v $
  + * Revision 1.3  1999/11/30 21:16:26  roddey
  + * Changes to add the transcode() method to DOMString, which returns a 
transcoded
  + * version (to local code page) of the DOM string contents. And I changed 
all of the
  + * exception 'throw by pointer' to 'throw by value' style.
  + *
    * Revision 1.2  1999/11/23 01:48:17  rahulj
    * Changed 0L to 0. CC under HPUX is happy now.
    *
  @@ -159,7 +164,7 @@
   /** Return the current Node. */
   DOM_Node TreeWalkerImpl::getCurrentNode () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       return fCurrentNode;
   }
  @@ -168,7 +173,7 @@
   /** Return the current Node. */
   void TreeWalkerImpl::setCurrentNode (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       fCurrentNode = node;
   }
  @@ -180,7 +185,7 @@
    */
   DOM_Node TreeWalkerImpl::parentNode () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
        DOM_Node result;
   
  @@ -201,7 +206,7 @@
    */
   DOM_Node TreeWalkerImpl::firstChild () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
        DOM_Node result;
   
  @@ -221,7 +226,7 @@
    */
   DOM_Node TreeWalkerImpl::lastChild () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
                
        DOM_Node result;
   
  @@ -242,7 +247,7 @@
   
   DOM_Node TreeWalkerImpl::previousSibling () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
        
        DOM_Node result;
   
  @@ -263,7 +268,7 @@
   
   DOM_Node TreeWalkerImpl::nextSibling () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
                
        DOM_Node result;
   
  @@ -284,7 +289,7 @@
   
   DOM_Node TreeWalkerImpl::previousNode () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       DOM_Node result;
   
  @@ -328,7 +333,7 @@
   
   DOM_Node TreeWalkerImpl::nextNode () {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
        
        DOM_Node result;
   
  @@ -373,7 +378,7 @@
   
   DOM_Node TreeWalkerImpl::getParentNode (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
        
        DOM_Node result;
   
  @@ -403,7 +408,7 @@
   
   DOM_Node TreeWalkerImpl::getNextSibling (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
        
        DOM_Node result;
   
  @@ -453,7 +458,7 @@
   
   DOM_Node TreeWalkerImpl::getPreviousSibling (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
                
        DOM_Node result;
   
  @@ -502,7 +507,7 @@
   
   DOM_Node TreeWalkerImpl::getFirstChild (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
                
        DOM_Node result;
   
  @@ -536,7 +541,7 @@
   
   DOM_Node TreeWalkerImpl::getLastChild (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
        DOM_Node result;
   
  @@ -568,7 +573,7 @@
   
   short TreeWalkerImpl::acceptNode (DOM_Node node) {
        if (fDetached)
  -             throw new DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
  +             throw DOM_DOMException(DOM_DOMException::INVALID_STATE_ERR, 
null);
   
       if (fNodeFilter == 0) {
           if ( ( fWhatToShow & (1 << (node.getNodeType() - 1))) != 0)
  
  
  

Reply via email to