FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Problem creating XML file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Problem creating XML file [message #179560 is a reply to message #179558] Wed, 07 November 2012 17:41 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How awesome Virtual Sailor 7 is
Next Topic: Order of Echoed HTML Output
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 04:06:23 GMT 2024

Total time taken to generate the page: 0.04497 seconds