[Twisted-Python] Help using XmlStreamFactory & XmlStream : XPathQuery error?

Jean-Paul Calderone exarkun at divmod.com
Tue Feb 19 08:54:59 EST 2008

On Tue, 19 Feb 2008 12:29:38 +0100, Gabriel Rossetti <mailing_lists at evotex.ch> wrote:
> [snip]
>Ok, I've got some code sort of working, if I use the following XPathQuery 
>string : "/*" on the following XML string :
><?xml version="1.0" encoding="utf-8"?>
><test><feed name="test">toto</feed></test>
>the addObserver works ( xs.addObserver("/*", self.onTest) )
>but if I try the following :
>xs.addObserver("/test/feed/@name", self.onTest)
>xs.addObserver(xpath.XPathQuery("/test/feed/@name"), self.onTest)

I don't think the xpath implementation in xish is complete.  You may
have found a bug or a case it doesn't handle.


More information about the Twisted-Python mailing list