Menu

#21 GraphXmlRenderer outputs bad XML for inner classes

v0.9.4
open
5
2006-03-01
2006-03-01
No

The GraphXmlRenderer produces invalid XML when the
graph meta-object being rendered wraps a graph that is
an instance of an inner class. For example: even
though the meta-class name is just "TestGraph", the
graph XML renderer uses the full class name when it
writes out the graph tag. This leads to invalid XML
since it contains a nested $:

<org.progeeks.graph.xml.GraphXmlRendererTests$TestGraph
stringProperty="Test" >
<nodes>
<string>NodeB</string>
<string>NodeA</string>
</nodes>
<edges>
<e d="false" o="EdgeA" head="NodeB" tail="NodeA" />
</edges>
</org.progeeks.graph.xml.GraphXmlRendererTests$TestGraph>

Discussion


Log in to post a comment.

MongoDB Logo MongoDB