Reply to Re: Simple xml extension

Your name:

Reply:


Posted by David Gillen on 07/16/07 15:08

frodo2000@gmail.com said:
> On 16 Lip, 11:36, David Gillen <Bel...@RedBrick.DCU.IE> wrote:
>> Hello.
>>
>> I'm looking to create xml like the following
>>
>> <node>
>> <otherNode>foo</otherNode>
>> <otherNode>bar</otherNode>
>> <otherNode>moo</otherNode>
>> </node>
>> via the simple xml interface.
> Try
>
> $node->otherNode = array();
> $node->otherNode[] = foo;
> $node->otherNode[] = bar;
>
This approach didn't work, but threw an error suggesting it may be possible in
the future.

> or use addChild function: http://uk3.php.net/manual/pl/function.simplexml-element-addChild.php
>
This did work. Many thanks.

D.
--
Fermat was right.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация