REBOL Programming/parse-xml

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

PARSE-XML code 

DESCRIPTION:[edit]

Parses XML code and returns a tree of blocks.

PARSE-XML is a function value.

ARGUMENTS:[edit]

  • code -- XML code to parse (Type: string)

SOURCE CODE[edit]

parse-xml: func [
    "Parses XML code and returns a tree of blocks." 
    code [string!] "XML code to parse"
][
    xml-language/parse-xml code
]