Examples of parseDocument()


Examples of org.cfeclipse.cfml.editors.ICFDocument.parseDocument()

        line = in.readLine();
      }
     
      idoc.setParserResource( f );
      idoc.set( contents );
      idoc.parseDocument();
     
    } catch(org.eclipse.core.runtime.CoreException e) {
      System.out.println("ERROR {org.cfeclipse.cfml.wizards.cfunit.getCFFile():CoreException}: "+e.toString());
    } catch(java.io.IOException e) {
      System.out.println("ERROR {org.cfeclipse.cfml.wizards.cfunit.getCFFile():IOException}: "+e.toString());
View Full Code Here

Examples of org.dom4j.io.XMPPPacketReader.parseDocument()

                sb.append("</db:verify>");
                writer.write(sb.toString());
                writer.flush();

                try {
                    Element doc = reader.parseDocument().getRootElement();
                    if ("db".equals(doc.getNamespacePrefix()) && "verify".equals(doc.getName())) {
                        if (!streamID.equals(doc.attributeValue("id"))) {
                            // Include the invalid-id stream error condition in the response
                            writer.write(new StreamError(StreamError.Condition.invalid_id).toXML());
                            writer.flush();
View Full Code Here

Examples of org.dom4j.io.XMPPPacketReader.parseDocument()

            // Check if the remote server is XMPP 1.0 compliant
            if (serverVersion != null && decodeVersion(serverVersion)[0] >= 1) {
                // Restore default timeout
                socket.setSoTimeout(soTimeout);
                // Get the stream features
                Element features = reader.parseDocument().getRootElement();
                if (features != null) {
                    // Check if TLS is enabled
                    if (useTLS && features.element("starttls") != null) {
                        // Secure the connection with TLS and authenticate using SASL
                        LocalOutgoingServerSession answer;
View Full Code Here

Examples of org.foray.core.ConfigurationParser.parseDocument()

     * @throws FOrayException For errors processing the configuration.
     */
    public void loadUserconfiguration(final InputSource userConfigSource) throws FOrayException {
        final ConfigurationParser reader = new ConfigurationParser(this.sessionConfig, this.renderConfig,
                userConfigSource);
        reader.parseDocument();
    }

    /**
     * Returns the session configuration.
     * @return The session configuration.
View Full Code Here

Examples of org.itsnat.impl.core.doc.ItsNatStfulDocumentImpl.parseDocument()

            // Intentamos evitar un costoso parseado si no hay ningun <input type="file">
            if (docMarkup.indexOf(" type=\"file\"") == -1// type="file" es la forma est�ndar en la que se serializa via DOM este atributo. Si un <input> no tiene "type" el valor por defecto es "text" no "file"
                return docMarkup; // No hay ning�n <input type="file">


            Document docTmp = itsNatDoc.parseDocument(docMarkup);
            // No es necesario normalizar ya fue normalizado el documento original que dio lugar a la cadena
            attributes = processTreeInputFileElements(docTmp);
            // Como el documento temporal se pierde no es necesario restaurar nada

            // Para serializar de nuevo no es necesario resolver nodos cacheados
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.parseDocument()

        URL configURL = getClass().getResource("ws-subsystem.xml");
        Assert.assertNotNull("url is not null", configURL);

        BufferedReader reader = new BufferedReader(new InputStreamReader(configURL.openStream()));
        mapper.parseDocument(operations, XMLInputFactory.newInstance().createXMLStreamReader(reader));
        assertEquals(9090, operations.get(0).get(Constants.WSDL_PORT).asInt());
        assertEquals(9443, operations.get(0).get(Constants.WSDL_SECURE_PORT).asInt());
        assertEquals("localhost", operations.get(0).get(Constants.WSDL_HOST).asString());
        assertTrue(operations.get(0).get(Constants.MODIFY_WSDL_ADDRESS).asBoolean());
    }
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.parseDocument()

        XMLMapper xmlMapper = XMLMapper.Factory.create();
        xmlMapper.registerRootElement(new QName(namespace.getUriString(), "subsystem"),
                ThreadsParser.INSTANCE);

        List<ModelNode> updates = new ArrayList<ModelNode>();
        xmlMapper.parseDocument(updates, xmlReader);

        // Process subsystems
        for (final ModelNode update : updates) {
            // Process relative subsystem path address
            final ModelNode subsystemAddress = profileAddress.clone();
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.parseDocument()

        StringReader strReader = new StringReader(xml);

        XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
        List<ModelNode> newList = new ArrayList<ModelNode>();
        mapper.parseDocument(newList, reader);

        return newList;
    }

    public static ModelNode operationListToCompositeOperation(List<ModelNode> operations) {
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.parseDocument()

        final XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(xml));
        final StandaloneXml parser = new StandaloneXml(null, null, null);
        final List<ModelNode> operationList = new ArrayList<ModelNode>();
        final XMLMapper mapper = XMLMapper.Factory.create();
        mapper.registerRootElement(new QName(namespace, "server"), parser);
        mapper.parseDocument(operationList, reader);
        final ModelNode content = operationList.get(1).get("content");
        assertArrayEquals(new byte[] { 0x12, 0x34 }, content.get(0).get("hash").asBytes());
    }

    @Test
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.parseDocument()

        final XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(xml));
        final StandaloneXml parser = new StandaloneXml(null, null, null);
        final List<ModelNode> operationList = new ArrayList<ModelNode>();
        final XMLMapper mapper = XMLMapper.Factory.create();
        mapper.registerRootElement(new QName(namespace, "server"), parser);
        mapper.parseDocument(operationList, reader);
        System.out.println(operationList.get(1));
        final ModelNode content = operationList.get(1).get("content");
        assertEquals(true, content.get(0).get("archive").asBoolean());
        assertEquals("${jboss.home}/content/welcome.jar", content.get(0).get("path").asString());
    }
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.