reversing html



I need to reverese html in order for it to be shown correctly with
html to pdf converter. the converter does not support the style
direction:rtl (I need to show hebrew) so I need to do it manually.
most of the swaping is re-ordering the td tags. for example from
<html>
<body>
<table>
<tr>
<td>1</td>
<td>2</td>
<td>
<table>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</tr>
</table>
</body>
</html>

I need to get

<html>
<body>
<table>
<tr>
<td>
<table>
<tr>
<td>4</td>
<td>3</td>
</tr>
</table>
</td>
<td>2</td>
<td>1</td>
</tr>
</table>
</body>
</html>

what is the best way to do it? I tried htmlparse and the tree
structure with struct::tree but with no success. is there a nice and
simple solution?

.



Relevant Pages

  • Re: Ad-Aware-Manual in Programm einbinden
    ... angegebenen Adresse die Demoversion von 'ABC Amber PDF Converter' heruntergeladen. ... HTML dargestellt. ...
    (microsoft.public.de.german.windowsxp.sonstiges)
  • Re: HTML to PDF converter
    ... does someone know an HTML to PDF converter for Ruby with a behavior ... similar of this .NET component? ...
    (comp.lang.ruby)
  • HTML to PDF converter
    ... does someone know an HTML to PDF converter for Ruby with a behavior ... similar of this .NET component? ...
    (comp.lang.ruby)
  • Re: vs2008 problems
    ... uppercase tags flag as errors although the table still runs. ... As for the VS 2008 html designer, it has been redesigned from the original ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Issue Getting Suckerfish Dropdown Menu Working in IE6
    ... The `script' element is supported since HTML 3.2, ... This requires support for the Web standards W3C DOM Level 2 Core and HTML. ... This requires support for a proprietary property on a host object. ... This also requires support for a proprietary property on a host object. ...
    (comp.lang.javascript)