[XML-SIG] 4XPath: parsing Unicode string

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri, 29 Dec 2000 17:26:27 +0100


> I have a problem that I cannot pass a Unicode string containing
> Japanese characters to the 4XPath parser.  Following reproduces
> the problem:

Please have a look at the PyXPath package I've just released. I
noticed that there is still an incompatibility to 4XPath: it only
allows to compile LocationPath expressions, not full expressions.
Putting full Unicode into the expression is no problem, though:

>>> print pyxpath.Compile(u'para[substring-after("2000\u5E7410\u670830\u65E5", "\u6708")]')
<Step at 82ff5dc: child::para[substring-after("2000\u5E7410\u670830\u65E5", "\u6708")]>

If you attempt to use that package in addition to 4XPath, please let me know.

Regards,
Martin