XML Helper

From Onix OS Wiki
Jump to: navigation, search

The xmlp() function is used to parse the XML. It is extremely simple to use. Returns the result as a hash.

Definition

xmlp(filename)

This function simply parses XML files and returns you hash or array results. Just give the file name.

Example

def result = (xmlp("test.xml"))
show(result)
# => ...xml content...

In the example, we wanted to parse the test XML file and show us the results according to this language.