Companion

object Companion

XmlBuilder 工厂方法集合 @since Api 2

Functions

Link copied to clipboard
fun xml(root: String, vararg attrs: Attribute = emptyArray(), builder: XmlBuilder.ElementBuilder.() -> Any? = null): Document

创建一个无命名空间的XML文档

fun xml(root: String, xmlns: String, vararg attrs: Attribute = emptyArray(), builder: XmlBuilder.ElementBuilder.() -> Any? = null): Document

创建一个带命名空间的XML文档