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/05/21 21:34:24 UTC

cvs commit: xml-xerces/c/src/xercesc/validators/schema XSDDOMParser.cpp XSDDOMParser.hpp

tng         02/05/21 12:34:24

  Modified:    c/src/xercesc/validators/schema XSDDOMParser.cpp
                        XSDDOMParser.hpp
  Log:
  DOM Reorganization: modify to use the new DOM interface.
  
  Revision  Changes    Path
  1.2       +9 -9      xml-xerces/c/src/xercesc/validators/schema/XSDDOMParser.cpp
  
  Index: XSDDOMParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/XSDDOMParser.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSDDOMParser.cpp	21 May 2002 19:33:44 -0000	1.1
  +++ XSDDOMParser.cpp	21 May 2002 19:34:24 -0000	1.2
  @@ -55,7 +55,7 @@
    */
   
   /**
  -  * $Id: XSDDOMParser.cpp,v 1.1 2002/05/21 19:33:44 tng Exp $
  +  * $Id: XSDDOMParser.cpp,v 1.2 2002/05/21 19:34:24 tng Exp $
     */
   
   
  @@ -63,30 +63,30 @@
   // ---------------------------------------------------------------------------
   //  Includes
   // ---------------------------------------------------------------------------
  -#include <xercesc/validators/schema/XSDIDOMParser.hpp>
  -#include <xercesc/idom/IDDocumentImpl.hpp>
  +#include <xercesc/validators/schema/XSDDOMParser.hpp>
  +#include <xercesc/dom/DOMDocument.hpp>
   #include <xercesc/internal/XMLScanner.hpp>
   
   
   // ---------------------------------------------------------------------------
  -//  XSDIDOMParser: Constructors and Destructor
  +//  XSDDOMParser: Constructors and Destructor
   // ---------------------------------------------------------------------------
  -XSDIDOMParser::XSDIDOMParser(XMLValidator* const valToAdopt) :
  -    IDOMParser(valToAdopt)
  +XSDDOMParser::XSDDOMParser(XMLValidator* const valToAdopt) :
  +    XercesDOMParser(valToAdopt)
   {
   
   }
   
   
  -XSDIDOMParser::~XSDIDOMParser()
  +XSDDOMParser::~XSDDOMParser()
   {
   }
   
   
   // ---------------------------------------------------------------------------
  -//  XSDIDOMParser: Helper methods
  +//  XSDDOMParser: Helper methods
   // ---------------------------------------------------------------------------
  -IDOM_Element* XSDIDOMParser::createElementNSNode(const XMLCh *namespaceURI,
  +DOMElement* XSDDOMParser::createElementNSNode(const XMLCh *namespaceURI,
   	                                             const XMLCh *qualifiedName)
   {
       ReaderMgr::LastExtEntityInfo lastInfo;
  
  
  
  1.2       +11 -11    xml-xerces/c/src/xercesc/validators/schema/XSDDOMParser.hpp
  
  Index: XSDDOMParser.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/XSDDOMParser.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSDDOMParser.hpp	21 May 2002 19:33:44 -0000	1.1
  +++ XSDDOMParser.hpp	21 May 2002 19:34:24 -0000	1.2
  @@ -55,25 +55,25 @@
    */
   
   /*
  - * $Id: XSDDOMParser.hpp,v 1.1 2002/05/21 19:33:44 tng Exp $
  + * $Id: XSDDOMParser.hpp,v 1.2 2002/05/21 19:34:24 tng Exp $
    *
    */
   
  -#if !defined(XSDIDOMPARSER_HPP)
  -#define XSDIDOMPARSER_HPP
  +#if !defined(XSDDOMPARSER_HPP)
  +#define XSDDOMPARSER_HPP
   
   
  -#include <xercesc/parsers/IDOMParser.hpp>
  +#include <xercesc/parsers/XercesDOMParser.hpp>
   
   
  -class IDOM_Element;
  +class DOMElement;
   class XMLValidator;
   
   
   /**
  -  * This class is used to parse schema documents into IDOM trees
  +  * This class is used to parse schema documents into DOM trees
     */
  -class PARSERS_EXPORT XSDIDOMParser : public IDOMParser
  +class PARSERS_EXPORT XSDDOMParser : public XercesDOMParser
   {
   public :
   
  @@ -83,7 +83,7 @@
   
       /** @name Constructors and Destructor */
       //@{
  -    /** Construct a XSDIDOMParser, with an optional validator
  +    /** Construct a XSDDOMParser, with an optional validator
         *
         * Constructor with an instance of validator class to use for
         * validation. If you don't provide a validator, a default one will
  @@ -92,12 +92,12 @@
         * @param valToAdopt Pointer to the validator instance to use. The
         *                   parser is responsible for freeing the memory.
         */
  -    XSDIDOMParser(XMLValidator* const valToAdopt = 0);
  +    XSDDOMParser(XMLValidator* const valToAdopt = 0);
   
       /**
         * Destructor
         */
  -    ~XSDIDOMParser();
  +    ~XSDDOMParser();
   
       //@}
   
  @@ -105,7 +105,7 @@
       // -----------------------------------------------------------------------
       //  Protected Helper methods
       // -----------------------------------------------------------------------
  -    virtual IDOM_Element* createElementNSNode(const XMLCh *fNamespaceURI,
  +    virtual DOMElement* createElementNSNode(const XMLCh *fNamespaceURI,
                                                 const XMLCh *qualifiedName);
   };
   
  
  
  

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