The result of xmlDoc.xmlNodes is inconsistent between ACF and Railo.
ACF returns all the element nodes as well as all the text nodes, Railo only returns element nodes. This is unhelpful as you can already use xmlChildren to get the element nodes so it makes sense that xmlNodes would return text and element nodes.
Here is example code that results in different outputs on ACF 10 and Railo 4.1.2.005:
this is a test
In Railo the text node 'this is a test' is never dumped.
Looking through the source the issue seems to be with XMLUtil.childNodesLength()
This takes a type as the second parament so either returns the text nodes or element nodes not both.