[jdom-interest] Bypassing Fetching DTD on JDom
Maaziar Sadr
jteam at knowledgeview.co.uk
Sun Oct 1 06:05:56 PDT 2000
Thank you for responding me Philip.
You know there is a folder that I have to listen to and fetching all the XML
that which will be arrived on it
that come at any time and any frequency, then I have to extract the content
of them and load all data to database.
Changing system id is very time consuming operation as long as I have to to do
it for all of the incoming xml file.
Thank you very much
Maaziar
philip.nelson at omniresources.com wrote:
> > Sorry I tought that SAX in Jdom is just like jaxpi and is event based.
> > Anyhow I used SAXBuilder instead of DOMBuilder but my problem
> > is still exists
> > and
> > SAXBuilder spend a ling time to fetching DTD like DOMBuilder.
> >
>
> I should have given this a little more thought. Yes it is the underlying
> parser that is fetching the systemid. No, the validate setting probably
> doesn't matter because dtd's could have entity declarations which are used
> regardless of whether the document is validated. I didn't take the time to
> see if there was any other feature of the underlying parser to help with
> this but I doubt it because it wouldn't make sense for it attempt to do
> that. If the dtd had an entity declared and the document used the entity,
> NOT processing the systemid would make the document parse fail.
>
> Perhaps someone else can speak to this but I think you are going to have to
> either change the system id to a file url when you are offline or not use
> the document while offline.
More information about the jdom-interest
mailing list