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 Elliotte Rusty Harold <el...@metalab.unc.edu> on 2001/12/18 19:20:53 UTC
WML DOM parser
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 | elharo@metalab.unc.edu | 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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org