Details

    • Affects:
      Compatibility/Configuration

      Description

      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:

      <cfxml variable="MyDoc">
      <MyDoc>
      this is a test
      <test>test 2</test>
      <myTag>
      <tagTest>tag</tagTest>
      </myTag>
      </MyDoc>
      </cfxml>

      <cfdump var="#MyDoc.Mydoc.xmlNodes#">

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                jbardnz Jarrad Salmon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: