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 2001/06/08 23:26:05 UTC

cvs commit: xml-xerces/c/src/parsers IDOMParser.cpp IDOMParser.hpp

tng         01/06/08 14:26:05

  Modified:    c/src/parsers IDOMParser.cpp IDOMParser.hpp
  Log:
  IDOM: Remove the non-standard extension where XML Decl as a node
  
  Revision  Changes    Path
  1.5       +2 -12     xml-xerces/c/src/parsers/IDOMParser.cpp
  
  Index: IDOMParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/IDOMParser.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- IDOMParser.cpp	2001/06/03 19:26:18	1.4
  +++ IDOMParser.cpp	2001/06/08 21:26:05	1.5
  @@ -59,7 +59,7 @@
   *  handler with the scanner. In these handler methods, appropriate IDOM nodes
   *  are created and added to the DOM tree.
   *
  -* $Id: IDOMParser.cpp,v 1.4 2001/06/03 19:26:18 jberry Exp $
  +* $Id: IDOMParser.cpp,v 1.5 2001/06/08 21:26:05 tng Exp $
   *
   */
   
  @@ -92,7 +92,6 @@
   #include <idom/IDNotationImpl.hpp>
   #include <idom/IDOM_NamedNodeMap.hpp>
   #include <idom/IDOM_ProcessingInstruction.hpp>
  -#include <idom/IDOM_XMLDecl.hpp>
   #include <idom/IDNodeIDMap.hpp>
   
   
  @@ -107,7 +106,6 @@
   fErrorHandler(0)
   , fEntityResolver(0)
   , fCreateEntityReferenceNodes(false)
  -, fToCreateXMLDeclTypeNode(false)
   , fIncludeIgnorableWhitespace(true)
   , fNodeStack(0)
   , fScanner(0)
  @@ -750,15 +748,7 @@
                           , const XMLCh* const standalone
                           , const XMLCh* const actualEncStr)
   {
  -    //This is a non-standard extension to creating XMLDecl type nodes and attching to IDOM Tree
  -    // currently this flag it set to false unless user explicitly asks for it
  -    // Needs to be revisited after W3C specs are laid out on this issue.
  -
  -    if (fToCreateXMLDeclTypeNode) {
  -
  -        IDOM_XMLDecl *xmlDecl = fDocument->createXMLDecl(version, encoding, standalone);
  -        fCurrentParent->appendChild(xmlDecl);
  -    }
  +    // placehold for DOM Level 3
   }
   
   
  
  
  
  1.3       +1 -40     xml-xerces/c/src/parsers/IDOMParser.hpp
  
  Index: IDOMParser.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/IDOMParser.hpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IDOMParser.hpp	2001/06/03 19:26:19	1.2
  +++ IDOMParser.hpp	2001/06/08 21:26:05	1.3
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDOMParser.hpp,v 1.2 2001/06/03 19:26:19 jberry Exp $
  + * $Id: IDOMParser.hpp,v 1.3 2001/06/08 21:26:05 tng Exp $
    *
    */
   
  @@ -331,18 +331,6 @@
         */
       bool getIncludeIgnorableWhitespace() const;
   
  -    /** Get the 'to create MXLDecl node' flag.
  -      *
  -      * This method returns the state of the parser's to create XMLDecl
  -      * IDOM Node flag.
  -      *
  -      * @return 'true' if the toCreateXMLDeclTypeNode flag is set on
  -      *         the parser, 'false' otherwise.
  -      *
  -      */
  -    bool getToCreateXMLDeclTypeNode() const;
  -
  -
       //@}
   
   
  @@ -530,18 +518,6 @@
         */
       void setDoSchema(const bool newState);
   
  -    /**
  -      * This method allows users to set the toCreateXMLDeclTypeNode flag
  -      * by this parser. By setting it to 'true' user can have XMLDecl type
  -      * nodes attached to the DOM tree.
  -      *
  -      * <p>The parser's default state is: false </p>
  -      *
  -      * @param newState The new to create XMLDecl type node flag
  -      *
  -      */
  -    void setToCreateXMLDeclTypeNode(const bool create);
  -
       //@}
   
   
  @@ -1323,10 +1299,6 @@
       //      Used to store and update the documentType variable information
       //      in fDocument
       //
  -    //  fToCreateXMLDecTypeNode
  -    //      A flag to create a IDOM_XMLDecl node in the ODM tree if it exists
  -    //      This is an extension to xerces implementation
  -    //
       // -----------------------------------------------------------------------
       IDOM_Node*               fCurrentParent;
       IDOM_Node*               fCurrentNode;
  @@ -1340,7 +1312,6 @@
       XMLScanner*              fScanner;
       bool                     fWithinElement;
       IDDocumentTypeImpl*      fDocumentType;
  -    bool                     fToCreateXMLDeclTypeNode;
   };
   
   
  @@ -1412,11 +1383,6 @@
       return *fScanner;
   }
   
  -inline bool IDOMParser::getToCreateXMLDeclTypeNode() const
  -{
  -    return fToCreateXMLDeclTypeNode;
  -}
  -
   
   // ---------------------------------------------------------------------------
   //  IDOMParser: Setter methods
  @@ -1434,11 +1400,6 @@
   inline void IDOMParser::setIncludeIgnorableWhitespace(const bool include)
   {
       fIncludeIgnorableWhitespace = include;
  -}
  -
  -inline void IDOMParser::setToCreateXMLDeclTypeNode(const bool create)
  -{
  -    fToCreateXMLDeclTypeNode = create;
   }
   
   
  
  
  

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