File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
exist-core/src/main/java/org/exist/client
exist-distribution/src/main/config Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 89
89
import se .softhouse .jargo .ArgumentException ;
90
90
91
91
import static java .nio .charset .StandardCharsets .UTF_8 ;
92
+ import static javax .xml .transform .OutputKeys .OMIT_XML_DECLARATION ;
93
+ import static org .exist .storage .serializers .EXistOutputKeys .OMIT_ORIGINAL_XML_DECLARATION ;
92
94
import static org .exist .storage .serializers .EXistOutputKeys .OUTPUT_DOCTYPE ;
93
95
import static org .xmldb .api .base .ResourceType .XML_RESOURCE ;
94
96
@@ -143,6 +145,8 @@ public class InteractiveClient {
143
145
DEFAULT_PROPERTIES .setProperty (USER , USER_DEFAULT );
144
146
DEFAULT_PROPERTIES .setProperty (EDITOR , EDIT_CMD );
145
147
DEFAULT_PROPERTIES .setProperty (INDENT , "true" );
148
+ DEFAULT_PROPERTIES .setProperty (OMIT_XML_DECLARATION , "no" );
149
+ DEFAULT_PROPERTIES .setProperty (OMIT_ORIGINAL_XML_DECLARATION , "no" );
146
150
DEFAULT_PROPERTIES .setProperty (OUTPUT_DOCTYPE , "true" );
147
151
DEFAULT_PROPERTIES .setProperty (ENCODING , ENCODING_DEFAULT .name ());
148
152
DEFAULT_PROPERTIES .setProperty (COLORS , "false" );
Original file line number Diff line number Diff line change @@ -51,3 +51,7 @@ highlight-matches=none
51
51
52
52
# # output the doctype of documents
53
53
output-doctype =yes
54
+
55
+ # # output the XML Declaration of documents, and then preferably the persisted XML Declaration
56
+ omit-xml-declaration =no
57
+ omit-original-xml-declaration =no
You can’t perform that action at this time.
0 commit comments