xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Delacroix" <edelax_...@hotmail.com>
Subject Re: about SAX and DOM parsers
Date Thu, 24 Apr 2003 08:59:02 GMT
Thank you Vincent,

indeed, by looking at the loadDocument method from DocumentLoader, I saw the 
getXMLParserClassName(), but then I'm wondering where the bridge context is 
Actually, I try to fully explain the process for loading a Document, and the 
thing I'd l'ike to know is when the BridgeContext is initiated. My 
application is an applet, displaying some svg graphics, and I use the 
loadSVGDocument() method from JSVGCanvas as almost the first instruction.
Thanks again

Eric Delacroix
Faculté des Sciences appliquées
ULB Brussels

P.S. : could somebody tell me also how to write back an SVG file from a 
Document that has been modified (just add some rectangles as last childs) in 
order to attach it to a mail?

>From: Vincent Hardy <vincent.hardy@sun.com>
>Reply-To: "Batik Users" <batik-users@xml.apache.org>
>To: Batik Users <batik-users@xml.apache.org>
>Subject: Re: about SAX and DOM parsers
>Date: Wed, 23 Apr 2003 15:46:36 +0200
>Hello Eric,
>Batik uses the org.apache.batik.util.XMLResourceDescriptor class to define 
>which SAX Parser to use (Crimson or Xerces or any other implementation). 
>Then, we build a DOM tree using our own DOM implementation which is needed 
>to support the SVG DOM features. The DOM tree is then bound to a GVT tree 
>(org.apache.batik.gvt) thanks to the bridge module 
>You can refer to the web site documentation:
>Eric Delacroix wrote:
>>I tried to understand why there is SAX and DOM functions implemented in 
>>batik, and in which cases they were used.
>>So is SAX used only to build the GVT tree? and then, we have a mirror of 
>>the DOM in Java objects, so the methods used are the DOM ones?
>>And in consequence, which parser is used in which case between crimson and 
>>xerces? And eventually, why? I know it's quite abstract as a question, but 
>>I think it could be helpful to fully understand the way all this works...
>>Thank you for helping.
>>Eric Delacroix
>>Faculté des Sciences appliquées
>>ULB Brussels
>>Recevez vos e-mails MSN Hotmail par SMS sur votre GSM ! 
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: batik-users-help@xml.apache.org

MSN Messenger : discutez en direct avec vos amis !  

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message