class Crul::Formatters::XML::PrettyPrinter
- Crul::Formatters::XML::PrettyPrinter
- Reference
- Object
Defined in:
formatters/xml.crConstructors
Instance Method Summary
-
#valid_xml?
This is a stupid way of doing this, but at some point between Crystal 0.8.0 and 0.10.0 XML::Reader stopped raising exceptions or reporting errors in the way XML.parse does.
Constructor Detail
Instance Method Detail
def valid_xml?
#
This is a stupid way of doing this, but at some point between Crystal 0.8.0 and 0.10.0 XML::Reader stopped raising exceptions or reporting errors in the way XML.parse does. Real solution would be either 1) fix that in Crystal, or 2) make the Printer use XML.parse (not inefficient because it's not doing streaming anyway). But for the time being, this is the smallest change that fixes it