             {
                 try
                 {
-                    if (result is Date)
+                    if (result is IXObjHref)
+                    {
+                        result.value = temp;
+                    }
+                    else if (result is Date)
                     {
                         try
                         {

                                {
                                    // ID conflict. Use OLD object!
                                    partObj = existingByID;
                                }
                            }
                            else // node has no ID, so use whatever we get

TODO: explore looking up XMLSchema types using simple parsing ?
*/

import com.adobe.utils.DateUtil;

import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
import flash.xml.XMLDocument;
import flash.xml.XMLNode;
import flash.xml.XMLNodeType;

import mx.collections.ICollectionView;
import mx.collections.IList;
import mx.collections.ListCollectionView;
import mx.rpc.xml.*;
import mx.utils.ObjectProxy;


/**
