View Single Post
  #1 (permalink)  
Old November 20th, 2008, 02:22 PM
moshaik moshaik is offline
Registered User
 
Join Date: Nov 2008
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default html to xml convertion using xslt

I am new to this forums and new to the XSLT

Thanks for you support. Need help urgent.

we can translate xml to html using xsl, is it poseble to get reverse by using the same xsl? if so please tell me how ! or tell how easy way to get transelate html to xml.


input html file
===============

<html>
<body>
<div id="csResponse">
<h2><a name="csResponse">cs Response</a></h2>
<p>Para acontent 1111</p>

<h3><a name="vs11">Vulnerability Characteristics</a></h3>
<p> para content22222 </p>
<pre> clicode content 111 </pre>

<h3><a name="vs22">Vulnerability Characteristics</a></h3>
<p> para content22222 </p>
<pre> clicode content 2222</pre>

<h3><a name="vs33">Vulnerability Characteristics</a></h3>
<p> para content333 </p>
<pre> clicode content 3333</pre>
<p> para content3333333 </p>

</div>
</body>
</html>

Out put XML file
================
<Topic>
<Concept Title="csResponse">
<Para>Para acontent 1111</Para>
</Concept>

<Concept Title="vs11">
<Para><p> para content22222 </p></Para>
<CLICode> clicode content 111</CLICode>
</Concept>

<Concept Title="vs22">
<Para>Para acontent 1111</Para>
<CLICode> clicode content 2222</CLICode>
</Concept>

<Concept Title="vs33">
<Para>para content333</Para>
<CLICode> clicode content 3333</CLICode>
<Para> para content3333333 </Para>
</Concept>

</Topic>

Reply With Quote