From: Snehal N G. <sne...@re...> - 2005-07-26 16:52:02
|
=A0=0AHi,=0A=0AWe have added additional shapes to the Netron Graph Library= , so that they are available in the Automatron application. And a diagram i= n the Automatron application can be saved in an XML format, similar to Grap= hML/NML.=0A=0ACurrently, the XML file looks like this :=0A=0A<FigureName>Co= unter</FigureName>=0A <connector UID=3D"0c58cb91-3571-470e-9ea2-472670= 1fd9eb" />=0A <property Name=3D"StartValue">0</property>=0A <prop= erty Name=3D"EndValue">100</property>=0A <property Name=3D"ArraySize">= 1</property>=0A <property Name=3D"DrawImage">False</property>=0A=0Awhe= re the shape is 'Counter' and the 'Name' specifies the properties of the sh= ape and the value of that property appears as text.=0A=0AI want the propert= y name to appear as an XML tag,like,=0A=0A<StartValue>0</StartValue>=0A<End= Value>100</EndValue>=0A<ArraySize>1</ArraySize>=0A<DrawImage>False</DrawIma= ge>=0A=0AIn the DataType.cs file, I cna specify the XmlElement name just ab= ove the 'Name' property. But this name is fixed.=0A[XmlElement (ElementName= =3D "Name")]=0AIs there any way that I can assign a variable to this Eleme= ntName?=0AOr any other way that I can make the property name appear as an E= lement?=0A=0AIf someone could please help me with this, I would really appr= eciate it.=0A=0AThanks,=0ASnehal.=0A |