Using multi-line values in a RowX document

Example

require 'rowx'


s =<<EOF
title:zoo
  testing

  fun
desc:dd231
  mixit
  ggtt
------------------
title: random fun
desc: 123 fsdfsd sfds
-------------------
title:super
  #hub
  more testing
desc: cheap talk
EOF

xml = RowX.new(s).to_xml
puts xml


output:

<?xml version='1.0' encoding='UTF-8'?>
<root>
  <summary></summary>
  <item>
    <title>zoo
testing

fun</title>
    <desc>dd231
mixit
ggtt</desc>
  </item>
  <item>
    <title>random fun</title>
    <desc>123 fsdfsd sfds</desc>
  </item>
  <item>
    <title>super
#hub
more testing</title>
    <desc>cheap talk</desc>
  </item>
</root>
Tags:
Source:
1357hrs.txt
Published:
06-10-2013 13:58