translate a HTML document into a XHTML document

M

mike

regards:

Is it possible to use
java api
javax.swing.text.html.parser
to translate a HTML document into a XHTML document?
@@.

thank you
may god be with you
 
S

Stefan Schulz

regards:

Is it possible to use
java api
javax.swing.text.html.parser
to translate a HTML document into a XHTML document?
@@.

I guess it _is_ possible. But i really doubt there is a toXHTML() method
in there somewhere, so some work will be necessary.
 
T

Thomas Weidenfeller

mike said:
Is it possible to use
java api
javax.swing.text.html.parser
to translate a HTML document into a XHTML document?

No, not in general, because javax.swing.text.html.parser is very limited
(for details, follow the link in my sig). Consider using a tool like JTidy.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,833
Latest member
BettyeMacf

Latest Threads

Top