--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I can't see how this would be possible.  XML is essentially a string.
> When you pass a complex object via xml, you have to serialize it into a
> bunch of metadata that describes the object, so the receiver can
> deserialize it back into an object instance.  Like SOAP.
> 
>  
> 
> What do you need to do?

I'm displaying XML data in a DataGrid, and it would be very convenient
to "annotate" the XML data with some non-XML objects. 

As the XML is retrieved from the network, I'd like attach some non-XML
objects to some XML nodes. Then, when the user, selects a row in the
DataGrid, I could use the objects associated with the appropriate XML
node to handle the item selection.

I know there are many work-arounds doing this, but I was just
wondering if there was a handy way of simply adding properties to the
XML nodes.

A broader issue, I guess, is that XML is a subclass of Object, and I
do not know how to call an operator on the superclass, e.g.,
xml.super.myProperty = p. This doesn't work, obviously. Is there a way
to override the XML object's specialization of the . and [] operators?

Thanks, 

-- Frank


Reply via email to