Is there an XML parser library for micropython? I would like to parse an XML file in a text file or string. This is for a Pico and I am using Thonny. Thanks.
Asked
Active
Viewed 145 times
1 Answers
1
xmltok is a very simple XML token parser for MicroPython that gives rather crude START_TAG
/ END_TAG
-style event processing. It has a couple of limitations:
it can only read from a file, not from a string returned from (say) a request;
it seems to enjoy returning a
RuntimeError: generator raised StopIteration
more often than I would like.
It is, however, part of the standard micropython-lib library, so it is nominally blessed by the MicroPython developers.

scruss
- 1,030
- 10
- 24