Example usage for org.dom4j.io OutputFormat setAttributeQuoteCharacter

List of usage examples for org.dom4j.io OutputFormat setAttributeQuoteCharacter

Introduction

In this page you can find the example usage for org.dom4j.io OutputFormat setAttributeQuoteCharacter.

Prototype

public void setAttributeQuoteCharacter(char quoteChar) 

Source Link

Document

Sets the character used to quote attribute values.

Usage

From source file:au.com.acegi.xmlformat.XmlFormatPlugin.java

License:Apache License

private OutputFormat buildFormatter() {
    final OutputFormat fmt = createPrettyPrint();
    fmt.setAttributeQuoteCharacter(attributeQuoteChar);
    fmt.setEncoding(encoding);//from   w  w w  . j  av  a  2  s  . c  o m
    fmt.setExpandEmptyElements(expandEmptyElements);
    fmt.setIndentSize(indentSize);
    fmt.setLineSeparator(determineLineSeparator());
    fmt.setNewLineAfterDeclaration(newLineAfterDeclaration);
    fmt.setNewLineAfterNTags(newLineAfterNTags);
    fmt.setNewlines(newlines);
    fmt.setOmitEncoding(omitEncoding);
    fmt.setPadText(padText);
    fmt.setSuppressDeclaration(suppressDeclaration);
    fmt.setTrimText(trimText);
    fmt.setXHTML(xhtml);
    return fmt;
}