Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XML generation from XSD puts "token" in attributes
icon5.gif  XML generation from XSD puts "token" in attributes [message #498855] Wed, 18 November 2009 19:42 Go to next message
Nick Radov is currently offline Nick RadovFriend
Messages: 9
Registered: July 2009
Junior Member
I would like to generate some sample XML files for testing based on an XSD. So I used the "Generate, XML File..." command and it did create a file. Unfortunately, many of the attributes in the generated file are set to "token" which doesn't pass schema validation. The XSD defines a limited set of allowable values for those attributes.

Is there any way to make it generate correct attribute values?

Unfortunately I can't post the XSD files here to reproduce the problem because they are copyright by HL7. If anyone happens to be an HL7 member you can download the CDA.xsd file from the Clinical Document Architecture page in the "CDA Release 2" package.
Re: XML generation from XSD puts "token" in attributes [message #498859 is a reply to message #498855] Wed, 18 November 2009 19:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Nick,

The XSD project doesn't provide that action. Maybe the web tools
project does. I've added it to the "to" list of the reply.


Nick Radov wrote:
> I would like to generate some sample XML files for testing based on an
> XSD. So I used the "Generate, XML File..." command and it did create a
> file. Unfortunately, many of the attributes in the generated file are
> set to "token" which doesn't pass schema validation. The XSD defines a
> limited set of allowable values for those attributes.
>
> Is there any way to make it generate correct attribute values?
>
> Unfortunately I can't post the XSD files here to reproduce the problem
> because they are copyright by HL7. If anyone happens to be an HL7
> member you can download the CDA.xsd file from the
> http://www.hl7.org/implement/standards/cda.cfm page in the "CDA
> Release 2" package.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XML generation from XSD puts "token" in attributes [message #503260 is a reply to message #498859] Fri, 11 December 2009 16:03 Go to previous message
Valentin is currently offline ValentinFriend
Messages: 36
Registered: July 2009
Member
Nick, yes there are some limitations in the WTP XSD to XML instance
generator.
I have opened this bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297594 to track the problem.

Valentin

"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:he1jc9$1k3$1@build.eclipse.org...
> Nick,
>
> The XSD project doesn't provide that action. Maybe the web tools project
> does. I've added it to the "to" list of the reply.
>
>
> Nick Radov wrote:
>> I would like to generate some sample XML files for testing based on an
>> XSD. So I used the "Generate, XML File..." command and it did create a
>> file. Unfortunately, many of the attributes in the generated file are set
>> to "token" which doesn't pass schema validation. The XSD defines a
>> limited set of allowable values for those attributes.
>>
>> Is there any way to make it generate correct attribute values?
>>
>> Unfortunately I can't post the XSD files here to reproduce the problem
>> because they are copyright by HL7. If anyone happens to be an HL7 member
>> you can download the CDA.xsd file from the
>> http://www.hl7.org/implement/standards/cda.cfm page in the "CDA Release
>> 2" package.
Re: XML generation from XSD puts "token" in attributes [message #604439 is a reply to message #498859] Fri, 11 December 2009 16:03 Go to previous message
Valentin is currently offline ValentinFriend
Messages: 36
Registered: July 2009
Member
Nick, yes there are some limitations in the WTP XSD to XML instance
generator.
I have opened this bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297594 to track the problem.

Valentin

"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:he1jc9$1k3$1@build.eclipse.org...
> Nick,
>
> The XSD project doesn't provide that action. Maybe the web tools project
> does. I've added it to the "to" list of the reply.
>
>
> Nick Radov wrote:
>> I would like to generate some sample XML files for testing based on an
>> XSD. So I used the "Generate, XML File..." command and it did create a
>> file. Unfortunately, many of the attributes in the generated file are set
>> to "token" which doesn't pass schema validation. The XSD defines a
>> limited set of allowable values for those attributes.
>>
>> Is there any way to make it generate correct attribute values?
>>
>> Unfortunately I can't post the XSD files here to reproduce the problem
>> because they are copyright by HL7. If anyone happens to be an HL7 member
>> you can download the CDA.xsd file from the
>> http://www.hl7.org/implement/standards/cda.cfm page in the "CDA Release
>> 2" package.
Previous Topic:Does XML Schema editor work with CCRC?
Next Topic:Create XSD programmatically
Goto Forum:
  


Current Time: Thu Apr 25 07:52:53 GMT 2024

Powered by FUDForum. Page generated in 0.03378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top