Showing posts with label xml. Show all posts
Showing posts with label xml. Show all posts

Thursday, February 04, 2010

Format XML online

Format XML:
http://www.shell-tools.net/index.php?op=xml_format

Parse XSD:
http://www.shell-tools.net/index.php?op=xml_parse_xsd

Format JSON:
http://www.shell-tools.net/index.php?op=json_format

other useful stuff at same url

Also some pointed out in the comments:

http://xmltoolbox.appspot.com

Wednesday, April 09, 2008

Teamsite DCR java parser


Working with teamsite DCRs is painful. This is my attempt to make it a little bit less painful.

I made this program in order to make it easier to edit and parse teamsite data capture records. I should have done this a long time ago, and actually this is the first step towards freeing myself from OpenDeploy.

Anyway, here is the code for the parser:



Note: The code above does not yet truly support replicants, as in, you cant say 'give me the 3rd text field from the 2nd replicant..' unless you can figure out the xpath for it, which somewhat defeats the purpose of having a DCR parser.


Here is a driver class that uses my parser in order to do something silly.



in order to use this parser you will need the following libs:
- JDOM
- JAXEN

Friday, November 16, 2007

parse xml with JDOM and Xpath

every now and again its good to have your config in an xml file, but i am usually to lazy to remember to how to do it properly and just use java.util.Properties. Well no more of that!

This is a short self contained code sample on how to parse some xml using jdom and jaxen

you will need:
jdom lib
jaxen lib (which may be old now)