|
e.g. 'saxon' or 'xml' Table of Contents |
News Querying xhtml using XPath and Dom4J: public void testRetrieveCurrentDashboard() throws IOException, [DocumentException], [LoginException] { //GET a proper xhtml document String responseBodyAsString = getMethod.getResponseBodyAsString(); Map<String, String> map = new [HashMap]<String, String>(); Our attempt to find out all the eXist database xqueries that are being used via Spring framework config... xquery version "1.0"; let $doc := doc("beans.... While XQuerying eXist DB collections, We got tripped, fell and finally got up. This does not work (not explicitly saying position()=last()) on collections. The trip-wire was that you get the correct answer on a single document but not on collections.... When I try to maximise the leverage of XML's precision and flexibility, I find that data-encapsulation is what I tend to maximise. Once the documents become encapsulated, the information-content of each XML document increases, the relation-ships are expressed locally, complete-ness emerges and hence I am able to take actions based on the information-content.In several instances the XML documents- especially that 'batch' a bunch of other documents, I see mini-databases being shipped around....
Last changed Nov 21, 2007 10:35 by Arun Batchu
Labels: great, tool, library, xml, swissarmyknife, dom4j Dom4J rocks for XML processing - Close to specification, open source, free, extremely performant and very elegant, intuitive API alongwith freely available documentation of examples as well as usage. And very efficient for parsing gigantic xml documents (how big? how about 450 MB?). There is a slight memory leak when doing XPath expressions that, at this enormous scale,...
Last changed Oct 31, 2007 13:59 by Arun Batchu
I ran into an interesting problem where I wanted to specify a relative file path in a <code>file:</code> scheme (don't ask me why on earth would I want to do that). Here is what worked ( from an answer by ElliotteRustyHarold - a genius). <?xml version="1.0" encoding="UTF-8"?> |
Home
(None)
Add Comment