Package org.concordion.internal.listener
Class DocumentStructureImprover
java.lang.Object
org.concordion.internal.listener.DocumentStructureImprover
- All Implemented Interfaces:
EventListener
,DocumentParsingListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeParsing
(nu.xom.Document document) Improves the structure of an HTML document.
-
Constructor Details
-
DocumentStructureImprover
public DocumentStructureImprover()
-
-
Method Details
-
beforeParsing
public void beforeParsing(nu.xom.Document document) Improves the structure of an HTML document. If the <head> section is missing, one is added at the top of the document and any nodes in front of the <body> section are moved into it.- Specified by:
beforeParsing
in interfaceDocumentParsingListener
-