Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-07-14T22:26:25Z by jackptester
bvru
bvru
1 Post
ACCEPTED ANSWER

Pinned topic Get data from xml file and display it into html page

‏2012-03-10T18:31:01Z |
hello,
I have xml file and i want to parse the data from that xml file and display it into html.

for eg:
book.xml
<book>
<section>
<title lang="en">Everyday</title>
<year>2005</year>
<price>30.00</price>
</section>
<section>
<title lang="en">India</title>
<year>2008</year>
<price>37.00</price>
</section>
</book>
and output should be(get only title of section):
-everyday
-India

how to do this..???
please help me..
Updated on 2012-07-14T22:26:25Z at 2012-07-14T22:26:25Z by jackptester
  • jackptester
    jackptester
    1 Post
    ACCEPTED ANSWER

    Re: Get data from xml file and display it into html page

    ‏2012-07-14T22:26:25Z  in response to bvru
    You can use XSLT to parse your XML data and output it in HTML format. The following "tip" summarizes this process: http://www.ibm.com/developerworks/xml/library/x-tiphtml/index.html