Title: xml element append or something
PS. I read the doco's but can't get arrayinsert, arrayappend to do what I want it to do.
 
The following works though, but a bit ugly..
 
<cfxml variable="test1">
<logsummary xmlns="http://tempuri.org/logsummary.xsd">
    <error uuid="">
        <diagnostic occured="" firstoccurance="" lastoccurance="" fixedon=""></diagnostic>
        <comment></comment>
        <fix>
  <!-- Any data related to the fix for this error -->
   <location>
    <!-- The current location of the fix, i.e. development|testing|staging|production -->
   </location>
  </fix>
    </error>
</logsummary>
</cfxml>
<cfoutput>
<cfxml variable="test2">
<logsummary xmlns="http://tempuri.org/logsummary.xsd">
    <error uuid="">
        <diagnostic occured="" firstoccurance="" lastoccurance="" fixedon=""></diagnostic>
        <comment></comment>
        <fix>
  <!-- Any data related to the fix for this error -->
   <location>
    <!-- The current location of the fix, i.e. development|testing|staging|production -->
   </location>
  </fix>
    </error>#reReplace(toString(test1.logsummary.error), "<\?.*\?>", "")#
</logsummary>
</cfxml></cfoutput>
-----Original Message-----
From: Taco Fleur
Sent: Wednesday, 23 June 2004 2:02 PM
To: CFAussie Mailing List
Subject: [cfaussie] xml element append or something

Can't seem to figure the following out.

<cfxml variable="test1">
<logsummary xmlns="http://tempuri.org/logsummary.xsd">
    <error uuid="">
        <diagnostic occured="" firstoccurance="" lastoccurance="" fixedon=""></diagnostic>
        <comment></comment>
        <fix>
                <location></location>
        </fix>
    </error>
</logsummary>
</cfxml>

<cfxml variable="test2">
<logsummary xmlns="http://tempuri.org/logsummary.xsd">
    <error uuid="">
        <diagnostic occured="" firstoccurance="" lastoccurance="" fixedon=""></diagnostic>
        <comment></comment>
        <fix>
                <location></location>
        </fix>
    </error>
</logsummary>
</cfxml>

**************
I want to do something like
structInsert(test2.logsummary, "error", test1.logsummary.error);

Or
structAppend(test2.logsummary, test1.logsummary.error);

So I would end up with

<logsummary xmlns="http://tempuri.org/logsummary.xsd">
    <error uuid="">
        <diagnostic occured="" firstoccurance="" lastoccurance="" fixedon=""></diagnostic>
        <comment></comment>
        <fix>
                <location></location>
        </fix>
    </error>
    <error uuid="">
        <diagnostic occured="" firstoccurance="" lastoccurance="" fixedon=""></diagnostic>
        <comment></comment>
        <fix>
                <location></location>
        </fix>
    </error>
</logsummary>

is this possible?

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
Register now for the 3rd National Conference on Tourism Futures, being held in Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
Register now for the 3rd National Conference on Tourism Futures, being held in Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf



Reply via email to