Error: Cannot add element Title number 1 when only 0 such elements exist |
[eluser]danmontgomery[/eluser]
You only ever have one Title element, why are you incrementing $i? Also, $venue['Title'] is a simplexmlelement object, not an array, and you can't access integers as object members, eg: Code: class my_class { You should be using simplexml functions like children(), I believe... Code: $node = $venue['Title']->children(); http://php.net/manual/en/book.simplexml.php |
Messages In This Thread |
Error: Cannot add element Title number 1 when only 0 such elements exist - by El Forum - 09-02-2010, 12:16 PM
Error: Cannot add element Title number 1 when only 0 such elements exist - by El Forum - 09-02-2010, 01:51 PM
Error: Cannot add element Title number 1 when only 0 such elements exist - by El Forum - 09-02-2010, 02:55 PM
|