Mercurial > hg > mpdl-group
view software/mpdl-services/mpiwg-mpdl-xml/src/de/mpg/mpiwg/berlin/mpdl/xml/test/TestLocal.java @ 18:dc5e9fcb3fdc
Erstellung
author | Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 09 Nov 2011 15:27:46 +0100 |
parents | |
children | e845310098ba |
line wrap: on
line source
package de.mpg.mpiwg.berlin.mpdl.xml.test; import java.net.URL; import de.mpg.mpiwg.berlin.mpdl.exception.ApplicationException; import de.mpg.mpiwg.berlin.mpdl.xml.xquery.XQueryEvaluator; public class TestLocal { private XQueryEvaluator xQueryEvaluator; public TestLocal() { init(); } public static void main(String[] args) throws ApplicationException { try { TestLocal test = new TestLocal(); test.xqueries(); } catch (Exception e) { e.printStackTrace(); } } private void init() { xQueryEvaluator = new XQueryEvaluator(); } private void xqueries() throws ApplicationException { String result = null; try { URL srcUrl = new URL("http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=/tei/en/Test_1789.xml"); result = xQueryEvaluator.evaluateAsString(srcUrl, "declare namespace TEI=\"http://www.tei-c.org/ns/1.0\"; //TEI:s"); String bla = ""; } catch (Exception e) { throw new ApplicationException(e); } } }