We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
We recently upgraded from 1.18.1 to 1.18.2 and namespaces in xml are removed during parse.
Document doc = Jsoup.parse(new ByteArrayInputStream("<?xml version=\"1.0\" encoding=\"UTF-8\"?><test1><test xmlns:p1=\"test-namespace\"> </test></test1>".getBytes("UTF-8")), "UTF-8", "", Parser.xmlParser()); doc.outputSettings().charset("UTF-8"); doc.outputSettings().escapeMode(Entities.EscapeMode.xhtml); System.out.println(doc.toString());
The result was
<?xml version="1.0" encoding="UTF-8"?><test1><test xmlns:p1="test-namespace"> </test></test1>
in 1.18.1
But with 1.18.2:
<?xml version="1.0" encoding="UTF-8"?><test1><test> </test></test1>
Is there any configuration to keep the namespaces?
The text was updated successfully, but these errors were encountered:
bf13b49
Thanks for reporting, and sorry about the issue! This is the same as #2235, hitting the digit case.
Sorry, something went wrong.
No branches or pull requests
Hi,
We recently upgraded from 1.18.1 to 1.18.2 and namespaces in xml are removed during parse.
The result was
in 1.18.1
But with 1.18.2:
Is there any configuration to keep the namespaces?
The text was updated successfully, but these errors were encountered: