SML saved diagram with

2 posts, 1 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 26 May 2014 Link to this post

    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
  2. Answer
    Martin
    Admin
    Martin avatar
    1101 posts

    Posted 26 May 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top