Skip to content

Commit 5328ec4

Browse files
committed
DX-2226 Updated XML Declaration
1 parent f13cc36 commit 5328ec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/bandwidth/voice/bxml/verbs/Response.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ private Marshaller getMarshaller() {
121121
}
122122
Marshaller marshaller = jaxbContext.createMarshaller();
123123
// omits <?xml version="1.0" encoding="UTF-8"?>
124+
marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
124125
marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
125126

126127
return marshaller;

0 commit comments

Comments
 (0)