ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernst de Haan <ern...@nl.euro.net>
Subject [ANN] dir2xml task
Date Fri, 21 Jun 2002 13:06:08 GMT
Hi,

I've developed a <dir2xml /> task. See http://dir2xml.sourceforge.net/

Example (from the dir2xml build file):

   <dir2xml in="examples/example1.xml"
      out="build/example1.processed.xml"
      encoding="ISO-8859-1"
      newlines="true"
      indent="   "/>

Example input document:

<document>
        <hello>World</hello>
        <text>
                <dir2xml dir="build/src"
                   xmlns="http://dir2xml.sourceforge.net/XMLNS" />
                <dir2xml>This should stay in the output.</dir2xml>
        </text>
</document>

Example output document:

<document>
   <hello>World</hello>
   <text>
      <dir name="src" year="2002" month="5" day="21" hour="11" minute="5" 
second="28">
         <dir name="main" year="2002" month="5" day="21" hour="11" minute="5" 
second="28">
            <dir name="org" year="2002" month="5" day="21" hour="11" 
minute="5" second="28">
               <dir name="znerd" year="2002" month="5" day="21" hour="11" 
minute="5" second="28">
                  <dir name="dir2xml" year="2002" month="5" day="21" hour="11" 
minute="5" second="28">
                     <file name="Processor.java" year="2002" month="5" 
day="21" hour="11" minute="5" second="28" />
                     <file name="ProcessingException.java" year="2002" 
month="5" day="21" hour="11" minute="5" second="28" />
                     <file name="Dir2XML.java" year="2002" month="5" day="21" 
hour="11" minute="5" second="28" />
                     <file name="Main.java" year="2002" month="5" day="21" 
hour="11" minute="5" second="28" />
                  </dir>
               </dir>
            </dir>
         </dir>
      </dir>
      <dir2xml>This should stay in the output.</dir2xml>
   </text>
</document>



-- 
Ernst de Haan
EuroNet Internet B.V.

    "Come to me all who are weary and burdened
        and I will give you rest" -- Jesus Christ

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


Mime
View raw message