Code example for Element

Methods: getFirstChild

0
 
    Element elem = XmlUtil.parseSilent("<wrapper><div><a>out</a></div></wrapper>");
 
    public SingletonElementHandler() { 
      super(TEST_NS, "Bar");
      SanitizingGadgetRewriter.bypassSanitization((Element)elem.getFirstChild(), true);
    } 
 
    public void process(Node result, Element tag, TemplateProcessor processor) {
      processor.processChildNodes(result, elem);
    } 
  } 
}