Sunday, February 15, 2009

Java XML Mapping

Recently, Castor has release a Castor 1.3 version. Castor is a great Java-XML mapping project and it gives more.


But, if you only need simple XML parsing, Java DOM (Document Object Model) is good enough.


Below is a sample to parse all xml element and value to a HashMap



Refer to the Java API

No comments:

Post a Comment

Hadoop - How to setup a Hadoop Cluster

Below is a step-by-step guide which I had used to setup a Hadoop Cluster Scenario 3 VMs involved: 1) NameNode, ResourceManager - Host...