Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End tags for directory elements not well formed #5

Open
GoogleCodeExporter opened this issue Apr 7, 2016 · 0 comments
Open

End tags for directory elements not well formed #5

GoogleCodeExporter opened this issue Apr 7, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 4 Jul 2009 at 2:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant