|
NAMEXML::Clean - Ensure, that (HTML) text pass throught an XML parser.SYNOPSISuse XML::Clean; print XML::Clean::clean ("<foo bar>barfoo"); # <foo>barfoo</foo> print XML::Clean::clean ("<foo bar>barfoo",1.5); # <?xml version="1.5" encoding="ISO-8859-1"?> # <foo bar>barfoo</foo> print XML::Clean::clean ("bar <foo bar=10> bar",1.6,){root=>"XML_ROOT",encoding=>"ISO-8859-2"} ); # <?xml version="1.6" encoding="ISO-8859-2"?> # <XML_ROOT # bar <foo bar="10"> bar</foo></XML_ROOT> DESCRIPTIONThe ultimate quest of this module is to produce from non-XML text text, that will will most probably pass throught any XML parser one could find.Basic cleaning is just XML tag matching (for every opening tag there will be closing tag as well, and they will form a tree structure). When you add some extra parameters, you will receive complete XML text, including XML head and root element (if none were defined in text, then some will be added). FUNCTIONS AND METHODS
BUGSThis module is still under development. Not all XML errors are corrected with it.Its otherwise too ineficient and slow:). AUTHORDISTRIBUTION
Visit the GSP FreeBSD Man Page Interface. |