[jdom-interest] unsubscribe

Curley, Thomas thomas.curley at euroconex.com
Mon Aug 26 00:21:51 PDT 2002

-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
Sent: 26 August 2002 07:08
To: jdom-interest at jdom.org
Subject: jdom-interest digest, Vol 1 #1023 - 2 msgs

Send jdom-interest mailing list submissions to
	jdom-interest at jdom.org

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
	jdom-interest-request at jdom.org

You can reach the person managing the list at
	jdom-interest-admin at jdom.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of jdom-interest digest..."

Today's Topics:

   1. SAXHandler's private Document member (Paul Chapman)
   2. How to turn of DTD validation when using SAXBuilder? (Zhou Ping)


Message: 1
Date: Mon, 26 Aug 2002 10:26:17 +1000
From: Paul Chapman <chapman at zemsys.com>
Reply-To: chapman at zemsys.com
Organization: Zemsys
To: jdom-interest at jdom.org
Subject: [jdom-interest] SAXHandler's private Document member

I notice that in jdom-b8 you have made a lot of the internal data
of SAXHandler protected so that the class can be inherited from.

One exception is the Document data-member. Is there a good reason
for this, or just an oversight? I would like to request that it
too is available to subclasses as a protected member.

I have been using JDOM to merge multiple XML files into a single
Document. This means I am using the same SAXHandler (actually an
instance of my own class derived from SAXHandler) multiple times
to read different inputs. However, if I want to perform a second
merge, I must either:

   1. create a new handler to get a new document or
   2. create a new Document and then move across the root-elment
      from the one inside the handler (which is both ugly and

Could I request a new constructor and method:
    public SAXHandler( JDOMFactory f, Document d )
    public void setDocument( Document d )

If you prefer, just making document protected would be sufficient.

Regards, Paul.


Paul Chapman

Email:  chapman at zemsys.com
Mobile: +61 418 340 935


Message: 2
Date: Sun, 25 Aug 2002 22:51:27 -0700 (PDT)
From: Zhou Ping <zhouping_jay at yahoo.com.cn>
To: jdom-interest at jdom.org
Subject: [jdom-interest] How to turn of DTD validation when using SAXBuilder?

I'm using SAXBuilder to parse an existing XML

SAXBuilder b = new SAXBuilder();
Document doc = b.build(in);

I've already turned off the validation, but the parser
still tried to find the DTD file declared in the XML
and throwed exceptions when not found. I'd like to
completely turn off this validation, does anyone know
how to do it? Thank you for any help.

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


To control your jdom-interest membership:

End of jdom-interest Digest

More information about the jdom-interest mailing list