You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by - X�r�K��l - <sy...@hotmail.com> on 2001/08/06 06:32:01 UTC
Parsing Question
hi all,
i just want to ask whether i can use normal XML parsers to parse SVG(for
example: Xerces). or i can only use batik to work with SVG.
thanks a lot!
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: Parsing Question
Posted by Thierry Kormann <tk...@ilog.fr>.
On Monday 06 August 2001 06:32, - XërôKòól - wrote:
> hi all,
>
> i just want to ask whether i can use normal XML parsers to parse SVG(for
> example: Xerces). or i can only use batik to work with SVG.
> thanks a lot!
You can use any XML parser to parse SVG as SVG is XML. Though, if you want to
render an SVG file, you have to use Batik. Batik works with any XML parser.
The default one is crimson.
To set your own XML parser for all batik module, use the
XMLResourceDescriptor.setXMLParserClassname() in the org.apache.batik.util
package.
Thierry.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Parsing Question
Posted by Thomas E Deweese <th...@kodak.com>.
I apologize of the attribution is 'weird', my mail client is seriously
confused by the encoding used - but it offered 'syphrix' as an
attribution so I used it :)
>>>>> "syphrix" == - =?ISO-8859-1?Q?X=EBr=F4K=F2=F3l -?= <-> writes:
syphrix> hi all, i just want to ask whether i can use normal XML
syphrix> parsers to parse SVG(for example: Xerces). or i can only use
syphrix> batik to work with SVG. thanks a lot!
You can parse and build a generic XML DOM tree with any
conformant XML parser (for example Xerces). However, as with any XML
flavor, none of the SVG specific DOM will be available, and of course
don't expect to get a rendering out of Xerces :)
However if you are just interested in walking the tree, finding
particular elements, modifying attributes, adding and removing
children, through the generic DOM interface there is no problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org