⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Get productive with Planio in 10 minutes
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Get productive with Planio in 10 minutes
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
»
SaxonC
Overview
Issues
Calendar
Blog
Forums
Files
Download (379 Bytes)
Bug #6372
» saxonc12xmlparse-test1.py
Martin Honnen
, 2024-03-15 16:14
from
saxonche
import
PySaxonProcessor
,
PySaxonApiError
with
PySaxonProcessor
()
as
saxon_proc
:
print
(
saxon_proc
.
version
)
xml_doc
=
saxon_proc
.
parse_xml
(
xml_file_name
=
'sample1.xml'
)
print
(
xml_doc
)
try
:
xml_doc
=
saxon_proc
.
parse_xml
(
xml_file_name
=
'windows-notepad-ansi-sample1.xml'
)
print
(
xml_doc
)
except
PySaxonApiError
as
e
:
print
(
e
)
« Previous
1
2
3
Next »
(1-1/3)
Loading...