Yes, it is as simple as the example above. Only one level under the root,
one attribute called "id" and there can only be one of each id in the
resulting structure. I guess it doesn't get anymore straightforward than
what I have so far.
On 12/16/06, Lachlan Cotter <[EMAIL PROTECTED]> wrote:
Hi Collin,
Is your data always a flat list of string values? or does it have 'depth'?
Because if so, you might need to change how you examine your data.
Cheers,
Lach
On 17/12/2006, at 6:13 AM, Collin Peters wrote:
By merge I mean that this XML
<root>
<node id=1>value1</node>
<node id=2>value2</node>
</root>
and this XML:
<root>
<node id=2>value2</node>
<node id=3>value3</node>
</root>
would become this XML:
<root>
<node id=1>value1</node>
<node id=2>value2</node>
<node id=3>value3</node>
</root>
I am current doing this which seems to work well. I don't think there
will be anything more efficient
for each ( var x:XML in _xml.key ) {
if(!_mainXML.contains(x))
_mainXML.appendChild(x);
}
--
Collin Peters
Lead Software Developer