ElementTree xmlns:xsi question
- From: "Craig" <craigtw.online@xxxxxxxxx>
- Date: 28 Nov 2006 16:07:25 -0800
Hi there,
I'm generating an XML script using ElementTree which has the following
attributes in the root element:
<CANmessages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="code/can.xsd">
My python script I have written is:
root = Element("CANmessages",
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance",
xsi:noNamespaceSchemaLocation="code/can.xsd")
Obviously there is a syntax error inregard to the colons in the
attribute names. I have to have the xsi attributes in there otherwise
the XML won't work correctly. What can I do to make the code correct
and the output being 100% correct as well. Any help would be greatly
appreciated.
Craig
.
- Prev by Date: Re: Wrapping A Shell
- Previous by thread: Re: ANN: CherryPy 3.0 RC1
- Index(es):