How can I force the Author Component to save the XML with zero indent size and not to break the line inside block-level elements?
Usually, in a standalone version of Oxygen XML Editor, the and preferences pages allow you to control the way the XML is saved on the disk after you edit it in the Author mode.
//For not breaking the line //Long line pluginWorkspace.setObjectProperty("editor.line.width", new Integer(100000)); //Do not break before inline elements pluginWorkspace.setObjectProperty("editor.format.indent.inline.elements", false); //For forcing zero indent //Force indent settings to be controlled by us pluginWorkspace.setObjectProperty("editor.detect.indent.on.open", false); //Zero indent size pluginWorkspace.setObjectProperty("editor.indent.size.v9.2", 0);
//For not breaking the line //Long line AuthorComponentFactory.getInstance().setObjectProperty("editor.line.width", new Integer(100000)); //Do not break before inline elements AuthorComponentFactory.getInstance().setObjectProperty("editor.format.indent.inline.elements", false); //For forcing zero indent //Force indent settings to be controlled by us AuthorComponentFactory.getInstance().setObjectProperty("editor.detect.indent.on.open", false); //Zero indent size AuthorComponentFactory.getInstance().setObjectProperty("editor.indent.size.v9.2", 0);