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

encoding/xml: add support for xml version 1.1 #25755

Open
cpanato opened this issue Jun 6, 2018 · 6 comments
Open

encoding/xml: add support for xml version 1.1 #25755

cpanato opened this issue Jun 6, 2018 · 6 comments

Comments

@cpanato
Copy link

@cpanato cpanato commented Jun 6, 2018

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!

@ianlancetaylor ianlancetaylor changed the title add suppport on encoding/xml for xml version 1.1 encoding/xml: add support for xml version 1.1 Jun 6, 2018
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jun 6, 2018

What would be required to make this happen?

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jul 12, 2018

@summychou Thanks, noted, but please see https://golang.org/wiki/NoPlusOne . Can you answer the question I asked above?

@runzexia
Copy link

@runzexia runzexia commented Sep 10, 2018

@iris-garcia
Copy link

@iris-garcia iris-garcia commented Apr 6, 2020

Is there any alternative to parse a 1.1 XML document?

@ohenak
Copy link

@ohenak ohenak commented May 4, 2020

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:
http://echmondprojects.com/general/tutorials/xml/xml_a/whats-in-xml-1-1/

More reading from the official XML spec:
https://www.w3.org/TR/xml11schema10/

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

Successfully merging a pull request may close this issue.

None yet
6 participants
@ohenak @iris-garcia @ianlancetaylor @cpanato @runzexia and others
You can’t perform that action at this time.