Package xbird.xquery.misc

Examples of xbird.xquery.misc.DocumentManager.loadDocument()


                    colurl = resolved.toURL();
                } catch (MalformedURLException e) {
                    throw new DynamicError("Invalid uri: " + argStr);
                }
                DocumentManager docmgr = dynEnv.getDocumentManager();
                DTMDocument doc = docmgr.loadDocument(colurl, dynEnv);
                catalog = resolveCatalog(doc, dynEnv);
            } else if(unescapedArg.startsWith("/")) {
                DbCollection coll = DbCollection.getCollection(unescapedArg);
                if(coll == null) {
                    catalog = Collections.emptyMap();
View Full Code Here


                    } catch (MalformedURLException e) {
                        throw new IllegalStateException("/collection/document/text() value is malformed url: "
                                + urlstr);
                    }
                    DocumentManager docman = dynEnv.getDocumentManager();
                    DTMDocument doc = docman.loadDocument(url, dynEnv);
                    map.put(urlstr, doc);
                }
            }
            return map;
        } else {
View Full Code Here

                docurl = resolvedUri.toURL();
            } catch (MalformedURLException e) {
                throw new DynamicError("Malformed URL: " + resolvedUri, e);
            }
            DocumentManager docmgr = dynEnv.getDocumentManager();
            DTMDocument doc = docmgr.loadDocument(docurl, dynEnv);
            return doc;
        }
    }
}
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.