Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML to XSL validating
Message
From
06/04/2007 19:24:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
HTML to XSL validating
Miscellaneous
Thread ID:
01213147
Message ID:
01213147
Views:
60
Get an HTML as input and convert it to a valid XSL/XML file (close unclosed tags, put quotes around attribute values and such). I can do this walking the nodes with DOM and rewriting it out but maybe there is something that does it?
ie:
<html>
 <meta blah blah>
 </body>
 <p>
 <table border=1>
   <tr>
     <td></td>
   </tr>
  </table>
 </body>
</html>
To:
<html>
 <meta blah blah/>
 </body>
 <p/>
 <table border="1">
   <tr>
     <td></td>
   </tr>
  </table>
 </body>
</html>
TIA
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Reply
Map
View

Click here to load this message in the networking platform