Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7491
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Problem creating XML file |
| Date | 2012-11-07 17:41 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <k7e6gu$obd$1@dont-email.me> (permalink) |
| References | <8f0cae0e-5acf-4ecb-bc9f-12e663bf4a49@googlegroups.com> <k7dokm$mbd$1@dont-email.me> <846d3b8b-7732-4314-b1c7-45efd8f0b3bc@googlegroups.com> |
On Wed, 07 Nov 2012 08:21:47 -0800, dandi.box wrote:
> Sorry but I don't know what you mean.
>
> Do I've to change only this?
>
> $docAzione->addChild('documento', $row_files{'fm_nomefile'});
>
> with...?
I gave an explanation of the task ("You want to add empty children and
then set the "nome" attributes for each child.") and example of code to
create a xml structure with a root node containing multiple child nodes
with attributes, which seemed to be your requirement.
Perhaps you need to look at the php manual for the functions I used.
http://www.php.net/manual/en/simplexmlelement.construct.php
http://www.php.net/manual/en/simplexmlelement.addchild.php
http://www.php.net/manual/en/simplexmlelement.addattribute.php
(You may want to change the /en/ to your preferred language)
I'm not going to write your code (unless you pay my $$ rate), but I will
point you towards the solution and give examples.
Rgds
Denis McMahon
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problem creating XML file dandi.box@gmail.com - 2012-11-07 04:42 -0800
Re: Problem creating XML file Denis McMahon <denismfmcmahon@gmail.com> - 2012-11-07 13:44 +0000
Re: Problem creating XML file dandi.box@gmail.com - 2012-11-07 08:21 -0800
Re: Problem creating XML file Denis McMahon <denismfmcmahon@gmail.com> - 2012-11-07 17:41 +0000
Re: Problem creating XML file dandi.box@gmail.com - 2012-11-07 14:51 -0800
Re: Problem creating XML file Michael Fesser <netizen@gmx.de> - 2012-11-08 01:50 +0100
csiph-web