FAQ
Hi all,

  i am trying ot unmarshal simple Xml file to a struct and appears to be
failing if i have "" character as node value.

Sample >> http://play.golang.org/p/waNn_1NpD1


if i read the Xml from file then i get runtime error.
if i read the Xml as string then i am not getting the transformed xml
Value.


any thoughts.

thanks


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

  • Alex Skinner at Feb 9, 2015 at 11:17 pm
    31 decimal (1F hex) is not a valid xml character. XML spec lists allowed
    characters -

    #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF

    If you grab the error from the Unmarshal call, it tells you specifically
    which character is causing trouble.

    Alex

    On Monday, February 9, 2015 at 4:04:09 PM UTC-5, Sadhasivam Jayabalaganesan
    wrote:
    Hi all,

    i am trying ot unmarshal simple Xml file to a struct and appears to be
    failing if i have "" character as node value.

    Sample >> http://play.golang.org/p/waNn_1NpD1


    if i read the Xml from file then i get runtime error.
    if i read the Xml as string then i am not getting the transformed xml
    Value.


    any thoughts.

    thanks

    --
    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.
  • Sadhasivam Jayabalaganesan at Feb 10, 2015 at 2:13 am
    Thanks Alex. its my bad. thanks again.
    On Monday, February 9, 2015 at 6:17:46 PM UTC-5, Alex Skinner wrote:

    31 decimal (1F hex) is not a valid xml character. XML spec lists allowed
    characters -

    #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF

    If you grab the error from the Unmarshal call, it tells you specifically
    which character is causing trouble.

    Alex

    On Monday, February 9, 2015 at 4:04:09 PM UTC-5, Sadhasivam
    Jayabalaganesan wrote:
    Hi all,

    i am trying ot unmarshal simple Xml file to a struct and appears to be
    failing if i have "" character as node value.

    Sample >> http://play.golang.org/p/waNn_1NpD1


    if i read the Xml from file then i get runtime error.
    if i read the Xml as string then i am not getting the transformed xml
    Value.


    any thoughts.

    thanks

    --
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 9, '15 at 9:04p
activeFeb 10, '15 at 2:13a
posts3
users2
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase