Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-304

getChildNodes not giving the correct info

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Incomplete
    • 1.6.0
    • None
    • None
    • Operating System: Other
      Platform: PC
    • 5749

    Description

      Suppose node is of type DOM_Node, then the method

      DOM_Node firstChild = node.getChildNodes().item(0);

      return a node whose type is 'text' whereas it is actually a DOM_Element. I get
      the same behavior if I use the call node.getFirstChild().
      Also, if I do the following -
      DOM_NodeList list = nodel.getChildNodes();
      the number of elements in 'list' is not correct.

      However, I get the correct node information if I use the call
      DOM_Node firstChild = node.getElementbyTagName("TagName").item(0);

      Attachments

        Activity

          People

            Unassigned Unassigned
            lavina_n@yahoo.com lavina
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: