View Single Post
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

<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>


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

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

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

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