Sha256: 3319c78f7b24c4fb55068b955707cf311d18e92d6f9fc4ca5b0567707f491f5f

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

#!/usr/bin/ruby
require "#{File.dirname($0)}/../smart"

# No closure, so changes are temporary
doc = XML::Smart.open(File.dirname($0) + "/EXAMPLE.xml")
node = doc.root.find("/test/s:hallo", {"s" => "http://schemas.xmlsoap.org/wsdl/soap/"} ).first

# check
if node.name == "hallo"
  p node.name.name
  p node.name.prefix
  p node.name.namespace
  p node.name.to_s
  p node.name.inspect
  p node.name
end  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-xml-smart-0.1.12.1-i486-linux examples/qname.rb
ruby-xml-smart-0.1.12-i486-linux examples/qname.rb
ruby-xml-smart-0.1.11-i486-linux examples/qname.rb