Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2007, 01:29 PM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Urgent: Building a java object from XML String,XSD

Hi,
    What is the best way to build a Java object called Book usingthe related XSD for book element and a string representing the root element "book" of the xml docmuent ?
Say I have a Java string object containing
Code:
<book>
 <children/>
...
</book>
and I want to create a Java object Book representing this xml document.

Any help appreciated.
thanks,

 
Old January 5th, 2007, 02:19 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Read up on Java XML data binding technologies such as JAXB.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Is CDATA same as xsd:String rajat_aggarwal03 XML 2 October 24th, 2008 01:05 PM
XML to XSD gagsy Pro Java 0 March 3rd, 2008 02:38 AM
XML To XML, using XSL & XSD supercop75 XSLT 1 April 8th, 2006 02:48 AM
XSD - String values that contain '<' and '>' billy_bob_the_3rd XML 3 March 10th, 2005 07:01 AM
Converting xsd to xml lxu XML 0 June 4th, 2004 12:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.