FAQ
After a number of requests, the github.com/clbanning/mxj package has been
updated with XML-map[string]interface{} decoder and encoder that preserve
the original document structure, including comments, directives, and
process instructions.

When decoding using NewMapXmlSeq()
<https://godoc.org/github.com/clbanning/mxj#NewMapXmlSeq> the resultant
map[string]interface{} value will have a somewhat more complex structure
than when decoded using NewMapXml()
<https://godoc.org/github.com/clbanning/mxj#NewMapXml> due to the inclusion
of meta-keys, such as, "#seq", "#attr","#comment", etc., that are required
for encoding the map[string]interface{} into the original document using
m.XmlSeq() <https://godoc.org/github.com/clbanning/mxj#Map.XmlSeq>.

The xmlseq_test.go file provides a dump of the map; examples/gonuts10.go
and examples/gonuts10seq.go illustrate the result of using the standard
decode/encode vs. the new sequenced decode/encode functions.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedDec 3, '15 at 12:08p
activeDec 3, '15 at 12:08p
posts1
users1
websitegolang.org

1 user in discussion

C Banning: 1 post

People

Translate

site design / logo © 2022 Grokbase