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 reka <re...@gmail.com> on 2013/07/19 12:42:15 UTC

Re: parsing a svg file using batik svg parser

Hi All ,

I m new to this technology.i need to know how to parse a svg file using
batik svg parser.

For eg:

Here is my svg file

<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
 <g>
  <title>Layer 1</title>
  <line id="svg_1" y2="395" x2="449" y1="395" x1="449" opacity="0.5"
stroke-linecap="round" stroke-linejoin="null" stroke-dasharray="null"
stroke-width="2" stroke="#000000" fill="none"/>
  <path id="svg_2" d="m 200,159 c-3,53 57,-63 57,-63 c 0,0 108,-16 108,-16 c
0,0 73,79 73,79 c 0,0 -32,77 -32,77 c 0,0 -69,74 -69,74 c 0,0 -92,-18
-92,-18 c 0,0 -78,-27 -78,-27 c 0,0 -18,-85 -18,-85 c 0,0 51,-21 51,-21 z"
stroke-width="2" stroke="#000000" fill="none"/>
 </g>
</svg>


Now i wanna read ie parse and get only the <path> tag value.

can anyone help me on this please.

Many thanks in advance :) 



--
View this message in context: http://batik.2283329.n4.nabble.com/Need-help-converting-an-SVG-file-into-Java-2D-objects-tp4400151p4655597.html
Sent from the Batik - Users mailing list archive at Nabble.com.

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