Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radare/v-toxml
V library to serialize XML documents
https://github.com/radare/v-toxml
Last synced: 4 days ago
JSON representation
V library to serialize XML documents
- Host: GitHub
- URL: https://github.com/radare/v-toxml
- Owner: radare
- License: mit
- Created: 2020-05-08T11:44:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T16:23:02.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T16:25:14.299Z (about 2 months ago)
- Language: V
- Size: 20.5 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-v - v-toxml - XML Serialization library for V. (Applications / Serialization)
README
XML Serialization library for V
===============================![CI](https://github.com/radare/v-toxml/workflows/CI/badge.svg)
Usage example:
```go
import toxmlfn main() {
mc := main_code()
x := toxml.new()
x.prolog('xml', {
'version': '1.0'
'encoding': 'UTF-8'
})
x.open('testsuites', {
'id': '20150612_170402'
'name': 'new-config'
'tests': '1234'
'failures': '1234'
'time': '1234'
})
x.open('testsuite', {
'id': '20150612_170402'
'name': 'new-config'
'time': '1234'
})
x.open('testcase', {
'id': '20150612_170402'
'name': 'new-config'
'time': '1234'
})
x.open('failure', {
'message': 'Warning message here'
'type': 'WARNING'
})
x.body('Warning')
x.close()
x.finish()println(x)
}```
The output for this code is the following:```xml
Warning
```