Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML - JDOM question  RSS feed

 
Dave Jones
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all ye ranchers!!...
My problem is simple
I'm using JDOM to "read" an XML file, when reading I get the attributes, but I can't tell the difference between an attriibute which is part of a list and a "regular" attribute.
e.g-



prop = is the attribute from a list
supe = is a "regular" attribute


Thank you all
just Dave
 
Paul Clapham
Sheriff
Posts: 22472
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well first of all, your terminology is wrong. 'prop' and 'supe' are element names. The things like 'name="use"' are attributes. But to answer your question: what difference were you expecting to tell? There are prop elements and there are supe elements. What did you expect JDOM to tell you about those elements?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!