XML DECODE FILE()

From Lianjapedia
Revision as of 08:42, 23 November 2012 by Lianjasupport (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to create a dynamic array (object) from the contents of an XML formatted file

Syntax

XML_DECODE_FILE(<expC1>,<expC2>,<expC3>)

See Also

ACLASS(), ADDPROPERTY(), AMEMBERS(), COMPOBJ(), CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DODEFAULT(), FOREACH, GETURL(), JSON_DECODE(), JSON_DECODE_FILE(), JSON_ENCODE(), LIST CLASSES, LOADOBJECT(), NEWOBJECT(), OBJECT(), POSTURL(), PRINT_JSON(), PRINT_HTML(), PRINT_R(), PRINT_XML(), REMOVEPROPERTY(), REQUIRE_ONCE(), SAVEOBJECT(), SQL SELECT, WITH

Description

The XML_DECODE_FILE() function is used to create a dynamic array (object) from the contents of an XML formatted file whose filename is specified in <expC1>, tag root in <expC2> and tag row in <expC3>.

Example

filename = geturl("http://www.myserver.com/getsomepage.rsp?name=smith&month=10", 30, array(), "myfilename.xml")
myobject = xml_decode_file(filename, "customers", "customer")