Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] Question about jdom-contrib IdFactory

Martin Pöpping

2004-03-24

Replies:

Hello,

I�ve a question about the jdom-contrib IdFactory class.

I want to add an ID to every element in my xml-file so I think that this
class could be my solution.

My problem is now, that I cannot find any method like Element.getID() to
get the ID of an element.
Well there is a method DocumentId.getElementById(String id)... but how
can I get this element
if I do not know which Ids I am using?

Thanks a lot for help,

bye,

Martin


PS: The task I wam trying to do at the moment, is reading in an XML file
and adding
the attributed "id" and "status" to every single element. Are there
maybe other classes in
the jdom-packages which cold help me?



_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.