|
Here is a blurb from the Castor maillist
guidelines at http://castor.exolab.org/lists.html
1. Please refrain from using words and
phrases like URGENT, IMPORTANT,
MY WIFE WILL LEAVE ME IF YOU DO NOT RESPOND, etc, in the subject line of your postings. Or even in the body of the message for that matter. However, I just so happen to be interested
in your issue
My DOM is a bit rusty, but this code should
do the trick.
//Here, I
instantiate and populate my Castor-generated Value Objects
//The impl.
of the method createRq() is not shown here.
FundsTransferRq rq =
createRq();
Document doc = new org.apache.xerces.dom.DocumentImpl(); Element ele = doc.createElement("tempEle"); doc.insertBefore(ele,null); Marshaller m = new Marshaller((Node)ele); try { m.marshal(rq); NodeList kids = ele.getChildNodes(); for (short j = 0; j < kids.getLength(); ++j) { Node tmp = kids.item(j); System.out.println("tmp [" + tmp.getNodeName() + "]"); } } catch (MarshalException x) { x.printStackTrace(); Assert.fail(); }
|
- [castor-dev] [URGENT] marshall(Node node).. Othman Haddad
- Erik.Ostermueller

