rexle 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rexle.rb +1 -0
  2. metadata +1 -1
@@ -291,6 +291,7 @@ class Rexle
291
291
  def element(xpath) @doc.element(xpath) end
292
292
  def text(xpath) @doc.text(xpath) end
293
293
  def root() @doc end
294
+ def write() "<?xml version='1.0' encoding='UTF-8'?>\n" + xml end
294
295
  def xml()
295
296
  body = scan_print(self.root.children).join
296
297
  "<%s>%s</%s>" % [self.root.name, body, self.root.name]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors: []
7
7