-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
encoding/xml: add support for xml version 1.1 #25755
Comments
What would be required to make this happen? |
@summychou Thanks, noted, but please see https://golang.org/wiki/NoPlusOne . Can you answer the question I asked above? |
@ianlancetaylor https://www.w3.org/TR/xml11/#sec-xml11 |
Is there any alternative to parse a 1.1 XML document? |
Haven't get a change to go through the XML 1.1 spec yet, but the seems to be mainly on extending further Unicode support. "XML 1.1 improves on some of the short comings of XML 1.0, notably recognizing end of line. There currently exists a misalignment between what XML and Unicode defines as end of line, this affects particularly IBM machines, as well as systems communicating with them . XML 1.1 also adds 2 new important characters NEL and a line separator. NEL 0x85 is used to mark the end of line and for completeness 0x2028 is used to mark the separation of line, this is extremely helpful in normalizing linefeed in text which plagues XML 1.0." According to this post: More reading from the official XML spec: |
使用的go 1.17 需要对jenkins的xml进行解析 but Jenkins xml version is 1.1 ?How to deal with? |
不明白为什么提了问题你们给关了?倒是给个解决的方案啊?说是和这个重复,那这个也都几年了还是没进度!感觉go是只关心核心进展 |
@zhongsdjn This issue tracker is primarily in English. This issue is not closed. But as far as I know nobody is working on it. Go is an open source project. Would you like to send in patches for XML 1.1 support? Thanks. |
Can you show more detail of Jenkins' xml file as an example? |
the error: but jenkins config file both xml 1.1 |
jenkinsci/jenkins#3185 for the record. If you are using some Golang-based tool to manipulate Jenkins XML configurations (which?), pending this fix I suppose it would suffice to start by just stripping out any |
Any update for xml 1.1! |
Change https://go.dev/cl/452235 mentions this issue: |
I also had this problem.
|
We need to support 1.1 |
Hi, this issue is opened from 2018 Any plan for xml 1.1 support ? |
I'm not aware of anybody actively working on this. |
This looks like a sensible compromise. If the user doesn't want strict behavior, they can optionally disable it. |
Any update here? |
What version of Go are you using (
go version
)?go 1.10.2
Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (
go env
)?GOHOSTARCH="amd64"
GOHOSTOS="darwin"
There are any plans to add support for XML version 1.1 in the "encoding/xml" lib?
thanks!
The text was updated successfully, but these errors were encountered: