We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example code:
#! /usr/bin/env ruby require "rubygems" require "nokogiri" xml = <<-EOXML <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Supplement xsi:type="PerRoomSupplement" suppId="5" suppName="Resort Fee" supptType="8" suppIsMandatory="true" suppChargeType="AtProperty" price="35.00"/> </Body> </Envelope> EOXML doc = Nokogiri::XML xml puts doc puts "---" doc.remove_namespaces! puts doc
output
<?xml version="1.0"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Supplement xsi:type="PerRoomSupplement" suppId="5" suppName="Resort Fee" supptType="8" suppIsMandatory="true" suppChargeType="AtProperty" price="35.00"/> </s:Body> </s:Envelope> --- <?xml version="1.0" standalone="no"?> <Envelope> <Body> <Supplement ����&�:type="PerRoomSupplement" suppId="5" suppName="Resort Fee" supptType="8" suppIsMandatory="true" suppChargeType="AtProperty" price="35.00"/> </Body> </Envelope>
The text was updated successfully, but these errors were encountered:
closed by 8c2a112
Sorry, something went wrong.
https://github.com/tenderlove/nokogiri/commit/8c2a112a27ba4460f4a8b5cb687a2e06ba4fb227
No branches or pull requests
example code:
output
The text was updated successfully, but these errors were encountered: