rsxml 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +3 -1
- data/VERSION +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
= rsxml
|
2
2
|
|
3
|
-
A Ruby library to translate XML documents into an s-expression representation, and back again, in the style of SXML
|
3
|
+
A Ruby library to translate XML documents into an s-expression representation, and back again, in the style of SXML[http://en.wikipedia.org/wiki/SXML]
|
4
4
|
|
5
5
|
Why would you want to do this ? Well, s-expressions can be == compared natively in Ruby, are easy to read
|
6
6
|
and editors indent them nicely when embedded in code. These features make them very suitable for writing readable
|
7
7
|
XML generation code and readable tests for XML generating code
|
8
8
|
|
9
|
+
Rsxml uses Nokogiri[http://nokogiri.org/] for parsing XML, and Builder[http://builder.rubyforge.org/] to generate it. Rsxml is not intended to be a feature complete XML representation : It does not attempt to represent PIs, CDATA etc, but it does make it very easy to use and generate straightforward XML documents from Ruby
|
10
|
+
|
9
11
|
Rsxml represents XML documents as s-expressions thus :
|
10
12
|
|
11
13
|
["Foo", {"foofoo"=>"10"}, ["Bar", "barbar"], ["Baz"]]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsxml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Trampoline Systems Ltd
|