« Return to Thread: writing to XML

Re: writing to XML

by James Fuller-4 :: Rate this Message:

Reply to Author | View in Thread

On Thu, May 1, 2008 at 4:01 PM, Guy Catz <Guy.catz@...> wrote:
> Thanks guys, that's very helpful.
>
>  But, once I've used echoxml to write into a file, can I use it again to
>  add more values, in append mode?

yes but an xml file with no root parent is invalid xml ;)

e.g. if u just append an xml element

<someelement/>
<someelement/>
<someelement/>
<someelement/>
<someelement/>
<someelement/>

the above would not be valid xml

<somerootelement>
<someelement/>
<someelement/>
<someelement/>
<someelement/>
<someelement/>
</somerootelement>

is valid xml

>  I need to add values to my XML file in different tasks, not in one
>  place.

perhaps you just want to define a template xml with tokens that you replace ?

hth, Jim Fuller

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: writing to XML