All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.marid.fx.xml.XmlExtensions.kt Maven / Gradle / Ivy

There is a newer version: 0.9.8.10
Show newest version
package org.marid.fx.xml

import org.w3c.dom.Element
import org.w3c.dom.Node

operator fun Element.get(key: String): String = getAttribute(key)
operator fun Element.set(key: String, value: String) = setAttribute(key, value)

fun Node.newChild(tag: String): Element = ownerDocument.createElement(tag)
fun Node.child(tag: String): Element = newChild(tag).also { appendChild(it) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy