Intland's free requirements, development and test management hosting.
This server hosts 110,000+ users on the cloud!
XML XPath provider#4308/v2
Tags:  not added yet

XML XPath provider[TSK-4308]

Tracker: Tasks Priority: NormalNormal Owner: ejboy
Assigned to: ejboy Jan 09, 2007 00:05 Submitted by: ejboy Jan 09, 2007 00:05 Status: Closed
Start Date: -- End Date: -- Estimated Hours: 8:00h
Spent Effort: 8:00h % Spent / Plan: 100% Category: --
Severity: --
Add driver with support for XPath queries. For performance reasons manually produce/configure a document builder. Then compile xpath expression and use ex.evaluate(document, XPathConstants.NODESET). The result is a node list (elements, attributes etc.) Example:

 DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
        Document document = db.parse("sandbox/etl.xml");
        XPath xpath = XPathFactory.newInstance().newXPath();
        String expression = "/etl/*";
        NodeList r=null;
        XPathExpression ex = xpath.compile(expression);
        for (int i=0;i<100;i++) {
            r = (NodeList) ex.evaluate(document, XPathConstants.NODESET);
Comments & Attachments (0)
Associations (0)
Children (0)
References (0)
SCM Commits (0)
All (0)

Submitted Comment
Nothing found to display.