Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML parsing  RSS feed

Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using SAX parser to read XML document.My objective is to store the contents to the HashTable as values and attribute value as key.

How do i do this using SAX parser?

Below is the XML file:

<?xml version="1.0" encoding="UTF-8"?>
<directoryPaths directoryPaths="D:\loasas\temp1">
<fileID fileID="0">
<applicationName>Microsoft Word 9.0</applicationName>
<createdDate>Wed Dec 08 16:12:00 GMT+05:30 2004</createdDate>
<lastModifiedDate>Thu Dec 09 10:12:00 GMT+05:30 2004</lastModifiedDate>
<modifiedDate>Mon Jan 01 05:33:00 GMT+05:30 1601</modifiedDate>

Thanks in advance
author and deputy
Posts: 3150
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!