• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading a xml schema and obtaining data from it using java  RSS feed

 
Sandya Rani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A method in Java returns a schema. In .net, we use DataTable to get the data from the schema. please tell me how to write the following code in Java:



 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That isn't Java® code; what language is it?
 
Michael D Sims
Ranch Hand
Posts: 113
1
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:That isn't Java® code; what language is it?

I believe the poster is attempting to have their posted .NET code converted into Java code. I have some Java code that I muddled my way through and successfully extracted interesting data from a XML file, but from what I have seen, there is no 'generic' way to read XML. The code will have to be unique based on the structure of your XML data. And without being able to read .NET, I can't tell how XML is written for this particular piece of .NET code as posted... perhaps someone with both Java and .NET skills could comment?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!