Go: encoding/xml: add support for xml version 1.1

Created on 6 Jun 2018  路  6Comments  路  Source: golang/go

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!

FeatureRequest NeedsInvestigation

Most helpful comment

Is there any alternative to parse a 1.1 XML document?

All 6 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
changes in xml 1.1

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:
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/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jayhuang75 picture jayhuang75  路  3Comments

longzhizhi picture longzhizhi  路  3Comments

Miserlou picture Miserlou  路  3Comments

michaelsafyan picture michaelsafyan  路  3Comments

natefinch picture natefinch  路  3Comments