Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pharo-contributions/XML-XMLWriter
This package provides a Seaside-like, block-based API for XML generation
https://github.com/pharo-contributions/XML-XMLWriter
Last synced: about 2 months ago
JSON representation
This package provides a Seaside-like, block-based API for XML generation
- Host: GitHub
- URL: https://github.com/pharo-contributions/XML-XMLWriter
- Owner: pharo-contributions
- License: mit
- Created: 2019-10-23T21:08:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T14:14:32.000Z (8 months ago)
- Last Synced: 2024-11-14T11:15:09.948Z (2 months ago)
- Language: Smalltalk
- Homepage:
- Size: 260 KB
- Stars: 4
- Watchers: 7
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pharo - XML-XMLWriter - Block-based API for XML generation for Pharo. (Code generation)
README
# XML-XMLWriter
This package provides a [Seaside](http://www.seaside.st)-like, block-based API for XML generation for [Pharo](http://www.pharo.org)
[![Unit Tests](https://github.com/pharo-contributions/XML-XMLWriter/workflows/Unit%20Tests/badge.svg?branch=master)](https://github.com/pharo-contributions/XML-XMLWriter/actions?query=workflow%3AUnit%20Tests)
[![Coverage Status](https://codecov.io/github/pharo-contributions/XML-XMLWriter/coverage.svg?branch=master)](https://codecov.io/gh/pharo-contributions/XML-XMLWriter/branch/master)[![Pharo 7](https://img.shields.io/badge/Pharo-7.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 8](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 9](https://img.shields.io/badge/Pharo-9.0-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 10](https://img.shields.io/badge/Pharo-10-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 11](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 12](https://img.shields.io/badge/Pharo-12-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo 13](https://img.shields.io/badge/Pharo-13-%23aac9ff.svg)](https://pharo.org/download)## Installation
```smalltalk
Metacello new
baseline: 'XMLWriter';
repository: 'github://pharo-contributions/XML-XMLWriter/src';
load.
```
## UsageA 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
```
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)