Tim,
The apiDocs need to be updated. The default for schema processing in DOMParser
and SAXParser are false, in SAX2XMLReader is true.
For accurate detail, please see the usage section in
http://xml.apache.org/xerces-c/schema.html.
Thanks!
Tinny
"Dodd, Tim (ISS Atlanta)" wrote:
> Well, here's one thing that needs fixing. The documentation
> (xerces-c-src1_5_0/doc/html/apiDocs/class_DOMParser.html#a29) says that the
> default value of DOMParser's 'do schema' flag is true. But a call to
> getDoSchema() reveals that the real default value is false. So I wasn't
> performing validation, but I thought I was.
>
> tim
>
> > -----Original Message-----
> > From: Dodd, Tim (ISS Atlanta)
> > Sent: Friday, July 13, 2001 3:42 PM
> > To: '[EMAIL PROTECTED]'
> > Cc: Di Iorio, Matthew (ISS Atlanta)
> > Subject: ignorable whitespace being added as text nodes
> > in Xerces/C 1.5.0
> >
> > I am parsing a document with element-only content using
> > Xerces/C 1.5.0. I'm using DOMParser's
> > setIncludeIgnorableWhitespace() method to set the "include
> > ignorable whitespace" flag to false, but the parser is still
> > adding text nodes to the tree for ignorable whitespace (in
> > this case, for the whitespace indentation at the front of
> > lines). I've enabled validation by calling
> > setDoValidation(true), have the validation scheme set to
> > Val_Auto, and am using schemaLocation in my document to
> > specify my namespaces & associated schemas. Is there
> > something more I need to do?
> >
> > Thanks,
> > Tim Dodd
> > Internet Security Systems
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]