Skip to content

This package provides a Seaside-like, block-based API for XML generation - GemStone port

License

Notifications You must be signed in to change notification settings

GsDevKit/XML-XMLWriter

 
 

Repository files navigation

XML-XMLWriter

Build Status

GemStone port of project.

This package provides a Seaside-like, block-based API for XML generation for Pharo

Installation

Metacello

Metacello new
	baseline: 'XMLWriter';
	repository: 'github://GsDevKit/XML-XMLWriter:gemstone/filetree';
	load.

tODE command line

project install --url=http://gsdevkit.github.io/GsDevKit_home/XMLWriter.ston
project load XMLWriter

Usage

A simple example on how to use the XML writer

|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

<!--A simple XML structure-->
<hello>
    <world/>
</hello>

Check the class XMLWriterTest for many other examples.

LICENSE

MIT License

History

This project was migrated from http://smalltalkhub.com/#!/~PharoExtras/XMLWriter

About

This package provides a Seaside-like, block-based API for XML generation - GemStone port

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Smalltalk 100.0%