1. XMLWriter

XMLWriter allows you to generate well-formed XML documents using a nice API based on a canvas and tag brush API.

1.1. Keywords

XML

1.2. Implementation notes

The main entry point is the class XMLWriter.

Here are examples of the API

	| writer |
	writer := XMLWriter new.
	writer tag
		name: 'emptyTag';
		attributeAt: 'a' put: 'one';
		write.        
	| writer |
	writer := XMLWriter new.
	writer
		enablePrettyPrinting;
		xml;
		comment: 'an example'.
	writer tag
		name: 'example:user';
		xmlnsAt: 'example' put: 'urn://example';
		with: [
			writer
				tag: 'username' with: 'jsmith';
				tag: 'real-name' with: 'John Smith';
				tag: 'age' with: '25';
				tag: 'id' with: '101']         

1.3. Main repository

The main repository is: http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main

MCHttpRepository
	location: http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main
	user: ''
	password: ''        

1.4. Main Versions

stable: spec
	<symbolicVersion: #'stable'>

	spec for: #'pharo1.3.x' version: '0.2'.
	spec for: #'pharo1.4.x' version: '0.2'.
	spec for: #'pharo2.x' version: '1.4'.	
	spec for: #'pharo3.x' version: '1.4'.        

1.5. Current loading expressions and dev history

Version 2.2.1 - 2013-07-10Merged fix of Camillo for fileSystem interaction.

	(ConfigurationOfXMLWriter project version: '2.2.1') load        

Version 2.2.0 - Migrated to PharoExtras

	(ConfigurationOfXMLWriter project version: '2.2.0') load        
Version 2.1.0Introduced tests and symbolic configurations

(ConfigurationOfXMLWriter project version: '2.1.0') load
(ConfigurationOfXMLWriter project version: '2.1.0') record loadDirective        

Version 2.0.0After SmalltalkHub Migration and the introduction of configuration in other projects

pre smalltalkhub migration

(ConfigurationOfXMLWriter project version: '1.0.5') load