James Strachan wrote:
> Hi Chrisophe
>
> From: "Christophe Ponsard" <[EMAIL PROTECTED]>
> > - XPath support does not seem fully implemented (which I understand
> > perfectly - this is still under development). For example, using
> > multiple
> > wildcards patterns such as: /*/*[@attribute]
>
> I should have a good extensible XPath test harness working shortly which we
> should be able to use in the future for validating the behaviour of the
> XPath engine.
>
> Right now it appears the /* pattern does not work correctly - I'm working on
> it and it should be fixed fairly soon. Until then if you change your path to
> the following it does work:-
>
> /child::node()/child::node()[@attribute]
Great, I tried with child::* but not with child::node() !
an I will check out the latest CVS for your patch.
For now I developed a small XML wrapper class
with the few high-level functionalities I need and have
mapped it to two implementation : dom4j and xalan.
But my API is not very nice -- full static :-(
XML.createDocument()
XML.createDocument(file or reader or URL...)
XML.addElement(Node, tag)
XML.addAttribute(Node, tag,val)
XML.add... (other kind of nodes)
XML.selectNodes(Node,xpath)
XML.selectSingleNode(Node,xpath)
XML.valueOf(Node,xpath)
XML.output(Node,[file,params])
For now I am using the xalan implementation
because of the serialisation issue but I
just saw your latest mail - geee, you're damn
quick ! I'll test it ASAP but for now,
I am off for a few days.
Maybe you would be interested by my demo:
here is a temporary URL:
http://potemkine.info.ucl.ac.be:8080
(hope it works - I developed under win32 but
it is deployed on UNIX)
Regards
Christophe
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-user