Examples of detachRootElement()


Examples of org.jdom.Document.detachRootElement()

                        initialValue +
                        "</" + varElementName + ">";
                try {
                    SAXBuilder builder = new org.jdom.input.SAXBuilder();
                    Document doc = builder.build(new StringReader(initialValue));
                    initialValuedXMLDOM = doc.detachRootElement();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            } else {
                initialValuedXMLDOM = new Element(varElementName);
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

            if (nodeInfo != null) {
                YSaxonOutPutter saxonOutputter = new YSaxonOutPutter(nodeInfo);
                String result = saxonOutputter.getString();
                SAXBuilder builder = new SAXBuilder();
                Document doclet = builder.build(new StringReader(result));
                resultingData = doclet.detachRootElement();
            } else {
                throw new YDataQueryException(
                        query,
                        document.getRootElement(),
                        getID(),
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

                YSaxonOutPutter saxonOutputter = new YSaxonOutPutter(nodeInfo);
                String result = saxonOutputter.getString();
                if (result != null) {
                    SAXBuilder builder = new SAXBuilder();
                    Document doclet = builder.build(new StringReader(result));
                    resultingData.add(doclet.detachRootElement());
                }
            }
        } catch (XPathException e) {
            YQueryException de = new YQueryException(e.getMessage());
            de.setStackTrace(e.getStackTrace());
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

                        initialValue +
                        "</" + inputParam.getName() + ">";
                try {
                    SAXBuilder builder = new org.jdom.input.SAXBuilder();
                    Document doc = builder.build(new StringReader(initialValue));
                    initialValuedXMLDOM = doc.detachRootElement();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            } else {
                initialValuedXMLDOM = new Element(inputParam.getName());
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

                    //doing this because Saxon can't do an effective query when the whitespace is there
                    try {
                        Document d;
                        d = builder.build(new StringReader(paramValueForMICreation));
                        Document e = YDocumentCleaner.cleanDocument(d);
                        Element el = e.detachRootElement();
                        YIdentifier id = netRunner.addNewInstance(pmgr, taskID, workItem.getCaseID(), el);
                        if (id != null) {
                            YWorkItem firedItem = workItem.getParent().createChild(pmgr, id);

                            if (pmgr != null) {
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

               
                // try to parse
                try {
                    Document d =
                        new SAXBuilder().build( new StringReader(objectLockToken.getOwnerInfo()) );
                    owner.addContent(d.detachRootElement());
                }
                catch( Throwable e ) {
                    owner.addContent(new CDATA(objectLockToken.getOwnerInfo()));
                }
            }
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

    }
   
    public WeblogEntry(InputStream stream, String urlPrefix) throws JDOMException, IOException {
        SAXBuilder sb = new SAXBuilder();
        Document d = sb.build(stream);
        Element e = d.detachRootElement();
       
        populate(e, urlPrefix);
    }
   
    private void populate(Element e, String urlPrefix) {
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

    }
   
    public UserEntry(InputStream stream, String urlPrefix) throws JDOMException, IOException {
        SAXBuilder sb = new SAXBuilder();
        Document d = sb.build(stream);
        Element e = d.detachRootElement();
       
        populate(e, urlPrefix);
    }
   
    private void populate(Element e, String urlPrefix) {
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

    }
   
    public MemberEntry(InputStream stream, String urlPrefix) throws JDOMException, IOException {
        SAXBuilder sb = new SAXBuilder();
        Document d = sb.build(stream);
        Element e = d.detachRootElement();
       
        populate(e, urlPrefix);
    }
   
    private void populate(Element e, String urlPrefix) {
View Full Code Here

Examples of org.jdom.Document.detachRootElement()

          try {
            NetcdfDatasetInfo ncDI = new NetcdfDatasetInfo("thredds:"+ds.getCatalogUrl());
            log.info("Coordinate systems builder is "+ncDI.getConventionUsed());
            if (!ncDI.getConventionUsed().equals("None")) {
              Document doc = ncDI.makeDocument();
              Element coords = doc.detachRootElement();
              log.info("Coordinate systems of dataset are: \n"+Xml.getString(coords));
              setCoordsStyleSheet(isCollection);
              addKeywordsAndDataParams(coords, md);
              foundNetcdfInfo = true;
            } else {
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.