Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 490 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 490 Bytes

Python 3 bindings for Saxon using pyJNIus

It loosely mirrors the Saxon API objects but with Python style, starting with the Processor class.

Example:

from saxonius import Processor

p = Processor()
doc = p.document_build('''
<document>
  <node>Hello</node>
  <node>world</node>
</document>
''')
r = p.xquery_compile('/document/node/text()').evaluate(context_item=doc)
print(str(r[0]))