You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Peter Fein <fe...@exceloncorp.com> on 2001/06/27 16:10:44 UTC

SAX parser defaults to use namespaces in 1.5

I know this was reported the other week but I can't find it in bugzilla.
Can someone please post or mail me the diffs?

Thanks,
Peter Fein
fein@exceloncorp.com



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


Re: SAX parser defaults to use namespaces in 1.5

Posted by Tinny Ng <tn...@ca.ibm.com>.
This is fixed in latest nightly build.  But anyway here is the diff:

tng         01/06/19 12:58:42

  Modified:    c/src/internal XMLScanner.cpp
  Log:
  Namespace should be off by default in XMLScanner.

  Revision  Changes    Path
  1.47      +2 -7      xml-xerces/c/src/internal/XMLScanner.cpp

  Index: XMLScanner.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/internal/XMLScanner.cpp,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- XMLScanner.cpp    2001/06/13 14:52:34     1.46
  +++ XMLScanner.cpp    2001/06/19 19:58:36     1.47
  @@ -55,7 +55,7 @@
    */

   /*
  - * $Id: XMLScanner.cpp,v 1.46 2001/06/13 14:52:34 peiyongz Exp $
  + * $Id: XMLScanner.cpp,v 1.47 2001/06/19 19:58:36 tng Exp $
    */


  @@ -898,11 +898,6 @@
       theValidator->setScannerInfo(this, &fReaderMgr, &fBufMgr);
       theValidator->setErrorReporter(fErrorReporter);

  -    //  So lets ask the validator whether it requires namespaces or not.
If it
  -    //  does, we have to override the namespace enablement flag.
  -    if (theValidator->requiresNamespaces() && !fDoNamespaces)
  -        setDoNamespaces(true);
  -
       if (theValidator->handlesSchema())
           ((SchemaValidator*)
theValidator)->setGrammarResolver(fGrammarResolver);
   }


Tinny

Peter Fein wrote:

> I know this was reported the other week but I can't find it in bugzilla.
> Can someone please post or mail me the diffs?
>
> Thanks,
> Peter Fein
> fein@exceloncorp.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


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