![]() |
Xataface
2.0alpha2
Xataface Application Framework
|
Public Member Functions | |
| Dataface_ImportFilter_xml () | |
| import (&$data) | |
Public Member Functions inherited from Dataface_ImportFilter | |
| Dataface_ImportFilter ($tablename, $name, $label) | |
| import (&$data, $defaultValues=array()) | |
Additional Inherited Members | |
Data Fields inherited from Dataface_ImportFilter | |
| $_table | |
| $label | |
| $name | |
File: Dataface/ImportFiter/xml.php Author: Steve Hannah shannah@sfu.ca Created: December 3, 2005
Import filter that converts xml to Record objects. The XML must be of the form:
<dataface> <Profile> <FirstName>John</FirstName> <LastName>Smith</LastName> <Phone>555-555-5555</Phone> </Profile> <Profile> <FirstName>Julia</FirstName> <LastName>Vaughn</LastName> <Phone>444-444-4444</Phone> </Profile> </dataface>
The above example xml would be converted into an array of 2 Dataface_Record objects for the "Profile" table.
1.8.1.2