Toby Inkster wrote:
> Roy Schestowitz wrote:
>
>> I have been searching the net, but never managed to find a tool that can
>> convert, in some form or another, an XML file into HTML. I prefer to
>> avoid XSL and just have an XML file easily visualised.
>
> What exactly do you want?
>
> Given this:
>
> <foo x="y">bar</foo>
>
> Would you want it turned into this?
>
> <pre>
> <b><foo <i>x="y"</i>></b>bar<b></foo</b>
> </pre>
>
> (Like syntax highlighting)
>
> Or this:
>
> <div class="foo">bar</div>
>
> (Some sort of transformation.)
Given:
<foo attr='1'>
<kong attr'99>
</kong>
</foo>
I would like, for example, something like:
<ul>
<li>foo 1
<ul>
<li>kong 99</li>
</ul>
</li>
</ul>
Or even just raw text like:
Foo 1
Kong 99
--
Roy S. Schestowitz
http://Schestowitz.com
|
|