PDA

View Full Version : What to use to build a simple tool/gui to read/modify XML file?



kernelhaxor
June 17th, 2008, 07:52 PM
I have a XML file (with lots of elements) and I intend to write a simple tool which can parse through it and display all the different elements and values in a readable way .. the tool also should giv me the option to update any of the values ..
the xml and the tool should live on my local machine

php webpage? (but it would require a http server)
java swing app?
anything else?

siouzi
June 18th, 2008, 03:02 PM
Reinvent the wheel? If not, see e.g. xmlstarlet (http://xmlstar.sourceforge.net/) - aptitude install available. Edit: aah a gui, maybe write a frontend for xmlstarlet :)

pmasiar
June 18th, 2008, 03:11 PM
before creating a GUI, create commandline tool which parses XML and updates portions of it. Python/ElementTree would be my choice.

days_of_ruin
June 18th, 2008, 05:31 PM
before creating a GUI, create commandline tool which parses XML and updates portions of it. Python/ElementTree would be my choice.
+1.
Check out this thread too.http://ubuntuforums.org/showthread.php?t=594676&highlight=parsing+xml+python

Shin_Gouki2501
June 18th, 2008, 05:49 PM
Reinvent the wheel? If not, see e.g. xmlstarlet (http://xmlstar.sourceforge.net/) - aptitude install available. Edit: aah a gui, maybe write a frontend for xmlstarlet :)


If you dont have a timelime or really need to know this i would code somehtign myself. But believe me using an existing tool can be much nicer...

kernelhaxor
June 19th, 2008, 08:49 AM
cool stuff .. I'll checkout xmlstarlet and elementtree

Thanks for the inputs guys!