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

Windows 7 - STOP 0x0000007B (0xFFFFF880009A97E8 0xFFFFFFFFC0000034 0x0000000000 0x0000000000)

If you encounter STOP 0x0000007B (0xFFFFF880009A97E8 0xFFFFFFFFC0000034 0x0000000000 0x0000000000) blue screen of death. This is very like...