Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/radare/v-toxml

V library to serialize XML documents
https://github.com/radare/v-toxml

Last synced: 9 days ago
JSON representation

V library to serialize XML documents

Awesome Lists containing this project

README

        

XML Serialization library for V
===============================

![CI](https://github.com/radare/v-toxml/workflows/CI/badge.svg)

Usage example:

```go
import toxml

fn 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


```