*
The moose likes Web Services and the fly likes Help needed with unmarsheller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Help needed with unmarsheller" Watch "Help needed with unmarsheller" New topic
Author

Help needed with unmarsheller

amulya gudapati
Greenhorn

Joined: Feb 27, 2008
Posts: 5
I have the below code

JAXBContext ctx;

try {

ctx = JAXBContext.newInstance("testpkg.test");
unMarshaller = ctx.createUnmarshaller();

reader = new StringReader(testXML);

testpkg.Test test =
(testpkg.Test)unMarshaller.unmarshal(reader);
}

Test is the java object from the test.xml file created using xjc compiler.

in test.xml I have an element <abc> value </abc>

now after the code above i need to get that element <abc> value into a String.

please help...
 
Consider Paul's rocket mass heater.
 
subject: Help needed with unmarsheller