Did you register in your GoXmlReader the transformer for the element type of your child elements?
yes, I did.
this is the ConsumeChild of my node-element
Well, that certainly looks OK.
Thanks, for trying to help. Actually it was only a really stupid copy-and-paste mistake, so that I used the same TransformerType twice, for the child and the child’s child.
But there is still a problem. For this XML file:
Are you saying that the Allocate method for the “content” element type transformer is only called once?
At the moment I am not totally sure about that and just now I can’t reproduce it. What I know for sure is, that ConsumeChild is called once for the node transformer and twice for the content transformer. In both cases the value of small is false.
So I examined a little bit more, what happens.
We’ll investigate this. Try setting GoXmlReader.UseDOM to true.
Thanks a lot for your help. That helped - also to solve my next problem ;-)
Yes, there’s a bug doing the XML parsing when there are nested elements and when using an XmlTextReader instead of using XML DOM. We’ll fix this for the next release (2.5.3), which should be coming out soon.