Package org.htmlcleaner

Examples of org.htmlcleaner.XmlSerializer


  private static TagNode parse(String document) throws IOException {
    return getCleaner().clean(document);
  }
 
  private static String write(TagNode node) throws IOException {
    XmlSerializer serializer = new PrettyXmlSerializer(getCleaner()
        .getProperties());
    StringWriter writer = new StringWriter();
    node.serialize(serializer, writer);
    return writer.toString();
  }
View Full Code Here

TOP

Related Classes of org.htmlcleaner.XmlSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.