Structures_DataGrid
[ class tree: Structures_DataGrid ] [ index: Structures_DataGrid ] [ all elements ]

Source for file bind-xml1.php

Documentation is available at bind-xml1.php

  1. <?php
  2. $xml = <<<XML
  3. <records>
  4.   <record>
  5.     <firstname>Olivier</firstname>
  6.     <lastname>Guilyardi</lastname>
  7.     <city>Paris</city>
  8.     <country>France</country>
  9.   </record>
  10.   <record>
  11.     <firstname>Mark</firstname>
  12.     <lastname>Wiesemann</lastname>
  13.     <city>Aachen</city>
  14.     <country>Germany</country>
  15.   </record>
  16. </records>
  17. XML;
  18.  
  19. // Options for the bind() call (empty in this example)
  20. $options = array();
  21.  
  22. // Bind the XML string
  23. $test $datagrid->bind($xml$options'XML');
  24.  
  25. // Print binding error if any
  26. if (PEAR::isError($test)) {
  27.     echo $test->getMessage()
  28. }
  29. ?>

Documentation generated on Mon, 11 Mar 2019 15:47:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.