• Post Reply Bookmark Topic Watch Topic
  • New Topic

mock question

 
Sunjeev Shetty
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Drag and drop
Place the code snippets to complete the method which maps the purchaseorder instance to its XML representation using JAXB API.

public Node createXML(purchaseOrder po){
JAXBContext jc =JAXBContext.newInstance("purchaseorder")
1.
2.
3.
4.
}
Code Snippets

A. returnUnmarshallerHandler.getResult();
B. return result.getNode();
C. Marshaller m=jc.createMarshaller();
D. Object o =u.unmarshall(po);
E. Object order= (Object)po;
F. m.marshall(po,result);
G. DOMResult result =new DOMResult();
H. Unmarshaller u=jc.createUnmarshaller();

[ October 19, 2006: Message edited by: Sunjeev Shetty ]
[ October 19, 2006: Message edited by: Sunjeev Shetty ]
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please tell us what you don't understand in this question? Thanks
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!