rewrite xml reader, convert local coordinate