BTW, there’s a good JXON doc on MDN here[1]

Maybe there’s some way to have a dynamic object as a property of XML so all XML 
methods could get proxied to XML.xmlObj?

[1]https://developer.mozilla.org/en-US/docs/JXON

On Nov 12, 2015, at 10:02 PM, Harbs <harbs.li...@gmail.com> wrote:

>> So, given all that, if your XML class is dynamic, and attributes are just
>> added to the instance as properties with the @prefix and child nodes are
>> arrays of the child node name, I think that delete will do the right thing.
> 
> Yes. attributes can be prefixed with “@“, but what about element names which 
> might conflict with function names? For example I could easily see someone 
> have some xml which looks like this:<catalog><name 
> title=“something”/></catalog> “name would then conflict with “name()”.
> 
> I was thinking of having one array of elements and another for properties. 
> Mapping delete to something like that sounds tricky.

Reply via email to