Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: "XHTML file" cannot be identified by nokia 66 >Thread Next - Re: "XHTML file" cannot be identified by nokia 66 Re: "XHTML file" cannot be identified by nokia 66To: NULL Date: 10/26/2004 8:12:00 AM regards,followings are my codes.
first I import the api.
You know,:),and then.
---------------------------------------------------------
import org.w3c.tidy.Tidy;
Tidy tidy = new Tidy();
tidy.setCharEncoding(4);
// tidy.setXmlTags(false);
System.out.println("tidy test");
//at input not XML
//tidy.setQuiet(true);
//tidy.setShowWarnings(true);
//tidy.setXmlOut(false);
tidy.setXHTML(true);
FileInputStream pw2 = new FileInputStream("page.txt");
FileOutputStream pw3 = new FileOutputStream("page2.txt");
tidy.parse(pw2,pw3);
pw2.close();
pw3.close();
---------------------------------------------------------
page.txt is HTML document input.
page2.txt is XHTML document output.
but my nokia6600 cannot identify the page2.txt.
Did I miss something important?
thank you.
best wishes
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
