I've been using dom4j for a while now and it's great. Recently I've ran into a scenario that I can't figure out how to code with dom4j that I hope some kind person will help me out with. I wish to build the following document:
<ps:Response
xmlns:ps="http://www.mydomain.com/Schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mydomain.com/Schema ../schema/Schema.xsd">
<Address xsi:type="ps:USAddressFull">
<Street></Street>
<City></City>
<State>IL</State>
<PostalCode>58954</PostalCode>
</Address>
</ps:Response>
At this point in my code I have this entire document built up in exception of the Address element. I need to declare my Address type as it is abstract. I'm lost after:
Element e = new DefaultElement("Address");
It is importent that my XML looks exactly like "<Address xsi:type="ps:USAddressFull">." Thanks for any help.
_________________________________________________________________
Let the advanced features & services of MSN Internet Software maximize your online time. http://click.atdmt.com/AVE/go/onm00200363ave/direct/01/
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user