Hai all The following is my code snippet.Here I am passing html string for making its xhtml But its showing error like the function should return string.A tried with diff possibilities.But its not get solved .If anyone know please help me
Public String makeXhtml(String pageContent) { StringBufferInputStream sbis=null; ByteArrayOutputStream baos=null; try { sbis=new StringBufferInputStream(pageContent); baos=new ByteArrayOutputStream(); //Use tidy for making the web page clean Tidy tidy = new Tidy(); tidy.setXmlOut(true); tidy.setXHTML(false); tidy.setMakeClean(true); tidy.setTidyMark( false); tidy.setUpperCaseTags(false); tidy.setUpperCaseAttrs(false); tidy.setQuoteAmpersand(false); tidy.setNumEntities(true); tidy.setCharEncoding(Configuration.UTF8); tidy.parse(sbis,baos); } catch(Exception ex){} //String contain output from tidy ie.xhtml String xhtml=baos.toString(); return xhtml; } thanks and regards george ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]