add xml format support