how to read svg file in inkscape

Asked by pareshchaudhary

i want to read svg file from my custom coding child vise. which function used for svg file reading

Let me know ..

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
su_v (suv-lp) said :
#1

Could you try to explain differently? It's unclear to me what your question actually is about.

Do you want to read the plain source code (XML, SVG) of the current file within Inkscape? (not possible)
Or do you want to paste SVG code snippets to create new objects? (not possible)
Or do you want to import an SVG file? ('File > Import')
Or do you want to access the XML code directly, from within Inkscape? ('Edit > XML Editor')
Or … ?

Revision history for this message
su_v (suv-lp) said :
#2

Sorry, I missed to recognize your name from earlier questions.

Please ask such coding-related questions on the inkscape-devel mailing list - only few of any of the active developers regularly check the new questions asked in the 'Answers' section at Launchpad (usually the questions here are about support for using inkscape, not for support for fellow developers modifying the source code).

Revision history for this message
pareshchaudhary (chaudharyparesh1986) said :
#3

want to add one more facility in svg file that i mention in below

I have add the one custom dialog in inkscape . In that i provide the on radio button that we mention the object priority

Now my svg file save like
<g
    inkscape:label="Layer 1"
    inkscape:groupmode="layer"
    id="layer1">
    <path
      d="M 77.14286,498.07648 L 368.57142,498.07648 L 368.57142,692.3622 L 77.14286,692.3622 z"
      id="rect3097"
      Priority="4" />
   <path
      d="M 477.14285,615.2193 L 620,615.2193 L 620,749.50502 L 477.14285,749.50502 z"
      id="rect3103"
      Priority="1" />
 </g>

Now i want to save svg file in ascending order , ascending operation in Priority value , After ascending svg file i want to save file like that i mention below
<g
<path
      d="M 477.14285,615.2193 L 620,615.2193 L 620,749.50502 L 477.14285,749.50502 z"
      id="rect3103"
      Priority="1" />
 <path
      d="M 77.14286,498.07648 L 368.57142,498.07648 L 368.57142,692.3622 L 77.14286,692.3622 z"
      id="rect3097"
      Priority="4" />
</g>

For that i write custom code when user select Object Path .In "sp_item_list_to_curves" function i do ascending operation in Priority value . after that i can get the Priority values in ascending order ..
But when i save the file in svg format i can't get output what i want actually..!!

Can you help with this problem?

Provide an answer of your own, or ask pareshchaudhary for more information if necessary.

To post a message you must log in.