I need to use HotSAX to parse some XML with HTML
embedded within it. I want the SAX parser to output
everything to just read and output the HTML. How do I
call setup and call HotSAX from within my SAXParser.
The XML / HTML is as follows:
<MESSAGE><TYPE>abcd</TYPE>
<CONTENT>
<html>
<style type="text/css">h3 {font-size: 18; font-family:
arial; color: "#0000ff"}h1 {letter-spacing: 8px; font-
size: 200%; color: "#ff6347"; font-family: arial;}h2
{font-size: 120%; font-family: arial; color: "#6600ff";}
err {font-style: bold;font-size: 18; font-family: arial;
color: white}norm {font-style: bold;font-size: 16;font-
family: arial; color: black}</style></head><body
bgcolor="#F5F5DC"/>
</html>
</CONTENT>
My class currently extends DefaultHandler and my calls
to SAX ar as follows:
SAXParser saxParser = factory.newSAXParser();
saxParser.parse(new File(messageFileNameIn), handler);
Thanks
Logged In: YES
user_id=1063759
Sorry, the first paragraph of my question should be:
I need to use HotSAX to parse some XML with HTML
embedded within it. I want the SAX parser to just read and
output the HTML. How do I setup and call HotSAX from within
my SAXParser