anudinaorg / xml-dir-listing

Automatically exported from code.google.com/p/xml-dir-listing
Apache License 2.0
0 stars 0 forks source link

End tags for directory elements not well formed #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This ant task invocation:

  <xml-dir-listing srcDir="../mod" destFile="../work/odslist.xml"
                   includesRegEx=".*\.ods"/>

returns a document that is not XML-well-formed (note the end tags for the 
directory elements):

<?xml version="1.0" encoding="UTF-8"?>
<directory name="mod" size="0" lastModified="1246716495914" 
date="20090704T100815" absolutePath="t:\CraneMakeUBL2genericode\mod" 
sort="name" reverse="false">
   <directory name="common" size="0" lastModified="1246716496044" 
date="20090704T100816" 
absolutePath="t:\CraneMakeUBL2genericode\mod\common">
      <file name="UBL-CommonLibrary-2.0.ods" size="173160" 
lastModified="1246716495974" date="20090704T100815" 
absolutePath="t:\CraneMakeUBL2genericode\mod\common\UBL-CommonLibrary-
2.0.ods"/>
   </>
   <directory name="maindoc" size="0" lastModified="1246716496064" 
date="20090704T100816" 
absolutePath="t:\CraneMakeUBL2genericode\mod\maindoc">
      <file name="UBL-ApplicationResponse-2.0.ods" size="22271" 
lastModified="1246716496004" date="20090704T100816" 
absolutePath="t:\CraneMakeUBL2genericode\mod\maindoc\UBL-
ApplicationResponse-2.0.ods"/>
      <file name="UBL-AttachedDocument-2.0.ods" size="22778" 
lastModified="1246716495914" date="20090704T100815" 
absolutePath="t:\CraneMakeUBL2genericode\mod\maindoc\UBL-AttachedDocument-
2.0.ods"/>
      <file name="UBL-Waybill-2.0.ods" size="22676" 
lastModified="1246716496014" date="20090704T100816" 
absolutePath="t:\CraneMakeUBL2genericode\mod\maindoc\UBL-Waybill-2.0.ods"/>
   </>
</>

The output cannot be input to any XML process, for example, XSLT.

The "</>" sequences should be "</directory>"

This is the version I'm running on XP SP3 2002:

2009-01-29  18:02            15,612 xml-dir-listing.0.2.jar

Original issue reported on code.google.com by g.ken.ho...@gmail.com on 4 Jul 2009 at 2:16