Yes, that was me :-) Can someone please fix this problem so I don't have to provide a "modified" dom4j.jar file with my application? I've included patchfiles for the W3C DOM part of dom4j in my previous message, so fixing that (DOM) problem can't be a big deal...
oh, btw, I couldn't reproduce your problem with this program: public static void main(String[] args) throws Exception { File xmlfile = new File("c:\\temp\\dom4jTest.xml"); UserDataDocumentFactory factory = new UserDataDocumentFactory(); SAXReader reader = new SAXReader(); reader.setDocumentFactory(factory); Document doc = reader.read(xmlfile); doc.getRootElement().addAttribute("foo","fee"); System.out.println(doc.getRootElement().attribute("foo")); System.out.println(doc.getRootElement().attribute("foo").getClass()); } This was my output: org.dom4j.util.UserDataAttribute@754ad2 [Attribute: name foo value "fee"] class org.dom4j.util.UserDataAttribute Maarten At 11:55 18/01/2002 -0800, you wrote: >I just saw a similar mail on the archive by >someone who was trying to do the same thing on org.w3c.DOM Elements, so >maybe this problem is more generic than I thought. > > >https://sourceforge.net/mailarchive/forum.php?thread_id=98464&forum_id=2702 > >Thanks >Vivek -- Maarten Coene Katholieke Universiteit Leuven Dept. Computerwetenschappen Tel: ++32 (0)16/32 78 25 Celestijnenlaan 200A B-3001 Heverlee _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev