add xml support

same as html5 version