Hi,
I found the solution to this thought I'd post here for future reference -
you have to set the property on the parser that specifies what kind of
document you are building. default being 'DocumentImpl"
DOMParser p=new DOMParser();
try {
p.setProperty("http://apache.org/xml/properties/dom/document-class-name","or
g.apache.html.dom.HTMLDocumentImpl");
}
then the documetn returned can be cast to the right type.
Pratima
-----Original Message-----
From: Gogineni, Pratima
To: '[EMAIL PROTECTED]'
Sent: 5/17/01 5:37 PM
Subject: htmldocument/wmldocument Question
Hi I am trying to create a HTMLDocumentImpl object & also an
WMLDocumentImpl by reading an html/wml document from a file but am
unable to figure how to do this.
For html there seems to be a HTMLBuilder which might be able to do this
if I were using a sax parser but there is no equivalent for WMLDocument.
I apologize if this question has already been answered since I am not
able to get to the archive, the site seems to be down.
Thanks
Pratima
____________________________________
Pratima Gogineni
Core Technology
Selectica, Inc.
3 West Plumeria Drive
San Jose CA 95134.2111
www.selectica.com
Direct: 408.545.2615
Main: 408.570.9700
Mobile: 408.315.6380
Fax: 408.570.2167
See our Internet Selling Systems in action:
http://www.selectica.com/iss_in_action/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]