A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Web Services
Author
Help needed with unmarsheller
amulya gudapati
Greenhorn
Joined: Feb 27, 2008
Posts: 5
posted
Feb 27, 2008 15:49:00
0
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...
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Help needed with unmarsheller
Similar Threads
module level struts-config.xml file
DOM XML Parsing - Newbie
Effect of nillable=true
Problem in castor please help
JRE 1.4.2 to 1.5 Migration issue in XML
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter