inline StaxUtil methods