private void composeDoc(XhtmlDocument doc) throws IOException { // headers.... // dst.append("<html>" + (pretty ? "\r\n" : "")); for (XhtmlNode c : doc.getChildNodes()) writeNode(" ", c, false); // dst.append("</html>" + (pretty ? "\r\n" : "")); }
public XhtmlNode getDocumentElement() { for (XhtmlNode n : getChildNodes()) { if (n.getNodeType() == NodeType.Element) return n; } return null; } }
protected XhtmlNode parseXhtml(String value) throws IOException, FHIRFormatError { XhtmlParser prsr = new XhtmlParser(); try { return prsr.parse(value, "div").getChildNodes().get(0); } catch (org.hl7.fhir.exceptions.FHIRFormatError e) { throw new FHIRFormatError(e.getMessage(), e); } }
private void composeDoc(XhtmlDocument doc) throws IOException { // headers.... // dst.append("<html>" + (pretty ? "\r\n" : "")); for (XhtmlNode c : doc.getChildNodes()) writeNode(" ", c, false); // dst.append("</html>" + (pretty ? "\r\n" : "")); }
public XhtmlNode getDocumentElement() { for (XhtmlNode n : getChildNodes()) { if (n.getNodeType() == NodeType.Element) return n; } return null; } }
protected XhtmlNode parseXhtml(String value) throws IOException, FHIRFormatError { XhtmlParser prsr = new XhtmlParser(); try { return prsr.parse(value, "div").getChildNodes().get(0); } catch (org.hl7.fhir.exceptions.FHIRFormatError e) { throw new FHIRFormatError(e.getMessage(), e); } }
protected XhtmlNode parseXhtml(String value) throws IOException, FHIRFormatError { XhtmlParser prsr = new XhtmlParser(); try { return prsr.parse(value, "div").getChildNodes().get(0); } catch (org.hl7.fhir.exceptions.FHIRFormatError e) { throw new FHIRFormatError(e.getMessage(), e); } }