Added xnode.byId and introduced xnode.extend