Nice bit of code to format an xml string

前端 未结 5 1106
轮回少年
轮回少年 2021-02-05 12:55

Anyone got a ready made function that will take an XML string and return a correctly indented string?

eg

A

        
5条回答
  •  醉酒成梦
    2021-02-05 13:18

    The XML Document DOM object build into Delphi has a pretty formatting option. You just load your XML into it and save it back out, and if you have that option set then it makes it all pretty.

    I'll look it up and update this answer.

提交回复
热议问题