01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.config.schema.migrate;
06:
07: import org.apache.xmlbeans.XmlOptions;
08:
09: public abstract class BaseConfigUpdate implements ConfigUpdate {
10:
11: public XmlOptions createDefaultXmlOptions() {
12: XmlOptions opts = new XmlOptions();
13: opts.setLoadLineNumbers();
14: opts.setValidateOnSet();
15: opts.setSavePrettyPrint();
16: opts.setSavePrettyPrintIndent(3);
17: opts.remove(XmlOptions.LOAD_STRIP_WHITESPACE);
18: opts.remove(XmlOptions.LOAD_STRIP_COMMENTS);
19: return opts;
20: }
21: }
|