Again, I'd like to use Inkscape as a level editor.
I want to be able to draw a simple straight line in Inkscape, tag it as "playerStartingPos" and when I load the .svg in my program, it will convert the line into the starting position.
What is the best way to tag a path in Inkscape ?
Is it by going in the XML Editor, locate the path and click "Add text node" and set it to "playerStartingPos" ? And then detect that node in my loading code
Best way to add a custom tag to a path
Re: Best way to add a custom tag to a path
You could try putting it in a layer (which is really just a user named group), and naming that layer. The path should remain associated and be consistently detectable.
Your mind is what you think it is.
Re: Best way to add a custom tag to a path
You can add a custom label to each object in your document in the dialog 'Object > Object Properties' (the same dialog can also be extended to add Javascript calls)