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
Hi @Empact, I want to generate xml from ruby object without indentation('\n'), but I could not find any option.
book = Book.new book.isbn = "0201710897" book.title = "The PickAxe" book.description = "Best Ruby book out there!" book.author = "David Thomas, Andrew Hunt, Dave Thomas" doc = Nokogiri::XML::Document.new doc.root = book.to_xml
Is there a way I can remove indentation as below in ROXML as similar to to_xml in ActiveSupport : doc.root = book.to_xml(:indent =>0)
doc.root = book.to_xml(:indent =>0)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi @Empact,
I want to generate xml from ruby object without indentation('\n'), but I could not find any option.
Is there a way I can remove indentation as below in ROXML as similar to to_xml in ActiveSupport :
doc.root = book.to_xml(:indent =>0)
The text was updated successfully, but these errors were encountered: