Xml.XMLDoc.FormatXMLData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FormatXMLData(const XMLData: DOMString; Indentation: Integer = 2): DOMString;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall FormatXMLData(const System::UnicodeString XMLData, int Indentation = 0x2);

Properties

Type Visibility Source Unit Parent
function public
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc Xml.XMLDoc

Description

Formats a string of XML so that it is more readable.

Use FormatXMLData to convert a string of XML into a format that represents its structure.

FormatXMLData changes the input string (XMLData) so that each element node appears on its own line, indented appropriately to reflect its nesting in the node hierarchy.

The Indentation parameter specifies the number of spaces used to indent the element nodes. Its default value is 2 spaces.

See Also