James Strachan wrote:
> From: "Jerry Pommer" <[EMAIL PROTECTED]>
>
>>Hello,
>>
>>I'm using dom4j in an applet. Is there a way I can force HTMLWriter, for
>>example, to use a specific parser instead of it trying to create one
>>from the system properties (Applets aren't allowed to access the system
>>properties) or use the default parser? Or can I forcibly set the default
>>parser in the applet's context?
>
>
> The SAX parser is used by the SAXReader class which supports a
> setXMLReader() method, or a constructor that takes a SAX XMLReader, so
> either way you can explicitly create the SAX XMLReader however you wish and
> pass it into dom4j's SAXReader.
>
> James
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.comm
I'm sorry. I wasn't clear in asking my question. I can create a
SAXReader, but how can I associate it with HTMLWriter so that HTMLWriter
won't need to try to create one? The following code for example:
try{
org.dom4j.io.SAXReader saxreader = new
org.dom4j.io.SAXReader("org.dom4j.io.aelfred.SAXDriver");
org.dom4j.io.HTMLWriter hw = new org.dom4j.io.HTMLWriter();
// missing code here?
System.out.println(hw.prettyPrintXHTML(xmldoc.asXML()));
}catch(Exception io){
io.printStackTrace();
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user