Record Field into HTML table - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Record Field into HTML table

zibadianzibadian Posts: 6,349Member
I have the following XML structure:
[code]










[/code]
And I was wondering, how can I get the field in a HTML table? I can get the field into the table by using:
[code]

[/code]
But this doesn't work for the title.

Comments

  • KDivad LeahcimKDivad Leahcim Posts: 3,948Member
    : I have the following XML structure:
    : [code]
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : [/code]
    : And I was wondering, how can I get the field in a HTML table? I can get the field into the table by using:
    : [code]
    :
    : [/code]
    : But this doesn't work for the title.
    :

    I'm really just guessing, but perhaps something like "CD/Title"?
  • zibadianzibadian Posts: 6,349Member
    : : I have the following XML structure:
    : : [code]
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : : [/code]
    : : And I was wondering, how can I get the field in a HTML table? I can get the field into the table by using:
    : : [code]
    : :
    : : [/code]
    : : But this doesn't work for the title.
    : :
    :
    : I'm really just guessing, but perhaps something like "CD/Title"?
    :
    Thanks for your suggestion, but it didn't work. I've also tried to use a dot and a backslash, but also with no success. Nesting two tags together didn't work either. Does any-one have another suggestions or pointers to solve this problem?
  • lillulillu Posts: 308Member
    Hi,

    It's very easy. Because xml databinding is hierarchical, you must use nested tables for Location and Title.











    Name 1

    Title 1
    Location 1



    Name 2

    Title 2
    Location 2







    <!-outer table bound to master recordset, no DATAFLD attribute -->

















    <!-inner table bound to detail recordset via DATAFLD attribute-->





















    : : : I have the following XML structure:
    : : : [code]
    : : :
    : : :
    : : :
    : : :
    : : :
    : : :
    : : :
    : : :
    : : :
    : : :
    : : : [/code]
    : : : And I was wondering, how can I get the field in a HTML table? I can get the field into the table by using:
    : : : [code]
    : : :
    : : : [/code]
    : : : But this doesn't work for the title.
    : : :
    : :
    : : I'm really just guessing, but perhaps something like "CD/Title"?
    : :
    : Thanks for your suggestion, but it didn't work. I've also tried to use a dot and a backslash, but also with no success. Nesting two tags together didn't work either. Does any-one have another suggestions or pointers to solve this problem?
    :

    [hr][grey]To err is human, but to really foul things up requires a computer. (Farmers Almanac)[/grey] :-)

  • zibadianzibadian Posts: 6,349Member
    : Hi,
    :
    : It's very easy. Because xml databinding is hierarchical, you must use nested tables for Location and Title.
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : Name 1
    :
    : Title 1
    : Location 1
    :
    :
    :
    : Name 2
    :
    : Title 2
    : Location 2
    :
    :
    :
    :
    :
    :
    :
    : <!-outer table bound to master recordset, no DATAFLD attribute -->
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :

    :
    : <!-inner table bound to detail recordset via DATAFLD attribute-->
    :
    :
    :
    :
    :
    :
    :
    :

    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : : : : I have the following XML structure:
    : : : : [code]
    : : : :
    : : : :
    : : : :
    : : : :
    : : : :
    : : : :
    : : : :
    : : : :
    : : : :
    : : : :
    : : : : [/code]
    : : : : And I was wondering, how can I get the field in a HTML table? I can get the field into the table by using:
    : : : : [code]
    : : : :
    : : : : [/code]
    : : : : But this doesn't work for the title.
    : : : :
    : : :
    : : : I'm really just guessing, but perhaps something like "CD/Title"?
    : : :
    : : Thanks for your suggestion, but it didn't work. I've also tried to use a dot and a backslash, but also with no success. Nesting two tags together didn't work either. Does any-one have another suggestions or pointers to solve this problem?
    : :
    :
    : [hr][grey]To err is human, but to really foul things up requires a computer. (Farmers Almanac)[/grey] :-)
    :
    :
    Thanks, it works precisely like I wanted to.
  • taigerbolttaigerbolt MonterreyPosts: 1Member

    i have a problem with xml data island, i can't show the data on a html table, i mean i want to show the data from a xml file

Sign In or Register to comment.