Sax Class Generator -v1.0

Sax Class Generator is a class used to create a java class that extends org.xml.sax.helpers.DefaultHandler.

It creates everything based on the tree structure of the xml that you provide.

Current version depends on the GUI interface to get the nodes(structure) of the xml.

How to use:

1- Once launched, You will be looking at the nodes in the top level of the expected xml file.

2- Add as much root nodes as you need.

3- For any node with children, Browse it and add nodes inside.

4- Do step 3 for all nodes with children.

5- Finally export the structure -e.g. Create the java class.

Enjoy it! I think it saves lots of times and spans your whole xml structure.

I hope that you all know how to use the class. In case you don't.

String yourXmlString;
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();

/* Create a new instance of the class generated */
GeneratedHandler handler = new GeneratedHandler ();

InputSource inputSource = new InputSource();
inputSource.setCharacterStream(new StringReader(response));

/* Start Parsing */
/* Parsing Done. */

Your job is to fill in the blanks in the class created so that you can instantiate objects of your own or Arrays or any sort of data that the xml contains.

Click here for Sample Project (download)


  1. Uncharted 5 will be unbelievable if Cassie came in as Nate's replacement! As the daughter of Elena and Nathan, she has all the resources she will ever need to become the next treasure hunter in the family. And having her as the protagonist will ensure that we get to see Nate, Elena, and everyone else in at least some capacity. Uncharted 5 Official Trailer

  2. Thanks for this great post. This is really helpful for me. Also, see
    Touch Here

  3. It's surprising you aren't more popular given that you definitely possess the gift.
    antimalware service executable windows

  4. An intriguing discussion is worth comment. To the next! Kind regards!!
    usps liteblue login

  5. Great

  6. I am totally agree with the above mentioned topic. I think, this post should be shared as much as possible.good morning images hd
    sorry Images

  7. I appreciate your topic and agree with you but my problem is that I am writer of dissertation Writing Service and all types of writing is my working daily ,If you are students and want to get writing help for you papers , Contact me

  8. Analysis of A Doll's House by Henrik Ibsen. A Doll’s Play showed that the essence of a woman is found in the intricacies of her role. Nora was not just the little "silly girl" that her husband fondly called her.

  9. Very interesting, you have done a good job and thanks for sharing such a good blog.
    Sharepoint Course in Chennai

  10. Great Content. It will useful for knowledge seekers. Keep sharing your knowledge through this kind of article.
    MVC Training in Chennai

  11. Really I like your blogs it is easy to reading. You are a good blogger pls keep it up. Thank you so much. Best Dissertation Writing Services in the UK.