This package provides a Seaside-like, block-based API for XML generation
# XML-XMLWriter
This package provides a [Seaside](http://www.seaside.st)-like, block-based API for XML generation for [Pharo](http://www.pharo.org)
[](https://github.com/pharo-contributions/XML-XMLWriter/actions?query=workflow%3AUnit%20Tests)
[](https://codecov.io/gh/pharo-contributions/XML-XMLWriter/branch/master)
[](https://pharo.org/download)
[](https://pharo.org/download)
[](https://pharo.org/download)
[](https://pharo.org/download)
[](https://pharo.org/download)
[](https://pharo.org/download)
[](https://pharo.org/download)
## Installation
```smalltalk
Metacello new
baseline: 'XMLWriter';
repository: 'github://pharo-contributions/XML-XMLWriter/src';
load.
```
## Usage
A simple example on how to use the XML writer
```Smalltalk
|writer|
writer := XMLWriter new.
writer
enablePrettyPrinting;
comment: 'A simple XML structure';
tag: 'hello'
with: [ writer tag: 'world' ].
writer asString
```
results in the following XML output
```XML
<!--A simple XML structure-->
<hello>
<world/>
</hello>
```
Check the class **XMLWriterTest** for many other examples.
## LICENSE
[MIT License](LICENSE)
## History
This project was migrated from [http://smalltalkhub.com/#!/~PharoExtras/XMLWriter](http://smalltalkhub.com/#!/~PharoExtras/XMLWriter)