SVG本身就是数据。
自己文本编辑器打开看就行了。
如果数据量大,随便用什么语言写个正则分析,匹配出来就好。
<svg width="580" height="400" xmlns="http://www.w3.org/2000/svg">
<!-- Created with Method Draw -
http://github.com/duopixel/Method-Draw/ -->
<g>
<title>background</title>
<rect fill="#fff" id="canvas_background" height="402" width="582" y="-1" x="-1"/>
<g display="none" overflow="visible" y="0" x="0" height="100%" width="100%" id="canvasGrid">
<rect fill="url(#gridpattern)" stroke-width="0" y="0" x="0" height="100%" width="100%"/>
</g>
</g>
<g>
<title>Layer 1</title>
<line stroke-linecap="undefined" stroke-linejoin="undefined" id="svg_1" y2="71.050003" x2="283.5" y1="63.050003" x1="87.5" stroke-width="1.5" stroke="#000" fill="none"/>
<line stroke-linecap="undefined" stroke-linejoin="undefined" id="svg_2" y2="284.050003" x2="237.5" y1="181.050003" x1="110.5" stroke-width="1.5" stroke="#000" fill="none"/>
</g>
</svg>
这不是x1y1x2y2都清清楚楚明明白白的么。
~~呵呵~~