M
mike
I use Jtidy (api) to translate a HTML file into a "XHTML file".
But The "XHTML file" cannot be identified by nokia 6600.
Do I miss something important?
Or this is Jtidy's weakness or bug?
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
But The "XHTML file" cannot be identified by nokia 6600.
Do I miss something important?
Or this is Jtidy's weakness or bug?
followings are my codes.
first I import the api.
You know,
---------------------------------------------------------
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