File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes reading a .xsl file using sax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "reading a .xsl file using sax" Watch "reading a .xsl file using sax" New topic

reading a .xsl file using sax

thippareddy mallikarjuna reddy

Joined: Mar 08, 2006
Posts: 19
Hi guys,

<?xml version="1.0"?>
<results compact="true" maximum="15" offset="10" query="airport parking" total_found="14944">
<r m="1028" q="airport parking, gatwick" t="2057" />
<r m="144" q="dfw airport parking" t="1875" />
<r m="117" q="airport car parking" t="1759" />
<r m="122" q="manchester airport parking" t="1710" />
<r m="135" q="airport parking gatwick" t="1628" />
<r m="97" q="san diego airport parking" t="1360" />
<r m="112" q="san jose airport parking" t="1346" />
<r m="141" q="sacramento airport parking" t="1274" />
<r m="104" q="seatac airport parking" t="1250" />
<r m="79" q="logan airport parking" t="1187" />
<r m="90" q="atlanta airport parking" t="1170" />
<r m="93" q="detroit metro airport parking" t="1126" />
<r m="76" q="heathrow airport parking" t="1072" />
<r m="78" q="laguardia airport parking" t="1021" />
<r m="66" q="midway airport parking" t="994" />

the above file, i have to read using sax..

1.only have values of attribute m, q,t

Paul Clapham

Joined: Oct 14, 2005
Posts: 19690

Did you have a specific question? Or a problem with some code you have already written?

Here is a link to a book chapter about SAX. Perhaps it will help. Or if you could ask something more specific, we might come up with an answer.
It is sorta covered in the JavaRanch Style Guide.
subject: reading a .xsl file using sax
It's not a secret anymore!