serializer.setOutputProperty(Serializer.Property.BYTE_ORDER_MARK, getOption(_byte_order_mark, false) ? "yes" : "no"); String list = getOption(_cdata_section_elements).getString(); serializer.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, getOption(_doctype_public).getString()); serializer.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, getOption(_doctype_system).getString()); serializer.setOutputProperty(Serializer.Property.ENCODING, getOption(_encoding).getString()); serializer.setOutputProperty(Serializer.Property.ESCAPE_URI_ATTRIBUTES, getOption(_escape_uri_attributes, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INCLUDE_CONTENT_TYPE, getOption(_include_content_type, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INDENT, getOption(_indent, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.MEDIA_TYPE, getOption(_media_type).getString()); serializer.setOutputProperty(Serializer.Property.METHOD, getOption(_method).getString()); serializer.setOutputProperty(Serializer.Property.NORMALIZATION_FORM, getOption(_normalization_form).getString()); serializer.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION, getOption(_omit_xml_declaration, true) ? "yes" : "no"); String standalone = getOption(_standalone).getString(); if ("true".equals(standalone)) { serializer.setOutputProperty(Serializer.Property.STANDALONE, "yes"); serializer.setOutputProperty(Serializer.Property.UNDECLARE_PREFIXES, getOption(_undeclare_prefixes, true) ? "yes" : "no");
serializer.setOutputProperty(Serializer.Property.BYTE_ORDER_MARK, getOption(_byte_order_mark, false) ? "yes" : "no"); String list = getOption(_cdata_section_elements).getString(); serializer.setOutputProperty(Serializer.Property.DOCTYPE_PUBLIC, getOption(_doctype_public).getString()); serializer.setOutputProperty(Serializer.Property.DOCTYPE_SYSTEM, getOption(_doctype_system).getString()); serializer.setOutputProperty(Serializer.Property.ENCODING, getOption(_encoding).getString()); serializer.setOutputProperty(Serializer.Property.ESCAPE_URI_ATTRIBUTES, getOption(_escape_uri_attributes, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INCLUDE_CONTENT_TYPE, getOption(_include_content_type, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.INDENT, getOption(_indent, true) ? "yes" : "no"); serializer.setOutputProperty(Serializer.Property.MEDIA_TYPE, getOption(_media_type).getString()); serializer.setOutputProperty(Serializer.Property.METHOD, getOption(_method).getString()); serializer.setOutputProperty(Serializer.Property.NORMALIZATION_FORM, getOption(_normalization_form).getString()); serializer.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION, getOption(_omit_xml_declaration, true) ? "yes" : "no"); String standalone = getOption(_standalone).getString(); if ("true".equals(standalone)) { serializer.setOutputProperty(Serializer.Property.STANDALONE, "yes"); serializer.setOutputProperty(Serializer.Property.UNDECLARE_PREFIXES, getOption(_undeclare_prefixes, true) ? "yes" : "no");