XMLBuilder: Throw descriptive error if trying to parse unknown node
small performance improvements