logo       

Re: XMLC decided to change the HTML structure: msg#00034

java.enhydra.xmlc

Subject: Re: XMLC decided to change the HTML structure

On Wednesday 18 December 2002 13:16, Petr Stehlik wrote:
> On Út, 2002-12-17 at 20:46, David Li wrote:
> > Peter,
> >
> > Do not use Tidy to compile XHMTL, use the XHTML module. It's
> > -domfactory and the XHTML uses org.enhydra.xml.xhtml.XHTMLDomFactory
>
> Any idea what I am doing wrong?
>
> /usr/local/enhydra5.0/bin/xmlc -domfactory
> org.enhydra.xml.xhtml.XHTMLDomFactory -classpath
> /usr/local/enhydra5.0/lib/xhtml.jar intro.html
> Exception in thread "main" org.enhydra.xml.xmlc.XMLCError: qualifiedName
> is null for XHTML document; maybe trying to use a HTML parser on XHTML

The error message says it all: You're using an HTML parser to parse XHTML :-)

The "-domfactory" argument only sets the factory for the DOM "dialect" (HTML,
WML, VoiceML, ...) that will be used in the generated documents, not the
parser that's used to parse the *ML sources. You'll have to set the parser as
well, because XMLC by default assumes HTML content if the file name ends in
".html". Adding "-parser xerces" to your command line should do the trick.

Hope this helps,

Richard
--
Richard Kunze

[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, kunze@xxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise