Examples of XML


Examples of com.caucho.xml.Xml

      }
     
      if (isXml) {
        _parseState.setELIgnoredDefault(false);

        Xml xml = new Xml();
        _parseState.setXml(xml);
        xml.setContentHandler(new JspContentHandler(_jspBuilder));
        _jspPath.setUserPath(_uri);
        xml.setNamespaceAware(true);
        xml.setDtdValidating(true);
        xml.parse(_jspPath);
      }
      else
        _parser.parseTag(_jspPath, _uri);

      _generator = _jspBuilder.getGenerator();
View Full Code Here

Examples of com.caucho.xml2.Xml

    private XmlParser _parser;

    XmlSAXParser(XmlSAXParserFactory factory)
    {
      _factory = factory;
      _parser = new Xml();
      _parser.setNamespaceAware(_factory.isNamespaceAware());
      _parser.setNamespacePrefixes(_factory.isNamespacePrefixes());
      // _parser.setValidating(_factory.isValidating());
      _parser.setValidating(true);
    }
View Full Code Here

Examples of com.jcabi.xml.XML

    @NotNull(message = "Gist is never NULL")
    public Gist fork() throws IOException {
        this.storage.lock();
        final String number;
        try {
            final XML xml = this.storage.xml();
            number = Integer.toString(
                1 + xml.xpath("/github/gists/gist/id/text()").size()
            );
            final Directives dirs = new Directives().xpath("/github/gists")
                .add("gist")
                .add("id").set(number).up()
                .add("files");
            final List<XML> files = xml.nodes(
                String.format("%s/files/file", this.xpath())
            );
            for (final XML file : files) {
                final String filename = file.xpath("filename/text()").get(0);
                // @checkstyle MultipleStringLiterals (3 lines)
View Full Code Here

Examples of com.jcabi.xml.XML

            Json.createObjectBuilder()
                .add("name", "hi you!")
                .add("number", 1)
                .build()
        );
        final XML xml = storage.xml();
        MatcherAssert.assertThat(
            xml.xpath("/github/name/text()").get(0),
            Matchers.describedAs(xml.toString(), Matchers.endsWith("you!"))
        );
    }
View Full Code Here

Examples of com.jcabi.xml.XML

     * JsonNode can text XML to JSON.
     * @throws Exception If some problem inside
     */
    @Test
    public void convertsXmlToJson() throws Exception {
        final XML xml = new XMLDocument(
            "<user><name>Jeff</name><dept><title>IT</title></dept></user>"
        );
        final JsonObject json = new JsonNode(xml.nodes("user").get(0)).json();
        MatcherAssert.assertThat(json, Matchers.notNullValue());
        MatcherAssert.assertThat(
            json.getString("name"),
            Matchers.equalTo("Jeff")
        );
View Full Code Here

Examples of dk.brics.xact.XML

    /**
     * Returns the XML value.
     */
    public XML getXML() {
        XML xml1 = xml.get();
        if (xml1 == null) {
            xml1 = XML.parseTemplate(serializedXML);
            xml = new SoftReference<XML>(xml1);
        }
        return xml1;
View Full Code Here

Examples of flex2.compiler.mxml.rep.XML

    public void analyze(XMLNode node)
    {
        id = (String)getLanguageAttributeValue(node, StandardDefs.PROP_ID);
        boolean e4x = node.isE4X();
        Type t = typeTable.getType(standardDefs.getXmlBackingClassName(e4x));
        xml = new XML(document, t, parent, e4x, node.beginLine);
        if (id != null)
        {
            xml.setId(id, false);
        }
View Full Code Here

Examples of grails.converters.XML

    @Override
    protected Object encodeAsXmlObject(Object o) {
        if(o instanceof XML) {
            return o;
        } else {
            return new XML(o);
        }
    }
View Full Code Here

Examples of kiss.XML

     *
     * @param file
     */
    private synchronized XML rebuild(Path file) {
        long now = new Date().getTime();
        XML html = I.xml(file);

        // append live coding script
        html.find("script[src=\"application.js\"]").after(I
                .xml("script")
                .attr("type", "text/javascript")
                .attr("src", "live.js"));

        // ignore cache
        for (XML link : html.find("link[rel=stylesheet]")) {
            String href = link.attr("href");

            if (href.length() != 0 && !href.startsWith("http://") && !href.startsWith("htttps://")) {
                link.attr("href", href + "?" + now);
            }
        }

        for (XML link : html.find("script[src]")) {
            String src = link.attr("src");

            if (src.length() != 0 && !src.startsWith("http://") && !src.startsWith("htttps://")) {
                link.attr("src", src + "?" + now);
            }
View Full Code Here

Examples of org.apache.derby.iapi.types.XML

     */
    public XMLDataValue XMLParse(StringDataValue xmlText, XMLDataValue result)
        throws StandardException
    {
        if (result == null)
            result = new XML();

        if (xmlText.isNull())
        {
            result.setToNull();
            return result;
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.