ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13952] New: - the new XML library mishandles XML includes
Date Thu, 24 Oct 2002 22:08:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13952>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13952

the new XML library mishandles XML includes

           Summary: the new XML library mishandles XML includes
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: gxzuo@yahoo.com


It works fine in older versions.  The problem persists in 1.5.1.

With the following sample XML files:

file1:

   <object_b_property type="objectB">
      &include3;
   </object_b_property>

file2: (defined to be "include3")

   <string_property text="include string 3"/>


The node resolved from "&include3" contains two attributes instead
of just the first one:

   1. name="text" value="include string 3"
   2. name="xml:base" value="file:C:/path_to_the_file2"

Gary


code sample:

NamedNodeMap attributes;
int len = attributes.getLength();
for (int i=0; i<len; ++i) {
   attr = (Attr)attributes.item(i);
   attrName = attr.getName();
   m.put(attrName, attr.getValue());
}

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message