Examples of loadDocument()


Examples of xbird.xquery.dm.instance.DocumentTableModel.loadDocument()

                            String name = list.item(i).getTextContent();
                            DTMDocument testDataDoc = _docCache.get(name);
                            if(testDataDoc == null) {
                                File testDataFile = new File(xqtsDir, name + ".xml");
                                DocumentTableModel dtm = new DocumentTableModel(false);
                                dtm.loadDocument(new FileInputStream(testDataFile));
                                testDataDoc = dtm.documentNode();
                                _docCache.put(testDataId, testDataDoc);
                            }
                            // import namespace decl
                            Map<String, String> nsmap = testDataDoc.documentTable().getDeclaredNamespaces();
View Full Code Here

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

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

                    } 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

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

                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.