This low level method imports a collection from an XML Node that follows a specific collection schema.
<?xml version="1.0"?> <xdoc> <class type="O" class="Empty"> <addresses type="O" class="Collection"> <count>2</count> <keysort>0</keysort> <items> <item key="address1" type="O" class="Address"> <caddress>400 Hexham</caddress> <cname>Markus Egger</cname> </item> <item key="address2" type="O" class="Address"> <caddress></caddress> <cname></cname> </item> </items> </addresses> <objecttype>CollectionTest</objecttype> </class> </xdoc>
The import supports only simple types (can be mixed) or a single object type which must be provided by the first item in the collection passed to import to.
o.ParseXMLToCollection(loXmlNode,loCollection)
Return Value
.t. or .f.
Parameters
loXmlNode
The XML node where the collection starts.
loCollection
The collection to import to. This collection should either be empty in the case of simple types, or contain exactly 1 item that holds the object of the same type that is to be imported. Objects of different types are not supported on import.
See also:
Class wwXML© West Wind Technologies, 2023 • Updated: 04/15/03
Comment or report problem with topic