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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to