xml>string ( xml -- string ) - Factor Documentation

xml>string ( xml -- string )
Writing XML



Vocabulary
xml .writer

Inputs
xml a xml


Outputs
string a string


Word description
This converts an XML document xml into a string . It can also be used to convert any piece of XML to a string, eg an xml-chunk or comment .

Notes
This does not preserve what type of quotes were used or what data was omitted from version declaration, as that information isn't present in the XML data representation. The whitespace in the text nodes of the original document is preserved.

See also
write-xml , pprint-xml , pprint-xml>string

Definition
USING: io.streams.string ;

IN: xml.writer

: xml>string ( xml -- string )
[ write-xml ] with-string-writer ;

AltStyle によって変換されたページ (->オリジナル) /