KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
xml-builder
★ 8
Open GitHub ↗
Simplest XML builder for Kotlin
Download README (.md)
Explore Similar Repositories
ctfd-timed-releases-plugin
:
Plugin for CTFd which allows releasing challenges on a schedule
orgmode_capture_from_draftsapp
:
Capture text from Drafts app into Org-mode.
metamap-ios-sdk
:
Metamap iOS SDK https://www.getmati.com
IoT_Express_CloudFirestore_Heroku
:
An IoT Express.js app to POST/GET data to/from Firebase Cloud Firestore, deployed on Heroku
uq
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
xml-builder
?
Download (.md)
# Kotlin XML builder Simplest XML builder for Kotlin ```kotlin val xmlString = tag("html") { tag("head") { tag("title", "Is XML?") } tag("body") { tag("h1", "Hello world!") tag("p") { tag("a", "Kotlin") { attr("href", "https://kotlinlang.org") attr("target", "_blank") } } tag("p") { tag("img") { attr("src", "kotlin.png") } } } }.render() ``` Will be: ```xml <?xml version="1.0" encoding="UTF-8"?> <html> <head> <title>Is XML?</title> </head> <body> <h1>Hello world!</h1> <p> <a href="https://kotlinlang.org" target="_blank">Kotlin</a> </p> <p> <img src="kotlin.png"/> </p> </body> </html> ```