Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
68982 | Oct 8,2007 12:49 PM UTC | Nov 24,2007 03:15 AM UTC | WinForms | 2 |
![]() |
Tags: Diagram |
XmlTextWriter textWriter = new XmlTextWriter("..\\..\\myXmFile.xml", Encoding.Unicode);
foreach (INode node in this.diagram.Model.Nodes)
{
if (node is RoundRect)
{
RoundRect rect = node as RoundRect;
textWriter.WriteStartElement("Employees");
textWriter.WriteStartElement("Name");
textWriter.WriteString(rect.Labels[0].Text);
textWriter.WriteEndElement();
textWriter.WriteStartElement("EmployeeID");
textWriter.WriteString(rect.Labels[1].Text);
textWriter.WriteEndElement();
textWriter.WriteEndElement();
}
}
textWriter.Close();
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
or the page will be automatically redirected to sign-in page in 10 seconds.