Lakshmi, If the issue is to retrieve the information from the xml based on the description in the xsd, why dont you use any good xml-data binding tools, like Castor or Jaxb or other well know third party tools. they create Bean classes, based on the xsd and with unmarshalling, you can read the classes.
Thanks Kiran On Fri, Feb 15, 2008 at 12:02 PM, LAKSHMI SARATHY < [EMAIL PROTECTED]> wrote: > i have to design client side , in this i have to read the parameters > from xml data and display it in a java GUI. now to find the data type of > the elements of xml..we need to read the xml schema ? > For reading say for eg my xml data describe user > with first name, last name, address, phone number. I need to display this > data in my gui. for this should i read the schema to find out > what are the parameter of user from the schema ? as well as the datatype > of the various elements (address,phone number,etc) ? > To find out if the elements is mandatory or not ? how to get such info > from xml data? or from the schema? > > > > > ------------------------------ > *From:* Shailendra Singh [mailto:[EMAIL PROTECTED] > *Sent:* Friday, February 15, 2008 11:21 AM > *To:* [email protected] > *Cc:* LAKSHMI SARATHY > *Subject:* RE: Xml schema > > > > Lakshami, > > > > If you could provide more information will be better! > > > > Regards, > > Shailendra Singh > ------------------------------ > > *From:* LAKSHMI SARATHY [mailto:[EMAIL PROTECTED] > *Sent:* Friday, February 15, 2008 11:04 AM > *To:* [email protected] > *Subject:* Xml schema > > > > > > hello Group, > > > > GM. > > > > i have been given both xml and xsd files. should i parse the xml based on > the xsd? i need the information from the schema to be used > > in the JAVA gui. Any suggestions? > > > > Regards > > lakshmi > > > > > > > ------------------------------ > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] > *Sent:* Friday, February 15, 2008 11:00 AM > *To:* [email protected] > *Subject:* AXIOM - OMElement- Hashmap > > Hi Group, > > > > I have a hashmap in my my value object & axis 2 has generated a method > inside my stub with the below signature. > > > > public org.apache.axiom.om.OMElement getTestMap() { > > return localCurrencyMap; > > } > > > > How do I retrieve the values from the OMElement? > > > > Thanks, > > Ajit > > DISCLAIMER: > This message contains privileged and confidential information and is > intended only for an individual named. If you are not the intended > recipient, you should not disseminate, distribute, store, print, copy or > deliver this message. Please notify the sender immediately by e-mail if you > have received this e-mail by mistake and delete this e-mail from your > system. E-mail transmission cannot be guaranteed to be secure or error-free > as information could be intercepted, corrupted, lost, destroyed, arrive late > or incomplete or contain viruses. The sender, therefore, does not accept > liability for any errors or omissions in the contents of this message which > arise as a result of e-mail transmission. If verification is required, > please request a hard-copy version. > > DISCLAIMER: > This email may contain confidential or privileged information for the > intended recipient(s) and the views expressed in the same are not > necessarily the views of Zensar Technologies Ltd. If you are not the > intended recipient or have received this e-mail by error, its use is > strictly prohibited, please delete the e-mail and notify the sender. Zensar > Technologies Ltd. does not accept any liability for virus infected mails. >
