Problem generating XML document from schema

Hi, I'm involved in writing an application that will obtain data from and send data to the UK Student Loan Company via a Web service that is planned to be available shortly. The necessary schema information is contained in the Database Schema and Database Types xsd files available from: http://www.ucisa.ac.uk/groups/cisg/misgdocs/HEICourseDatabase I've downloaded the files and opened them in <oXygen/>. In order to get an idea of the kind of document I will need to be able to write into and generate from our database, I have tried to generate a sample XML file. With the HEICourseDatabaseSchema.xsd file open in <oXygen/> I do Tools --> Generate Sample XML Files ... In the dialog, I browse to the HEICourseDatabaseSchema.xsd file, for the URL. I then try to set a document root, but the Document root drop down list is empty. The HEICourseDatabaseTypes.xsd file is in the same directory as the HEICourseDatabaseSchema.xsd file and should therefore be available, so it's not that. Can anyone point out to me the obvious point that I'm missing, please? I've never had trouble generating sample files before, so I just don't see what I'm doing wrong. Many thanks Peter

Dear Peter, Both schemas you are referring to do not define any element. They define only types. Looking into the database schema I noted an annotation referring to a root element, but that is inside a type declaration: <xs:complexType name="catalog"> <xs:annotation> <xs:documentation>Root element. A catalog is made up of one or more institutions.</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="institution" type="cdbdata:institution" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> If you define a catalog element and specify the above catalog type as its type, like below for example: <xs:element name="catalog" type="cdbdata:catalog"/> then oXygen will present the catalog element in the instance generator dialog. Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Bradley, Peter wrote:
Hi,
I’m involved in writing an application that will obtain data from and send data to the UK Student Loan Company via a Web service that is planned to be available shortly. The necessary schema information is contained in the Database Schema and Database Types xsd files available from:
http://www.ucisa.ac.uk/groups/cisg/misgdocs/HEICourseDatabase
I’ve downloaded the files and opened them in <oXygen/>. In order to get an idea of the kind of document I will need to be able to write into and generate from our database, I have tried to generate a sample XML file.
With the HEICourseDatabaseSchema.xsd file open in <oXygen/> I do Tools à Generate Sample XML Files …
In the dialog, I browse to the HEICourseDatabaseSchema.xsd file, for the URL. I then try to set a document root, but the Document root drop down list is empty. The HEICourseDatabaseTypes.xsd file is in the same directory as the HEICourseDatabaseSchema.xsd file and should therefore be available, so it’s not that.
Can anyone point out to me the obvious point that I’m missing, please? I’ve never had trouble generating sample files before, so I just don’t see what I’m doing wrong.
Many thanks
Peter
------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

D'oh! Many thanks George. Done and working. BTW, does this list prefer top or bottom posting, or don't you care? I just don't want to rekindle that particular flame war :) Cheers Peter -----Original Message----- From: George Cristian Bina [mailto:george@oxygenxml.com] Sent: 20 February 2008 14:09 To: Bradley, Peter Cc: oxygen-user@oxygenxml.com Subject: Re: [oXygen-user] Problem generating XML document from schema Dear Peter, <snip /> If you define a catalog element and specify the above catalog type as its type, like below for example: <xs:element name="catalog" type="cdbdata:catalog"/> then oXygen will present the catalog element in the instance generator dialog. Best Regards, George

Is there a way that I can display an .xml file and the associated .xsl, .dtd or .css side by side?

On 20/02/2008, Boojum <jabberwockycarl@gmail.com> wrote:
Is there a way that I can display an .xml file and the associated .xsl, .dtd or .css side by side?
window -> split horizontally cheers -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/

Hi, The editors can be moved freely in the editing area. Just click on an editor tab and start dragging it. You will see a visual marker indicating the place that editor will take after you drop it. When you obtain the location you want just drop it. The Window->Split horizontally action is used for obtaining multiple views of the same file. This is useful when you want to work or see two different places in the same file, like for instance entering something at the end of the file while looking at some other information at the beginning of that file. You can see also the following video demonstration http://www.oxygenxml.com/demo/dockableViews/dockableViews.html Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Andrew Welch wrote:
On 20/02/2008, Boojum <jabberwockycarl@gmail.com> wrote:
Is there a way that I can display an .xml file and the associated .xsl, .dtd or .css side by side?
window -> split horizontally
cheers

On 20/02/2008, Andrew Welch <andrew.j.welch@gmail.com> wrote:
On 20/02/2008, Boojum <jabberwockycarl@gmail.com> wrote:
Is there a way that I can display an .xml file and the associated .xsl, .dtd or .css side by side?
window -> split horizontally
Sorry - I should pay more attention... To display two differnent documents side-by-side, open them both and then click and drag one to the side - you will where it will go as you move the mouse around... -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
participants (4)
-
Andrew Welch
-
Boojum
-
Bradley, Peter
-
George Cristian Bina