Performance improvement in XML parser

Since we are sure the XML markup is valid (by xmlfsm_skip_node) we can now safely make some assumptions