extract xml data and create word document using perl.

hi,
i have large xml file which contains students information, i need to extract student number and some address tags and create a word document for the extracted data. my data looking llike this

<student>
     <number>24</number>
      <education>bachelors</education>
      <specialization>computers </specialization>
    -<address>
      <house_number="128"/>
         <street number="38"/>
          <proddutoor/>
        <address/>
    -<details>
        <name="clar"/>
         <age="20"/>
          <sex="m"/>
        </details>
  </student>............

i need to extract student number and address only , my output look like this

student number: 24
address:  <address>
      <house_number="128"/>
         <street number="38"/>
          <proddutoor/>
        <address/>
student number: 25
address:  <address>
      <house_number="187"/>
         <street number="10"/>
          <proddutoor/>
        <address/>............

after extracting the data i need to create a word document for this extracted data.

The are a number of Perl modules that can do what you want.

For example, you could use XML::Simple to parse your XML file and RTF::Writer to create a Rich Text Document that MS Word can understand.