<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Xml to json lopy4]]></title><description><![CDATA[<p dir="auto">I need to obtain the values of the fields in an xml, for this I have thought of transforming it into a JSON using these links:</p>
<p dir="auto"><a href="https://github.com/ThunderEX/uxml2dict/blob/master/uxml2dict.py" target="_blank" rel="noopener noreferrer nofollow">https://github.com/ThunderEX/uxml2dict/blob/master/uxml2dict.py</a><br />
<a href="https://github.com/micropython/micropython-lib/blob/master/xmltok/xmltok.py" target="_blank" rel="noopener noreferrer nofollow">https://github.com/micropython/micropython-lib/blob/master/xmltok/xmltok.py</a></p>
<p dir="auto">I first get an error in uxml2dict that does not allow me to use append but I transform it into a list and it would work. After that a runtimerror appears that I don't understand. Would anyone know how to work with xml?</p>
]]></description><link>https://forum.pycom.io/topic/6797/xml-to-json-lopy4</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 14:48:24 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/6797.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Feb 2021 12:04:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Xml to json lopy4 on Mon, 01 Feb 2021 12:04:21 GMT]]></title><description><![CDATA[<p dir="auto">I need to obtain the values of the fields in an xml, for this I have thought of transforming it into a JSON using these links:</p>
<p dir="auto"><a href="https://github.com/ThunderEX/uxml2dict/blob/master/uxml2dict.py" target="_blank" rel="noopener noreferrer nofollow">https://github.com/ThunderEX/uxml2dict/blob/master/uxml2dict.py</a><br />
<a href="https://github.com/micropython/micropython-lib/blob/master/xmltok/xmltok.py" target="_blank" rel="noopener noreferrer nofollow">https://github.com/micropython/micropython-lib/blob/master/xmltok/xmltok.py</a></p>
<p dir="auto">I first get an error in uxml2dict that does not allow me to use append but I transform it into a list and it would work. After that a runtimerror appears that I don't understand. Would anyone know how to work with xml?</p>
]]></description><link>https://forum.pycom.io/post/36872</link><guid isPermaLink="true">https://forum.pycom.io/post/36872</guid><dc:creator><![CDATA[jose mercader]]></dc:creator><pubDate>Mon, 01 Feb 2021 12:04:21 GMT</pubDate></item><item><title><![CDATA[Reply to Xml to json lopy4 on Mon, 01 Feb 2021 13:11:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/7772">@jose-mercader</a> it would probably help a lot if you provided the XML you are trying to parse, the error you get, and the code you use.</p>
<p dir="auto">Please don’t forget to format them as code using the <code>&lt;/&gt;</code> icon in the toolbar.</p>
]]></description><link>https://forum.pycom.io/post/36878</link><guid isPermaLink="true">https://forum.pycom.io/post/36878</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Mon, 01 Feb 2021 13:11:25 GMT</pubDate></item></channel></rss>