Problem with SimpleXML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I have XML and I would like to set some values. I almost done the whole thing but have some problems when looping through some tags

<foo>
  <bar id="1" name="bar1" />
  <bar id="2" name="bar2" />
  ...
</foo>

I would like to set value for tag "bar" in some loop and then export this back to XML. Is this even possible or it's better to use SimpleXML only for read and create new XML from it.

XML is about 20 rows of data and I'm using PHP 5.0.4 with all XML included.

regards

Uros

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux