Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDOM and Xml

 
Hamzah khammash
Greenhorn
Posts: 23
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am new to JDOM and XML , i need help to start a simple project ,it about school have 3 classes and every class have a 5 student i need to read this data from xml and put it into my School.java class and Classs.java class and student.java class using setter and getter ,i know that i must have a list for Classs class and Student class but i need a key to start doing this so any help is appreciated
thanks
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15715
73
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is documentation on how to use JDOM, including examples, on the website: http://www.jdom.org/downloads/docs.html
 
Hamzah khammash
Greenhorn
Posts: 23
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper de Jong wrote:There is documentation on how to use JDOM, including examples, on the website: http://www.jdom.org/downloads/docs.html


sorry but can you check my XML File because when i run it ,give me a spaces for a tags .

 
Campbell Ritchie
Marshal
Posts: 52664
122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would need to provide more details of the exact error before anybody can help. Don’t expect anybody to go through your whole file without those details.
I shall move this thread to our XML forum.
 
We're all out of roofs. But we still have tiny ads:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!