Say you have the following XML:

<sol:Root xmlns:sol="http://www.somesite.com/someurl";>
    <sol:Table>
        <sol:Row>
            <sol:ItemNumber>1</sol:ItemNumber>
            <sol:ItemName>MyItem</sol:ItemName>
        </sol:Row>
        <sol:Row>
            <sol:ItemNumber>2</sol:ItemNumber>
            <sol:ItemName>MyOtherItem</sol:ItemName>
        </sol:Row>
    </sol:Table>
</sol:Root>

if I do:

rows:XMLListCollection;
rows = new XMLListCollection(node.*.(localName() == "Row"));

Then the sol namespace gets copied.  However, if I do,

rowCopy:XMLListCollection;
rowcopy = rows.copy();

rowCopy will lose the namespace.  Is that a bug or proper behavior?

Thanks,
Tom

Reply via email to