* @param $innerParserInstance A Parseable instance
* @return $parserInstance An instance of this parser
*/
- public final static function createXmlCompactorDecorator (Parseable $innerParserInstance) {
+ public static final function createXmlCompactorDecorator (Parseable $innerParserInstance) {
// Get a new instance
$parserInstance = new XmlCompactorDecorator();
* @throws XmlCompactorDecoratorException If an XML error was found
*/
public function parseXmlContent ($content) {
+ // Remove all comments for better compacting
+ $content = $this->getParserInstance()->getTemplateInstance()->compactContent($content);
+
// Parse the content
$this->getParserInstance()->parseXmlContent($content);
}