Closed selaromi closed 9 years ago
Oh, I forgot, the XML received is from an external provider, and I can't make them change the format of the file for us.
Thank you very much!
Crack is pretty old and inflexible. If you need custom things, you are probably better off with nokogiri or another xml parser. Sorry I don't have good news!
Hello. When parsing this xml:
I'm getting an array of Stat with only the values of the nodes:
And actually the Type is a value I want to retain. I have found a way to fix it, by wrapping the Stat value with like this:
But that means passing through the whole XML twice, And I wanted to ask if there was a better way to do it.
Excellent library, BTW :+1: