Reply to Re: simpleXMLelement wrapping a few node in a parent node

Your name:

Reply:


Posted by Andy Hassall on 12/13/06 23:20

On 13 Dec 2006 12:33:03 -0800, "Snaggy" <l.cioria@gmail.com> wrote:

>I have this structure:
>
><node>
> <subnode />
> <subnode />
> <subnode />
> <subnode />
></node>
>
>I want to get this:
>
><node>
> <wrapper>
> <subnode />
> <subnode />
> <subnode />
> <subnode />
> <wrapper>
></node>
>
>How to do it with simpleXMLelement in php 5?

From the looks of the API, you probably want to use the facility to convert to
and from the DOM API, which would let you do this easily enough.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

[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

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