This is a migrated thread and some comments may be shown as answers.

SML saved diagram with

1 Answer 73 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 26 May 2014, 06:24 AM
Hi,

if I save my "RadDiagram", I get a XML-File, which is ok. But is it possible to save the XML-file with line Feeds? We have to Import this
file in a Business Software, and if the string is just one line, it is impossible to read for us?

Thanks
Best Regards
Rene

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 26 May 2014, 03:46 PM
Hello Rene,

You can parse the diagram xaml to XElement and then return the ToString() method of this object. The parsing will set each tag on you line. Here is an example in code:
var xml = // get diagram string
  
XElement doc = XElement.Parse(xml);
var beautifiedXaml = doc.ToString();

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
ITA
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or