Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Applications that read XML files?

From: "mlt" <asdf@---.--->
To: NULL
Date: 4/9/2009 2:29:00 PM
Forgot to mention that I use Windows Vista.


"Richard Tobin" <richard@c...> wrote in message 
news:grkmt1$2eiu$2@p......
> In article <49ddd9dc$0$90276$14726298@n...>,
> mlt <asdf@a...> wrote:
>>Are there any applications that reads an XML file and let the user specify
>>(using eg. XPath) how the output should be generated and writes this to 
>>eg.
>>a text file?
>
> LT-XML 2 (http://www.ltg.ed.ac.uk/software/ltxml2) includes lxprintf
> which can be used for simple tasks of this kind.  Here's an example
> from the manual page:
>
>       <products>
>         <product price="3">Chicken</product>
>         <product price="11.50">Lobster</product>
>         <product price=".20">Apple</product>
>         <product price="1.09">Milk (2 litres)</product>
>       </products>
>
>       lxprintf -e product "%-20s $%5.2f\n" . @price <prices.xml
>
>              Print a list of products and their prices. The product name 
> will
>              be padded to appear at the left of a 20-character field, and 
> the
>              price  will  be  padded  to appear at the right of a 
> 5-character
>              field. The output is:
>
>              Chicken              $ 3.00
>              Lobster              $11.50
>              Apple                $ 0.20
>              Milk (2 litres)      $ 1.09
>
> -- Richard
> -- 
> Please remember to mention me / in tapes you leave behind. 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent