You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2002/03/21 16:35:54 UTC

cvs commit: xml-xerces/c/src/xercesc/internal XMLScanner2.cpp

knoaman     02/03/21 07:35:54

  Modified:    c/src/xercesc/internal XMLScanner2.cpp
  Log:
  Add support for reporting line/column numbers of schema errors.
  
  Revision  Changes    Path
  1.4       +3 -3      xml-xerces/c/src/xercesc/internal/XMLScanner2.cpp
  
  Index: XMLScanner2.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XMLScanner2.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XMLScanner2.cpp	27 Feb 2002 18:03:41 -0000	1.3
  +++ XMLScanner2.cpp	21 Mar 2002 15:35:54 -0000	1.4
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: XMLScanner2.cpp,v 1.3 2002/02/27 18:03:41 tng Exp $
  + * $Id: XMLScanner2.cpp,v 1.4 2002/03/21 15:35:54 knoaman Exp $
    */
   
   
  @@ -88,7 +88,6 @@
   #include <xercesc/internal/XMLScanner.hpp>
   #include <xercesc/internal/EndOfEntityException.hpp>
   #include <xercesc/internal/XMLInternalErrorHandler.hpp>
  -#include <xercesc/parsers/IDOMParser.hpp>
   #include <xercesc/dom/DOM_DOMException.hpp>
   #include <xercesc/sax/EntityResolver.hpp>
   #include <xercesc/validators/common/ContentLeafNameTypeVector.hpp>
  @@ -98,6 +97,7 @@
   #include <xercesc/validators/schema/TraverseSchema.hpp>
   #include <xercesc/validators/schema/SubstitutionGroupComparator.hpp>
   #include <xercesc/validators/schema/identity/XPathMatcherStack.hpp>
  +#include <xercesc/validators/schema/XSDIDOMParser.hpp>
   
   
   // ---------------------------------------------------------------------------
  @@ -1454,7 +1454,7 @@
       Grammar* grammar = fGrammarResolver->getGrammar(uri);
   
       if (!grammar || grammar->getGrammarType() == Grammar::DTDGrammarType) {
  -        IDOMParser parser;
  +        XSDIDOMParser parser;
           XMLInternalErrorHandler internalErrorHandler(fErrorHandler);
           parser.setValidationScheme(IDOMParser::Val_Never);
           parser.setDoNamespaces(true);
  
  
  

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