You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Brett McLaughlin <br...@newInstance.com> on 2001/04/25 22:48:41 UTC

Getting an HTMLDocument

Hi-

  I'm unlcear on the best way to take an existing XHTML document and obtain
the DOM representation of that document as an org.w3c.dom.HTMLDocument. I
can get a DOM Document, but I get a ClassCastException casting it to
HTMLDocument (makes sense, really). However, I don't see any way to get it
to an HTMLDocument. I also see how to /create/ an HTMLDocument through
HTMLDocumentImplementation, but that's about all I can get. Any help is
appreciated.

Thanks,
Brett


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Getting an HTMLDocument

Posted by arkin <ar...@intalio.com>.
You'll need to create a parse that uses HTMLDocumentBuilder to construct
an HTMLDocument. Otherwise, it will always constrct a Document.

The implementation of HTMLDocument is not a wrapper but rather extends
the Xerces DOM.

arkin

Brett McLaughlin wrote:
> 
> Hi-
> 
>   I'm unlcear on the best way to take an existing XHTML document and obtain
> the DOM representation of that document as an org.w3c.dom.HTMLDocument. I
> can get a DOM Document, but I get a ClassCastException casting it to
> HTMLDocument (makes sense, really). However, I don't see any way to get it
> to an HTMLDocument. I also see how to /create/ an HTMLDocument through
> HTMLDocumentImplementation, but that's about all I can get. Any help is
> appreciated.
> 
> Thanks,
> Brett
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org

-- 
----------------------------------------------------------------------
Assaf Arkin                                          arkin@intalio.com
CTO,  Intalio Inc.                                     www.intalio.com
The Business Process Management Company                 (650) 345 2777

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org