Examples of XML


Examples of org.mojavemvc.views.XML

    private final EntityResolver entityResolver = new EntityResolver();
   
    @Override
    public View marshall(Object entity) {
        entity = entityResolver.resolve(entity);
        return new XML(entity);
    }
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XML

                    throw new CarbonException(
                            "Given path is not a File. This object does not support directories.");
                }
            } else if (args[0] instanceof XML) {
                //TODO: Initial code bits to handle MTOM using the file object. Yet to be completed.
                XML xml = (XML) args[0];
                OMNode node = xml.getAxiomFromXML();
                if (node instanceof OMText) {
                    OMText textNode = (OMText) node;
                    if (textNode.isBinary()) {
                        result.dataHandler = (DataHandler) textNode.getDataHandler();
                    } else {
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XML

                                throw new DeploymentException(
                                        "Error adding service parameter : " + propertyName,
                                        axisFault);
                            }
                        } else if (propertyValueObject instanceof XML) {
                            XML xml = (XML) propertyValueObject;
                            OMNode axiom = xml.getAxiomFromXML();
                            try {
                                OMFactory factory = OMAbstractFactory.getOMFactory();
                                OMElement parameterElement = factory.createOMElement("parameter", null);
                                parameterElement.addAttribute("name", propertyName, null);
                                parameterElement.addChild(axiom);
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XML

// todo
//            String s = MashupUtils.sanitizeHtml(documentationString);
            this.serviceDocumentation =
                    omFactory.createOMText(documentationString);
        } else if (serviceDocumentationObject instanceof XML) {
            XML xml = (XML) serviceDocumentationObject;
            OMNode axiom = xml.getAxiomFromXML();
            this.serviceDocumentation = axiom;
            //todo
            /*try {
                this.serviceDocumentation = MashupUtils.getSanizedHTMLAsOMNode(axiom.toString());
            } catch (XMLStreamException e) {
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XML

            //todo
//            String s = JSUtils.sanitizeHtml(documentationString);
            this.documentation =
                    omFactory.createOMText(documentationString);
        } else if (documentationObject instanceof XML) {
            XML xml = (XML) documentationObject;
            OMNode axiom = xml.getAxiomFromXML();
            this.documentation = axiom;
            //todo
            /*try {
                OMNode node = JSUtils.getSanizedHTMLAsOMNode(axiom.toString());
                this.documentation = node;
View Full Code Here

Examples of org.wso2.javascript.xmlimpl.XML

        ScraperHostObject result = new ScraperHostObject();

        if (args.length == 1 && !(args[0] == Context.getUndefinedValue())) {
            OMElement configElement;
            if (args[0] instanceof XML) {
                XML xml = (XML) args[0];
                configElement = (OMElement) xml.getAxiomFromXML();
            } else if (args[0] instanceof File) {
                File configFile = (File) args[0];
                FileInputStream fis;
                try {
                    fis = new FileInputStream(configFile);
View Full Code Here

Examples of processing.data.XML

  }

  public void loadRSSGeoLocations() {
    // Load RSS feed
    String url = "http://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-M5.xml";
    XML rss = loadXML(url);
    // Get all items
    XML[] itemXML = rss.getChildren("channel/item");
    for (int i = 0; i < itemXML.length; i++) {
      // Adds lat,lon as locations for each item
      XML latXML = itemXML[i].getChild("geo:lat");
      XML lonXML = itemXML[i].getChild("geo:long");
      if (latXML != null && latXML.getContent() != null) {
        float lat = Float.valueOf(latXML.getContent());
        float lon = Float.valueOf(lonXML.getContent());

        rssGeoLocations.add(new Location(lat, lon));
      }
    }
  }
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.