• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hi generating XML response from a database using Group_Concat

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi Guys,



I need to generate the above code from a table in DB.
The problem is I am able to generat ea structure as


However I am unable to generate the cascading child structure where there are more than one nodes.

Please suggest me a way out
is it possible to draw such a response for a webservice using Group_concat???

my code was something like

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Please see: https://coderanch.com/t/472136/Web-Services/java/Retrieving-xm-from-mySQL-sending
Your problems is another very good reason not to use the tactic in which you mix XML generation and SQL queries.
Best wishes!
reply
    Bookmark Topic Watch Topic
  • New Topic