Examples of XmlDeclaration


Examples of com.volantis.mcs.dom.XMLDeclaration

        protocol.writeProtocolString(document);

        StringWriter writer = new StringWriter();
        DocumentWriter documentWriter = new XMLDocumentWriter(writer);

        XMLDeclaration declaration = document.getDeclaration();
        if (declaration != null) {
            documentWriter.outputXMLDeclaration(declaration);
        }

        DocType docType = document.getDocType();
View Full Code Here

Examples of com.volantis.mcs.dom.XMLDeclaration

     * @param document the Document to output.
     * @throws IOException if an error occurs during output.
     */
    public void output(Document document) throws IOException {
        try {
            XMLDeclaration declaration = document.getDeclaration();
            if (declaration != null) {
                writer.outputXMLDeclaration(declaration);
            }

            DocType docType = document.getDocType();
View Full Code Here

Examples of com.volantis.mcs.dom.XMLDeclaration

                "<!ENTITY shy \"&#173;\">\n" +
                "<!ENTITY eur \"&#xa4;\">",
                MarkupFamily.XML);
        document.setDocType(docType);

        XMLDeclaration declaration = domFactory.createXMLDeclaration();
        declaration.setEncoding("UTF-8");
        document.setDeclaration(declaration);
    }
View Full Code Here

Examples of com.volantis.mcs.dom.XMLDeclaration

        context.popOutputBuffer(pageBuffer);

    }

    protected void addXMLDeclaration(Document document) {
        XMLDeclaration declaration = domFactory.createXMLDeclaration();
        declaration.setEncoding(context.getCharsetName());
        document.setDeclaration(declaration);
    }
View Full Code Here

Examples of org.jsoup.nodes.XmlDeclaration

     */
    @SuppressWarnings({"JavaDoc"}) @NotNull
    private <N extends Node> Renderable widgetize(PageCompilingContext pc, N node, WidgetChain childsChildren) {
        if (node instanceof XmlDeclaration) {
            try {
              XmlDeclaration decl = (XmlDeclaration)node;
              return registry.xmlDirectiveWidget(decl.getWholeDeclaration(), pc.lexicalScopes.peek());
            } catch (ExpressionCompileException e) {
                pc.errors.add(
                        CompileError.in(node.outerHtml())
                        .near(line(node))
                        .causedBy(e)
View Full Code Here

Examples of org.jsoup.nodes.XmlDeclaration

    tq.consume("<");
    Character firstChar = tq.consume(); // <? or <!, from initial match.
    boolean procInstr = firstChar.toString().equals("!");
    String data = tq.chompTo(">");

    XmlDeclaration decl = new XmlDeclaration(data, baseUri, procInstr);
    annotate(decl); // TODO - should annotations even apply to declarations?
    lines(decl, data);
    add(decl);

  }
View Full Code Here

Examples of org.jsoup.nodes.XmlDeclaration

     */
    @SuppressWarnings({"JavaDoc"}) @NotNull
    private <N extends Node> Renderable widgetize(N node, WidgetChain childsChildren) {
        if (node instanceof XmlDeclaration) {
            try {
              XmlDeclaration decl = (XmlDeclaration)node;
              return registry.xmlDirectiveWidget(decl.getWholeDeclaration(), lexicalScopes.peek());
            } catch (ExpressionCompileException e) {
                errors.add(
                        CompileError.in(node.outerHtml())
                        .near(line(node))
                        .causedBy(e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.