I have xml:

`<name>11 <![CDATA[Arman]]> </name>` 

The fact is that in the name field sometimes there are left characters that I do not need. getting xml I get:

 11 Arman 

And you only need to get the username: Arman

Playground: https://play.golang.org/p/QNR9viUbcFv

  • Those. it is necessary to get values ​​only inside CDATA - Arman Ismailov

1 answer 1

I will answer myself. At the moment in the standard libraries there is no possibility of parsing only the CDATA section. Therefore, everything is done with pens))