ruby: documentation
ruby: define Type.to_xml
fix Type.to_xml