You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the XML content contains special characters like URL the formatter fails to merge.
Is there a work around for this ?
XmlFormat xmlBinder = new XmlFormat();
xmlBinder.setDefaultCharset(StandardCharsets.UTF_8);
InputStream data = new ByteArrayInputStream(xmlView.getBytes("UTF-8"));
xmlBinder.merge(data, extensionRegistry, builder);
When the XML content contains special characters like URL the formatter fails to merge.
Is there a work around for this ?
XmlFormat xmlBinder = new XmlFormat();
xmlBinder.setDefaultCharset(StandardCharsets.UTF_8);
InputStream data = new ByteArrayInputStream(xmlView.getBytes("UTF-8"));
xmlBinder.merge(data, extensionRegistry, builder);
Input XML:
ltl.upsfreight.com/ProductsAndServices/terminals/index.aspx?qcountry=US&SvcCtrId=FON
1.0
1
Success
The text was updated successfully, but these errors were encountered: