RE: Jdom with XMI Files
"Michael Kay" <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <B5CD911C957041ACA1914AF3B58A06C9@Sealion> |
> > You were right. I am quite confuse when manipulating namespaces. > Could you give me a help there? Please don't go off-list. When people search the archives, they want to find the answers, not only the questions! > > For example, how could I get to the Element: > > <ownedMember xmi:type="cmof:Package" xmi:id="StateMachines" > name="StateMachines"> > > (this is a root's child) without using > rootElement.getchildren() and iterating over it? Use Element.getChild(name, namespace) > > How could I get its child attributes without using > myElement.getAttributes() and iterating over it? Use Element.getAttribute(name, namespace) Michael Kay http://www.saxonica.com/ _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]