[Home] [By Thread] [By Date] [Recent Entries]
There is ... Use XMLBeans tools... There is a class SchemaInstanceGenerator which you can use ( But it has main so you need to pass parameters to it... ) and cannot use it as a normal function. There is also a utility created by XMLbeans tools called as xsd2int which works pretty well.. For details please visit http://xmlbeans.apache.org/docs/2.0.0/guide/tools.html#xsd2inst U can also download latets version from xmlbeans tools.. The source code of SchemaInstanceGenerator is available at http://www.koders.com/java/fid0E0A72D6523FD63D0BA573E09F53C14B19CE4EE9.aspx Keep Smiling, Sagar Surana Group Leader - System Testing 2091-3207 (Desk) AMDOCS > CUSTOMER EXPERIENCE SYSTEMS INNOVATION -----Original Message----- From: Shlomo Yona [mailto:S.Yona@F...] Sent: Thursday, June 28, 2007 11:22 PM To: abcoatesecure-xmldev@y...; xml-dev@l... Subject: RE: Generating XML from XSD Hello, Isn't there any alternative other than XML Spy and oXygen for this functionality? Shlomo. -----Original Message----- From: Anthony B. Coates (XML-Dev) [mailto:abcoatesecure-xmldev@y...] Sent: ã 27 éåðé 2007 20:20 To: xml-dev@l... Subject: Re: Generating XML from XSD It's already been mentioned that tools like XML Spy and oXygen have some capability to produce XML instances to match a Schema. However, my own experience (mostly with users who had XML Spy) is that the tool often generated invalid instances, and the users then assumed that there was an error in the Schema that they had been given. In particular, I'm not sure if any tool will reliably generate valid instances if there are pattern restrictions in a Schema. This may well be an intractable problem, to generate a valid string match a pattern for any arbitrary pattern. Certainly it isn't a trivial problem. It does mean, however, that you should never expect an XML instance generator to fully valid XML. It may need editing to make it valid. Cheers, Tony. On Wed, 27 Jun 2007 06:55:46 +0100, Sagar Surana <sagar.surana@a...> wrote: > Hi, > > I want some kind of API's which can help generate a random XML based > on XSD. > > > > > Can someone please help me regarding the same. > > > > > Keep Smiling, > > Sagar Surana -- Anthony B. Coates Senior Partner Miley Watts LLP Experts In Data UK: +44 (20) 8816 7700, US: +1 (239) 344 7700 Mobile/Cell: +44 (79) 0543 9026 Data standards participant: genericode, ISO 20022 (ISO 15022 XML), UN/CEFACT, MDDL, FpML, UBL. http://www.mileywatts.com/ _______________________________________________________________________ XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting. [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: xml-dev-unsubscribe@l... subscribe: xml-dev-subscribe@l... List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php _______________________________________________________________________ XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting. [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: xml-dev-unsubscribe@l... subscribe: xml-dev-subscribe@l... List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



