Home > Default > Create XML dynamically from schema and Java bean

Create XML dynamically from schema and Java bean

October 11Hits:2
Advertisement
Hi,
I'm looking for suggestions on the best approach to create an XML file programatically from a schema and Java bean.
The schema used is not fixed and may vary with each request so a dynamic way to create the XML is required.
Is there an API available that allows me to achieve this easily? Any help would be appreciated to point me in the right direction.
Thanks.

Answers

XMLBeans or JAXB should work for you.
- Saish

Read other 2 answers

Tags:

Related Articles

  • Create XML dynamically from schema and Java beanOctober 11

    Hi, I'm looking for suggestions on the best approach to create an XML file programatically from a schema and Java bean. The schema used is not fixed and may vary with each request so a dynamic way to create the XML is required. Is there an API availa

  • Create xml document by xpath in javaNovember 30

    as i know, i can navigate existing xml document by xpath in java, i wonder if i can create a xml document framework by xpath in java? something like: Document doc = someobject.create(xpath expression); then i can use DOM to fill the framework? Thanks

  • Creating XML dynamicallyNovember 30

    Hi, I need to create XML which follows this exact structure: <root>     <node>         <row>             <item>item01</item>             <item>item02</item>         </row>         <row>             <

  • Creating a user defined control using java BeansNovember 30

    Hi, I want to create a user defined control which is used to draw a line ... same as we using in VB as Line control.In java we will create the component using using Beans . I created a code which will draw a line in the run time .For tat i extend the

  • Creating XML from Relational Tables using javaNovember 30

    I would like to create an XML document by querying relational tables in java try {         connection = getConnection();         final String qryStr = "select XMLElement( foo, 'bar' ) from dual";         final OracleXMLQuery qry = new OracleXMLQ

  • Create xml dynamicallyNovember 30

    Hi Folks, I want to, within a batch process, create a simple peice of xml and data. Within the process I know what my tags are to be. I will have data as well. And so I simply want to construct this xml (with the tags and data) and then pass this xml

  • Do all JSP/Java bean webapps need an xml file?November 30

    Hi all, I have a jsp/ java bean webb application. This is being run on Resin at Lunarpages. The site has been shut down due to 'class-loader' not found. I was told it was causing problems for other java users on the server. I realise this is limited

  • Need some help how to generate xml from java bean.November 30

    Hi, Can some one help me how to generate the xml format output from a java bean. The bean contains around 15 to 20 attribute values. Thanks in Advance. sarayuYou can use XMLEncoder with custom persistence delegates if needed: http://java.sun.com/prod

  • XSD to java beansNovember 30

    How to convert complex xml(xml having compex attribute) into java beans pls help ASAPif you have the xsd or the dtd for the xml file, use JAXB for converting XML to java objects and vice versa. http://java.sun.com/webservices/jaxb/users-guide/jaxb-us

  • Creating XML file from Java BeanOctober 11

    Hi Are there any standard methods in Java 1.5 to create XML file from java bean, i can use JAXB or castor to do so, But i would like to know if there is any thing in java core classes, I have seen XMLEncoder, but this is not what i want. Any ideas As

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.860 s.