OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: DocumentHandler with xml4j DOMParser

[ Lists Home | Date Index | Thread Index ]
  • From: Ed Howland <Ed@dega.com>
  • To: xml-dev@ic.ac.uk
  • Date: Wed, 10 Mar 1999 14:41:01 -0800


<You_Said>
Hi all,
I am using IBM's xmlj2.0.3 XML parsers. I am having the following   
problem:
When i set my own document handler with a DOMParser, the handler is never   
invoked upon. However when i use the SAXParser it does. Why does the   
DOMParser not invoke the DocumentHandler yet hte SAXParser does?
The docs does not throw any light on the problem.
Is there a fundamental problem with using a DocumentHandler with a   
DOMParser?

 One2One              LUCIO.PICCOLI@one2one.co.uk
</You_Said>

I don't know about the version of your XML4J, but in mine (1.1.9), the
documentation states that DocumentHandler is to be used with the SAX Parser
to eb informed of parsing events. This is logical, since the main difference
is that DOM parsers parse the whole document into a resulting DOM tree, and
SAX parsers are used for event based processing. 

There doesn't appear to be any way to create a DocumentHandler on class
com.ibm.xml.parser.Parser, but you can from org.xml.sax.DocumentHandler. Did
they change this in your newer version?

Ed


Ed Howland
ed@dega.com
http://www.dega.com 
"As your attorney, I advise you to take some adrenalchrome"

-----Original Message-----
From: LUCIO PICOLLI [mailto:lucio.piccoli@one2one.co.uk]
Sent: Wednesday, March 10, 1999 11:12 AM
To: xml-dev@ic.ac.uk
Subject: DocumentHandler with xml4j DOMParser


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS