RE: Jdom with XMI Files

"Michael Kay" <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <373A40C0FF5B4348A9D7581488867D89@Sealion>
It's a good idea to show the code you were using, then people can tell you
where you went wrong.
 
It looks a bit as if you haven't grasped how namespaces work, but without
seeing your attempts, that's a guess.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: [email protected] [mailto:[email protected]]
On Behalf Of Fabio Leal
Sent: 23 November 2008 03:10
To: [email protected]
Subject: [jdom-interest] Jdom with XMI Files


Hy everybody...
I'm trying to manipulate a XMI file with Jdom, and I have experienced some
difficulties doing it. 

For example: 
All the subnodes of the root Element have the "same name", but have
different attributes.
How can I choose a specific "Element", by specifying it's attributes?

Another point is that the attributes started with "xmi:" aren't recognized
by Jdom. I've already tested a bunch of things to make it recognizable, but
all of them were unsuccessful. =/

I think that my problems are quite easy to solve, but I haven't found
anything that could help me in the web.  
If Jdom isn't a great tool with XMI, could you suggest me other?


*Xmi file that i want to read:
http://www.omg.org/spec/UML/20061001/Superstructure.cmof


Cheers,
Fábio Leal

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.