Intland's free requirements, development and test management hosting.
This server hosts 100.000+ users on the cloud!
XML XPath provider#4308/v2
more
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: --
Relations
Loading...
Description
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);
        }
Details
Comments & Attachments (0)
Associations (0)
Children (0)
References (0)
SCM Commits (0)
All (0)

with status and due   Customize
Nothing found to display.