[jdom-interest] getText() and getAttributeValue()

Alex Rosen arosen at silverstream.com
Fri Feb 15 10:14:12 PST 2002

IIRC, even if you turn off validation, the DTD is still read and the default
values are still added to the SAX stream.


> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Jon Baer
> Sent: Thursday, February 14, 2002 4:34 PM
> To: jdom-interest at jdom.org
> Subject: Re: [jdom-interest] getText() and getAttributeValue()
> This might sound like a dumb question, but what would occur
> with XML that doesn't
> validate it's DTD in which case default attribute values are
> omitted.  In the case of
> pulling say a <foo/> where attribute bar="1" by default
> according to the DTD/XSD
> (like the case of the XHTML example from before), in which case
> getAttributeValue("bar") would yield null vs. "1".
> - Jon

More information about the jdom-interest mailing list