rendy jaya

rendy jaya

  • NA
  • 15
  • 0

how to show xml file in webpage.

Jun 22 2012 9:36 AM
Hi,


like i wrote in my subject, i want to ask how to show xml file in web page?
for example i have xml file like this. 
<bookstore>
  <book ISBN="10-000000-001"
      title="The Iliad and The Odyssey"
      price="12.95">
    <comments>
      <userComment rating="4"
          comment="Best translation I've read." />
      <userComment rating="2"
          comment="I like other versions better." />
    </comments>
  </book>
</bookstore>

i can show this xml structure with xmldatasource and connected with datagrid or else.
but i have problem if i want to show xml file with this structure. 

<response>
  <result name="response" numFound="1" start="0">
    <doc>
      <str name="address">yes</str>
      <str name="checkbox">no</str>
      <str name="status">normal</str>
    </doc>
   </result>
</response>

for this i just can show the first line 
<result name="response" numFound="1" start="0"> 

i dont know why? or maybe there are some structure problem in my second xml? 


Answers (1)