Alas I don't have time to write code for you in some arbitrary language.
However I need to do his from time to time and I use Python.

If you are making a standalone parser for the svg file then you might consider the code below...
If you are writing an extension - search the docs for extension and you will find numerous examples - included with the inkscape package.

I suggest using python and the package called xml.dom.minidom
invoke it like this:

from xml.dom.minidom import parse, parseString
datasource = open(infile)
# get the entire DOM
dom = parse(datasource)

Now the entire dom is loaded and you can traverse the data structure getting/changing whatever you need....

Likewise you can write it out again the same way using:
data = dom.toprettyxml()
f = open(outfile, "w")
f.write(data)

You can get the list of elements matching somename by using functions like:
elements = dom.getElementsByTagName(somename)

and reach inside them using routines like:
for e in elements:
            if e.getAttribute('name') == node_name:
                node = e

many more by looking at the minidom module docs
Best of luck...

On 6/23/2011 7:58 PM, Mahendra Gajera wrote:
Hi All

Here i upload save file of two separate line.
Now  I want read the position each line via programmatically, which are  as BOLD in following .svg file.
Please suggest the way get the position.Is other any document or example for that ,Please suggest me.
 
<g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1">
    <path
       style="fill:none;stroke:#000000;stroke-width:0.40383452px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
       d="m 157.14285,315.21933 397.14286,-0.46595"
       id="path12"
       inkscape:connector-curvature="0" />
    <path
       style="fill:none;stroke:#000000;stroke-width:0.88473207px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
       d="m 162.85714,327.26862 385.71428,2.23643"
       id="path14"
       inkscape:connector-curvature="0" />
  </g>

Thanks
------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel