xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xerces-j-...@xml.apache.org
Subject [jira] Commented: (XERCESJ-1013) Parsing a document with empty subelements leads to dissection of node children
Date Tue, 28 Sep 2004 15:11:32 GMT
The following comment has been added to this issue:

     Author: Fol De Rol
    Created: Tue, 28 Sep 2004 8:10 AM
       Body:
I am very sorry. I've just written a pure sample that discovered that it is my fault, not
Xerces's.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/XERCESJ-1013?page=comments#action_53467

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-1013

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-1013
    Summary: Parsing a document with empty subelements leads to dissection of node children
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Xerces2-J
 Components: 
             DOM
   Versions:
             2.6.2

   Assignee: 
   Reporter: Fol De Rol

    Created: Tue, 28 Sep 2004 3:02 AM
    Updated: Tue, 28 Sep 2004 8:10 AM
Environment: Cocoon 2.1, Axis 1.1, JDK 1.4.2_03-b02, Windows 2000, Tomcat 4.0.6

Description:
When parsing an XML document with the structure below:

<?xml version="1.0" encoding="ISO-8859-1"?>
<result>
  <element>
    <subelement1>subelement1</subelement1>
    <subelement2>subelement2</subelement2>
    <subelement3/>
  </element>
</result>

and then calling .getDocumentElement().getChildNodes() results in returning the NodeList with
the two elements like these:

1)

<element>
  <subelement1>subelement1</subelement1>
  <subelement2>subelement2</subelement2>
</element>

2)

<element>
  <subelement3/>
</element>



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Mime
View raw message