Printer

haxe.xml.Printer (Class)

This class provides utility methods to convert Xml instances to String representation.

Static Members

print(xml: Xml, ?pretty: Bool = false): String

Convert Xml to string representation.

Set pretty to true to prettify the result.

Name Type Default
xml Xml
pretty Bool false
Returns
String

Private Members

output: StringBuf

pretty: Bool

writeNode(value: Xml, tabs: String): Void
Name Type
value Xml
tabs String

write(input: String): Void
Name Type
input String

newline(): Void

hasChildren(value: Xml): Bool
Name Type
value Xml
Returns
Bool

new(pretty: Bool): Void
Name Type
pretty Bool