xml parsing error with cElementTree in python



I have been writing XML files with cElementTree and when I go to use .parse(file) I get an error that says this:



xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 15


The XML file:



<material Date Created="1/23/2015 at 14:59:10 in Mountain Standard Time" Material Name="Material" Render Engine="CYCLES">
<main>
<node0 inputs="" label="" location="<Vector (-114.1876, 479.6438)>" name="Texture Coordinate" node_specific="['from_dupli', False]" outputs="" type="TEX_COORD" />
<node0 inputs="" label="" location="<Vector (87.1538, 383.3991)>" name="Attribute" node_specific="['attribute_name', '']" outputs="" type="ATTRIBUTE" />
<node0 inputs="" label="" location="<Vector (-38.2097, 246.6303)>" name="RGB" node_specific="" outputs="[0, (0.5, 0.5, 0.5, 1.0)]" type="RGB" />
</main>
</material>


I don't see why it can't parse a file that it created.


No comments:

Post a Comment