DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: converting xml to html

  1. #1
    tina Guest

    converting xml to html

    we are using your XML4J and LotusXSL products. we are facing problems in
    obtainig an HTML file written into a file when XML and its corresponding
    XSL file is given as input to the LotusXSL processor.
    if you could provide a sample code to us for the same as above, we
    would be thankful. we had tried one of your initial codes for the same
    but some runtime exceptions occured which could be due to improper settings.
    please tell us about the proper settings also.

    thanking you !!!

  2. #2
    Mark Guest

    Re: converting xml to html

    XSLProcessor processor = new XSLProcessor();
    XSLTInputSource xmlIS = new XSLTInputSource(new StringReader(xml));// String
    with xml
    XSLTInputSource xslIS = new XSLTInputSource(xslFile); //File name
    StringWriter htmlString = new StringWriter();
    XSLTResultTarget target = new XSLTResultTarget(htmlString);
    processor.process(xmlIS, xslIS, target);

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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