Re: [go-nuts] xml namespaces - encoding ok, decoding result not ok

2017-08-02 Thread Marcin Jurczuk
10:48:23AM -0700, Marcin Jurczuk wrote: > > > Your example is returning xml that is wrong from system I'm talking to. > > My SOAP service requires tags in few different namespaces. > > My code returns: > > > > * * > > > > Your code returns:

Re: [go-nuts] xml namespaces - encoding ok, decoding result not ok

2017-08-01 Thread Marcin Jurczuk
ciated tag of the form >"name" or "namespace-URL name", the XML element must have >the given name (and, optionally, name space) or else Unmarshal >returns an error. > > > On 1 August 2017 at 15:39, Marcin Jurczuk > > wrote: > > Hi goph

[go-nuts] xml namespaces - encoding ok, decoding result not ok

2017-08-01 Thread Marcin Jurczuk
Hi gophers, I stuck with something that supposed to be easy - XML decoding. Encoding works perfeclty. I'm trying for past two days to find working code for parsing SOAP message. I have structures that are encoded correctly but decoding responses (same structure, just filled with values) is faili

[go-nuts] Help with mapping XML to struct

2017-07-14 Thread Marcin Jurczuk
Hi, I'm stuck at problem how to map XML into Go struct. Most of examples are for xml where you are not storing information in attributes. My have all a lot of data in attrs Example XML: DEVMEMORYINFO 10.1.1.10 1 Any help how should look struct tha

[go-nuts] Re: json package error ?

2016-10-05 Thread Marcin Jurczuk
d to > "\u0026" for the same reason. This escaping can be disabled using an > Encoder with DisableHTMLEscaping. > > Marcin Jurczuk於 2016年10月3日星期一 UTC+8下午5時16分30秒寫道: >> >> Hi, >> >> I hit some issue with son.Marshal string parsing and I don

Re: [go-nuts] json package error ?

2016-10-03 Thread Marcin Jurczuk
dniu poniedziałek, 3 października 2016 13:07:32 UTC+2 użytkownik Konstantin Khomoutov napisał: > > On Mon, 3 Oct 2016 03:35:15 -0700 (PDT) > Marcin Jurczuk > wrote: > > > > > I hit some issue with son.Marshal string parsing and I don't know &

Re: [go-nuts] json package error ?

2016-10-03 Thread Marcin Jurczuk
to handle such "protection". Does it mean I have to write some regex parser and call it every time I'm getting data from JSON to bypass this ? W dniu poniedziałek, 3 października 2016 12:12:05 UTC+2 użytkownik ehedgehog napisał: > > On 3 October 2016 at 10:16, Marcin Jurczuk &g

[go-nuts] json package error ?

2016-10-03 Thread Marcin Jurczuk
Hi, I hit some issue with son.Marshal string parsing and I don't know is it package error or "this is not a bug - it's a feature". Here is code that doesn't work like expected: https://play.golang.org/p/vAOhLCtoSh Why I'm getting \u003c\u003 instead of << when printing printing out json ?? --