A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
creating objects from an XML file
Joined: Sep 28, 2005
Oct 19, 2005 09:02:00
I want to pull data from an XML file and place it in a
object. Im using SAX to parse the file .
Do I need to wrap XML data in an objectinputstream method to use the values?
Joined: Oct 14, 2005
Oct 19, 2005 10:25:00
No. You get data from SAX as strings. Those strings may be element names or attribute values or text nodes or whatever. You can use normal Java programming techniques to create objects that contain those strings.
Have you checked out
subject: creating objects from an XML file
Tomcat gets crazy...
How to do XML to DB using Message Driven Bean?
Reload XML, before Parsing
Extract xml to store into db
Extract db data into a XML
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015