Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.googlecode.protobuf.format.XmlFormat merge fails for content with URL #43

Open
Isaac-Kola-Narvar opened this issue Nov 3, 2017 · 0 comments

Comments

@Isaac-Kola-Narvar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant