/** * Constructor with given node factory and given XML violation policy. * @param nodeFactory the factory * @param xmlPolicy the policy */ public HtmlBuilder(SimpleNodeFactory nodeFactory, XmlViolationPolicy xmlPolicy) { super(); this.simpleNodeFactory = nodeFactory; this.treeBuilder = new XOMTreeBuilder(nodeFactory); this.driver = null; setXmlPolicy(xmlPolicy); }
/** * Constructor with given node factory and given XML violation policy. * @param nodeFactory the factory * @param xmlPolicy the policy */ public HtmlBuilder(SimpleNodeFactory nodeFactory, XmlViolationPolicy xmlPolicy) { super(); this.simpleNodeFactory = nodeFactory; this.treeBuilder = new XOMTreeBuilder(nodeFactory); this.driver = null; setXmlPolicy(xmlPolicy); }
/** * Constructor with given node factory and given XML violation policy. * @param nodeFactory the factory * @param xmlPolicy the policy */ public HtmlBuilder(SimpleNodeFactory nodeFactory, XmlViolationPolicy xmlPolicy) { super(); this.simpleNodeFactory = nodeFactory; this.treeBuilder = new XOMTreeBuilder(nodeFactory); this.driver = null; this.driver.setXmlnsPolicy(XmlViolationPolicy.ALTER_INFOSET); setXmlPolicy(xmlPolicy); }