Bugs item #894878, was opened at 2004-02-11 16:25
Message generated for change (Comment added) made by maartenc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=894878&group_id=16035

Category: None
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Stéphane Toussaint (proner)
Assigned to: Maarten Coene (maartenc)
Summary: (Element) addAttribute ow addText

Initial Comment:
Hi,

It's seems that the addAttribute method overWrite the
addText one with cascading usage :

elem.addText("bla").addAttribute("foo", "bar");
=> <test foo="bar"></test>

elem.addAttribute("foo", "bar").addText("bla");
=> <test foo="bar">bla</test>

In this order, that works.

Steph



----------------------------------------------------------------------

>Comment By: Maarten Coene (maartenc)
Date: 2004-06-18 09:10

Message:
Logged In: YES 
user_id=178745

No response, closing it since it works for me

----------------------------------------------------------------------

Comment By: Maarten Coene (maartenc)
Date: 2004-03-12 17:56

Message:
Logged In: YES 
user_id=178745

Hi,

I cannot reproduce your problem. Which version of DOM4J do
you use?  Could you try it with the latest CVS code ??

The added junit-test for this problem is succussful. You can
find it at
dom4j/src/test/org/dom4j/tree/TestDefaultElement.java 

thanks,
Maarten

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=894878&group_id=16035


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to