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. Thanks for this great post. This is really helpful for me. Also, see
    Touch Here

  2. Great

  3. 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

  4. 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

  5. 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.

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

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

  8. Casino Roll
    Casino Roll 스포츠 무료중계 · No Deposit Bonus · No Deposit Bonus · No Deposit Bonus · No 해외야구 Deposit Bonus · No Deposit 랜덤 룰렛 Bonus · Minimum Deposit Offer · Deposit Bonus · Deposit  Rating: 5 · ‎2 votes · ‎Free 22 bet · bet365 우회 ‎Game