Hi Craig

You need to use the XML DOM functions (see the PHP manual) and it should be
a well formed XML document e.g.

<Document>
<Share>
<symbol>RHAT</symbol>
<price>6.82</price>
<date>3/4/2002</date>
<time>3:59pm</time>
<change>0.32</change>
<change_percent></change_percent>
<open>6.59</open>
<high>6.99</high>
<low>6.53</low>
<volume>932400</volume>
</Share>
</Document>

Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel: 011 2655478
Cell: 082 895 1598


-----Original Message-----
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 8:30 AM
To: php-general-list
Subject: [PHP] data into an array


I'm retrieving data from a service. The data is in the following format.

<symbol>RHAT</symbol>
<price>6.82</price>
<date>3/4/2002</date>
<time>3:59pm</time>
<change>0.32</change>
<change_percent></change_percent>
<open>6.59</open>
<high>6.99</high>
<low>6.53</low>
<volume>932400</volume>

How can I insert the data values into an array?

Thanks

Craig ><>
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to