This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML  -  JDOM question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML  -  JDOM question" Watch "XML  -  JDOM question" New topic
Author

XML - JDOM question

Dave Jones
Ranch Hand

Joined: Feb 20, 2005
Posts: 77
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

Joined: Oct 14, 2005
Posts: 19727
    
  10

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?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: XML - JDOM question
 
It's not a secret anymore!