求助xmGraph里xml的格式怎么写
刚接触mxGraph,里面的方法很多都不会用
为什么这么写xml里的信息读取不出来?
还有mxGraph的xml文件应该怎么写?格式是什么?
mxGraph
xml
------解决方案--------------------<mxGraphModel>
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" customId="2" value="<img src="editors/images/overlays/user3.png"><br><b>Last, First</b><br>Status<br>Info" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="80" height="70" as="geometry"/>
</mxCell>
<mxCell id="3" customId="3" value="<img src="editors/images/overlays/error.png"><br><b>Errorcode</b><br>Status<br>Info" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="80" height="70" as="geometry"/>
</mxCell>
<mxCell id="4" customId="4" value="<img src="editors/images/overlays/flash.png"><br><b>Warning</b><br>Status<br>Info" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="120" height="70" as="geometry"/>
</mxCell>
<mxCell id="5" customId="5" value="<img src="editors/images/overlays/users3.png"><br><b>Groupname</b><br>Status<br>Info" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="80" height="70" as="geometry"/>
</mxCell>
<mxCell id="6" customId="6" value="<img src="editors/images/overlays/workplace.png"><br><b>Workplace</b><br>Status<br>Info" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="80" height="70" as="geometry"/>
</mxCell>
<mxCell id="7" customId="6" value="<img src="editors/images/overlays/information.png"><br><b>Information</b><br>Status<br>Info" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="80" height="70" as="geometry"/>
</mxCell>
<mxCell id="8" customId="7" value="<img src="editors/images/overlays/printer.png"><br><b>Printername</b><br>Status<br>Info" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="120" height="70" as="geometry"/>
&