I would like to create XML that starts with:
<?xml version = "1.0" encoding = "UTF-8" standalone ="no"?>
But I cannot find how to add the " standalone " parameter in the Nokogiri documentation.
My code looks like this:
builder = Nokogiri::XML::Builder.new(:encoding => 'UTF-8', :standalone => 'no') do |xml|
But that fails when Nokigiri finds :standalone . Works :encoding .
source share