• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML parsing  RSS feed

yathish Gatty
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
Balaji Loganathan
author and deputy
Posts: 3150
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!