<?xml version="1.0"?>
require 'ap' #sudo gem install awesome_printrequire 'nokogiri'
mySoap = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:setupService.webservices"><soapenv:Body><urn:setup><setupActionInput><urn:var1>?</urn:var1><urn:var2>?</urn:var2><urn:var3>?</urn:var3></setupActionInput></urn:setup></soapenv:Body></soapenv:Envelope>'
ap Nokogiri::XML( mySoap )
I'm trying to pretty print a soap body for debugging purposes, and I noticed that nokogiri is automatically inserting:
<?xml version="1.0"?>