[Logo]
Forums Register Login
XML parsing
Hi,

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"?>
<LocalCrawler>
<directoryPaths directoryPaths="D:\loasas\temp1">
<fileID fileID="0">
<location>specialchar.doc</location>
<title>abc</title>
<author>xyz</author>
<applicationName>Microsoft Word 9.0</applicationName>
<keywords></keywords>
<createdDate>Wed Dec 08 16:12:00 GMT+05:30 2004</createdDate>
<lastModifiedBy>xyz</lastModifiedBy>
<lastModifiedDate>Thu Dec 09 10:12:00 GMT+05:30 2004</lastModifiedDate>
<modifiedDate>Mon Jan 01 05:33:00 GMT+05:30 1601</modifiedDate>
<subject></subject>
<comments></comments>
<data>hdfdfhdjfdj</data>
</fileID>
</directoryPaths>
</LocalCrawler>

Thanks in advance
IBM developer works has a tutorial on understanding SAX and DOM.
check out this links

http://www-106.ibm.com/developerworks/edu/x-dw-xusax-i.html?S_TACT=104AHW06&S_CMP=EDU

http://www-106.ibm.com/developerworks/views/xml/tutorials.jsp
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 408 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 16, 2018 14:16:33.