All Packages Class Hierarchy This Package Previous Next Index
Class hplb.xml.util.NormalizeHtml
java.lang.Object
|
+----hplb.xml.util.NormalizeHtml
- public class NormalizeHtml
- extends Object
Reads an HTML document on System.in, "normalizes" it in a couple of ways, and
writes it to System.out. In the process HTML4.0 element names are converted to
upper case, attribute names are converted to lower case, all attribute values
gets enclosed in double quotes, all non-empty elements with an optional and
omitted end tag are given an end tag.
- Author:
- Anders Kristensen
-
NormalizeHtml()
-
-
encodeText(String, boolean)
-
-
isHtmlElm(String)
-
-
main(String[])
-
-
print(Attribute, boolean)
-
-
print(Document)
-
-
print(Element)
-
-
print(Text)
-
-
printNode(Node)
-
-
usage()
-
NormalizeHtml
public NormalizeHtml()
usage
public static void usage()
main
public static void main(String args[]) throws Exception
print
public static void print(Document doc)
printNode
public static void printNode(Node node)
print
public static void print(Text text)
print
public static void print(Element elm)
print
public static void print(Attribute attr,
boolean toLower)
encodeText
public static String encodeText(String s,
boolean attr)
isHtmlElm
public static boolean isHtmlElm(String tagName)
All Packages Class Hierarchy This Package Previous Next Index