• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i use stringbuffer object as the output in xml format  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all...



pl.. tell me how can i use my stringbuffer objects which i m getting from class through reflection and i want to display in xml format
like this:


<root class= "abc" name ="abcobj" level=var1>
<int name=circle> 12</int>
<String name=str> Hello</String>
</root>

thanks

saket
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this sounds like homework, what problem are you trying to solve? JAXB/XOM/etc is typically what is used for java-to-XML bindings, not a homegrown reflection component
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!