Re: [Inkscape] l'arbre XML du document

Posté par Roger le 3/12/2008 20:59:15
JRB ->C'est ce que j'avais fait, mais j'ai vu des caractères qui passaient pas au bloc note...

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="210mm"
height="297mm"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docname="dessin.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<defs
id="defs4">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 526.18109 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="744.09448 : 526.18109 : 1"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
id="perspective10" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="375"
inkscape:cy="520"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="640"
inkscape:window-height="667"
inkscape:window-x="66"
inkscape:window-y="87" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 294.28571,512.36218 C 265.82084,526.73156 201.20562,544.23666 182.85714,580.93361 C 164.02685,618.59419 182.38592,668.47412 222.85714,675.21933 C 250.01368,679.74542 271.93764,723.0157 320,703.79075 C 349.7802,691.87867 370.23694,667.36564 380,638.07647 C 389.41679,609.82608 381.50022,582.57712 374.28571,560.93361 C 369.64362,547.00733 345.8497,526.78332 337.14286,518.07647 C 327.95276,508.88637 310.60776,504.20116 294.28571,512.36218 z"
id="path2383" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 365.71429,252.36218 C 355.52498,242.17288 322.10974,316.44922 325.71429,338.07647 C 329.80552,362.62388 349.06294,375.3422 371.42857,380.93361 C 397.8999,387.55144 416.7275,384.20611 434.28571,366.6479 C 448.23473,352.69888 456.13309,334.55387 460,315.21933 C 465.00125,290.21308 454.87124,279.54029 448.57143,263.79075 C 442.3995,248.36093 417.03478,238.02243 405.71429,232.36218 C 387.51003,223.26006 371.12108,238.84521 365.71429,252.36218 z"
id="path2385" />
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 468.57143,503.79075 C 466.96697,502.98853 535.63305,489.50504 591.42857,489.50504 C 629.97759,489.50504 622.85714,560.23931 622.85714,589.50504 C 622.85714,621.03988 563.05285,698.07647 531.42857,698.07647 C 496.51966,698.07647 502.13328,701.105 471.42857,678.07647 C 457.80136,667.85606 440,643.45086 440,629.50504 C 440,595.41875 442.33358,587.69503 454.28571,563.79075 C 462.40683,547.54853 431.96232,538.92419 428.57143,538.07647 C 398.73493,530.61734 414.05806,510.07417 420,495.21933 C 426.1059,479.95457 452.45005,507.01503 468.57143,503.79075 z"
id="path2387" />
<path
style="fill:#2b0000"
d=""
id="path2389" />
<path
style="fill:#2b0000"
d="M 283,703.86995 C 275.92857,701.89195 261.88443,694.87838 251.79077,688.28427 C 241.69709,681.69015 228.19711,674.80913 221.79077,672.99304 C 204.3836,668.0585 191.7564,657.32024 184.14903,640.98227 C 171.44774,613.70441 176.36874,588.56235 198.8328,565.9605 C 206.86166,557.88244 219.07489,548.39367 225.9734,544.8743 C 254.08849,530.53104 304.04463,510.6479 311.96671,510.6479 C 324.70249,510.6479 334.49983,516.94161 353.67691,537.44195 C 374.52303,559.72647 381.33446,577.79687 381.27123,610.6479 C 381.22034,637.08713 371.52069,659.61195 351.7698,679.15701 C 329.3816,701.31193 305.07791,710.04561 283,703.86998 L 283,703.86995 z"
id="path2391" />
<path
style="fill:#2b0000"
d="M 365.89654,376.47947 C 355.5644,372.91318 346.55626,367.13958 339.46797,359.54053 C 330.02037,349.41218 328.71429,346.28564 328.71429,333.79764 C 328.71429,311.35075 353.50706,253.50504 363.12783,253.50504 C 364.72497,253.50504 369.86346,249.14095 374.54669,243.80704 C 386.5132,230.17787 394.22943,229.01175 412.2774,238.10484 C 436.74366,250.43167 443.32157,256.40281 450.98063,273.23815 C 467.79474,310.1971 451.28317,359.21273 416.31697,376.13958 C 401.22206,383.4469 386.37223,383.54698 365.89654,376.47947 z"
id="path2393" />
<path
style="fill:#2b0000"
d="M 490.14286,689.19647 C 473.131,677.78281 454.67009,659.17044 448.47851,647.1903 C 440.13151,631.03955 440.98491,600.9451 450.46169,577.25695 C 460.16423,553.0043 458.16374,548.37835 433.42634,537.86481 C 423.16314,533.50293 414.10754,528.21813 413.30274,526.12087 C 411.15334,520.51961 420.13554,496.18564 425.0484,494.30041 C 427.36789,493.41033 436.43309,495.65281 445.19326,499.28367 L 461.12083,505.88533 L 492.21229,500.92795 C 538.41934,493.56053 591.46854,489.99153 600.40369,493.6491 C 614.1626,499.28133 618.34483,513.39701 619.56786,558.33201 L 620.67126,598.87327 L 611.76309,616.90347 C 600.42486,639.8519 572.92351,673.18013 555.24929,685.39118 C 543.57726,693.45535 538.63857,694.98947 521.57143,695.85261 C 503.70243,696.7563 500.35371,696.0471 490.14286,689.19644 L 490.14286,689.19647 z"
id="path2395" />
</g>
</svg>

Bon, je suis bête ! ça marche ! Sous le bloc note j'ai tout simplement pas le bon encodage Merci :)

Maintenant il me reste plus qu'a regarder tout ça et tenter de faire un interpréteur

Traven, ça marche nickel. Le XML y'a rien à dire c'est génial. :)

Cette contribution était de : http://blenderclan.tuxfamily.org/html/newbb/viewtopic.php?forum=24&topic_id=16987&post_id=212848