In my application, I add an Element to an existing Element as a child. However, when I want to select the new element from its parent, it doesn't show up. How is that possible? The weird thing is, when I write out the element to an XML file, the new element is there.
Code ('model' is an Element from a large XMI file):
Element newelm = new DefaultElement("UML:Stereotype"); newelm.addAttribute("name", "NEW"); model.add(newelm);
Element test = (Element)model.selectSingleNode("UML:[EMAIL PROTECTED]"NEW\"]"); if (test == null) System.out.println("Nope, not here.");
This code prints out "Nope, not here". I know this code works, because when I check for Elements that are in the 'model' Element in the first place, it finds them.
TIA Bart
PS
Due to some stupid mailinglist mistake I made, this message might be sent twice. My apologies.
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user