mardi 4 août 2015

How many XML tree(parent children) can create in Java Marshalling and Unmarshalling

I want to create a XML file using java Marshalling and Unmarshalling. How to develop Java class get following Type XML.

    <?xml version="1.0" encoding="UTF-8"?> 
    <vxml version="2.0" xmlns="http://ift.tt/1p9rUc7" 
      xmlns:xsi="http://ift.tt/ra1lAU" 
      xsi:schemaLocation="http://ift.tt/1p9rUc7 
       http://ift.tt/XjVYWt">
      <form>
          <grammar src="cityandstate.grxml" type="application/srgs+xml"/>
          <block>
            <prompt bargein="false">
               <audio src="http://ift.tt/1eQ0zaE"/>
            </prompt>
          </block>
       </from>
     </vxml>

I want to get like this XML in Jax-Rs web service there are using Hibernate, Spring and Maven. this class want to run through Jax-Rx web service.

Aucun commentaire:

Enregistrer un commentaire