Web Dev Module and ElementTree

Hi All,

I’ve been working on a Web Dev module using this sample code:

import xml.etree.ElementTree as ET
#lets assume this is the xml
xml = ‘<?xml version="1.0"?>1’
root = ET.fromstring(xml)

when the program reach line:
root = ET.fromstring(xml)
I will get an HTTP 500 error

But when executing this via script console everything works fine. I don’t know if I’m missing something.

Any thoughts on this?

Thanks :smiley:

I find a work around, instead of using ElementTree I used xml.dom.minidom in handling xml

All is working fine in both Script console and Web Dev Module. :smiley: