html to xml convertion using xslt


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: html to xml convertion using xslt

  1. #1
    Join Date
    Nov 2008
    Posts
    6

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

    Code:
    <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
    ================
    Code:
    <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>
    please provide me any solution to convert html to xml with respect to DTD

    Thanks
    Mohammed Ali

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX
    Quote Originally Posted by moshaik View Post
    transelate html to xml.
    I found a few things on Google:

    http://www.ibm.com/developerworks/li...x-tiptidy.html

    http://www.xmlwrench.com/manual/convert.html

    http://www.stylusstudio.com/xsllist/...post60180.html
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Nov 2008
    Posts
    6
    Thanks for your input

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Did one or more of them resolve your problem?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 0
    Last Post: 08-31-2006, 08:02 PM
  2. Replies: 1
    Last Post: 05-02-2002, 08:57 AM
  3. Importing xslt into 1 master xslt then to html
    By Patrick Long in forum XML
    Replies: 1
    Last Post: 03-01-2002, 03:47 PM
  4. Replies: 3
    Last Post: 08-07-2001, 04:32 PM
  5. Data Junction Announces XML Junction 7.51
    By Tim Frost in forum xml.announcements
    Replies: 0
    Last Post: 04-02-2001, 11:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center