Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: need to display all xml data in a table [Thread Next] Re: need to display all xml data in a tableTo: NULL Date: 8/3/2004 9:25:00 AM Works fine if you change the XML to the following structure: <NAME> <ITEM> <HEAD> <ATTRIB1></ATTRIB1> <ATTRIB2></ATTRIB2> </HEAD> <BODY> <LINE></LINE> </BODY> <BODY> <LINE></LINE> </BODY> </ITEM> </NAME> You have to repeat the body-element around the line-element. I don't know why, but I can live with that. Thanks. Regards, Léon Hoeneveld "Brian Staff" <brianstaff@[NoSpam]compuserve.com> wrote in message news:euntVZSeEHA.1732@T...... > Well, off the top of my head... > > <table datasrc='#x'><tr><td> > <table datasrc='#x' datafld='BODY'> > <tr><td><span datafld='LINE'></span></td></tr> > </table> > </td></tr></table> > > HTH - Brian > "Leon Hoeneveld" <leonhoenNO@S...> wrote in message > news:cenau8$287$1@v...... > > > > "Brian Staff" <brianstaff@[NoSpam]compuserve.com> wrote in > > message news:uT2jRLKeEHA.3756@T...... > > > I believe the syntax of the datafdl attribute should be an > > explicit node > > > name...not a path > > > So... > > > <TD><SPAN DATAFLD='NAME/ITEM/BODY/LINE'></SPAN></TD> > > > should be > > > <TD><SPAN DATAFLD='LINE'></SPAN></TD> > > > > > > But be aware that a TABLE can only handle nodes that are > > two deep, so if you > > > want go deeper than that, then you need nested tables. > > > > > > Brian > > > > Thank you (all) for the information. > > Can you give me an example of a nested table? > > > > Thanks in advance. > > > > Regards, Léon Hoeneveld > > > > > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
