Hello Adam,
An important aspect of mimicing js is I don't really care about the xml standard; it tries to figure out whatever ugly crap you throw its way and makes a few assumptions for html. But, it can be used for generic xml stuff too.
That can be handy but can also lead to problems. -- ... <IXOYE><
