I was able to get Xerces-J 1.4.3 DOMParser to build me an HTML DOM bycalling setDocumentClassName():

   setDocumentClassName("org.apache.html.dom.HTMLDocumentImpl");

The method seemed unnecessarily protected instead of public, but I could work around that.

However, when I tried to do something similar for WML using org.apache.wml.dom. WMLDocumentImpl <http://xml.apache.org/xerces-j/apiDocs/org/apache/wml/dom/WMLDocumentImpl.html> it failed because that class does not have a no-args constructor. Instead, it requires a DocumentType object; but I can't figure out how to get the parser to give it one.

Can anyone explain to me how I'm supposed to parse an existing WML document into a WML-specific DOM using Xerces? Thanks.

--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
+-----------------------+------------------------+-------------------+ | Java I/O (O'Reilly & Associates, 1999) |
| http://www.ibiblio.org/javafaq/books/javaio/ |
| http://www.amazon.com/exec/obidos/ISBN=1565924851/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | | Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ |
+----------------------------------+---------------------------------+




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to