[Download-List] (no subject)

Jacqueline A Fallon jfallon at andover.edu
Mon Mar 23 09:01:16 EDT 2009


  

I hope that someone will be able to help me with this XML problem.  I'm
trying to create a download in XML format that will produce a file like
this:

<?xml version="1.0" standalone="yes"?>

<NewDataSet>

  <xs:schema id="NewDataSet" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

    <xs:element name="NewDataSet" msdata:IsDataSet="true"
msdata:MainDataTable="crs" msdata:UseCurrentLocale="true">

      <xs:complexType>

        <xs:choice minOccurs="0" maxOccurs="unbounded">

          <xs:element name="crs">

            <xs:complexType>

              <xs:sequence>

                <xs:element name="CRS_x0020_ID" type="xs:double"
minOccurs="0" />

                <xs:element name="CRS_x0020_NAME_x0020__x0020_"
type="xs:string" minOccurs="0" />

                <xs:element name="CRS_x0020_DEPT_x0020_"
type="xs:string" minOccurs="0" />

                <xs:element name="_x0020_SUBJECT_x0020_"
type="xs:string" minOccurs="0" />

                <xs:element name="_x0020_SHORT_x0020_TITLE_x0020_"
type="xs:string" minOccurs="0" />

                <xs:element name="_x0020_LONG_x0020_TITLE_x0020_"
type="xs:string" minOccurs="0" />

                <xs:element name="DECSRIPTION" type="xs:string"
minOccurs="0" />

              </xs:sequence>

            </xs:complexType>

          </xs:element>

        </xs:choice>

      </xs:complexType>

    </xs:element>

  </xs:schema>

  <crs>

    <CRS_x0020_ID>1104</CRS_x0020_ID>

 
<CRS_x0020_NAME_x0020__x0020_>ARAB-130</CRS_x0020_NAME_x0020__x0020_>

    <CRS_x0020_DEPT_x0020_>ARB</CRS_x0020_DEPT_x0020_>

    <_x0020_SUBJECT_x0020_>ARAB</_x0020_SUBJECT_x0020_>

    <_x0020_SHORT_x0020_TITLE_x0020_>Short Course in Beg.
Arabic</_x0020_SHORT_x0020_TITLE_x0020_>

    <_x0020_LONG_x0020_TITLE_x0020_>A Short Course in Beginning
Arabic</_x0020_LONG_x0020_TITLE_x0020_>

    <DECSRIPTION>Five class periods. This one-term course is intended as
a means for students to acquire some familiarity with the Arabic
language.  Students will be presented with authentic written and spoken
language, and will acquire basic functional skills. Students will
acquire some useful knowledge of the language, but the primary intent of
the course is to help students decide if they wish to pursue Arabic
further in college. Students interested in this course are encouraged
also to consider HIST-SS533/1 and HIST-SS533/2, and PHRE-530. Note that
a yearlong sequence of HIST-SS533/1 (fall), PHRE-530 (winter), and
ARAB-130 (spring) will provide students a useful overview of history,
religion, and language in an important region of the world. Open to
Uppers and Seniors only.</DECSRIPTION>

  </crs>

 

Since this is a standalone xml file, the schema should be included in
the download file.  I've tried setting up a separate schema and linking
the download to the schema however, the department that is requesting
this would like the file to include the schema.  I've tried wrapping it
into the XML.ROOT.ATTRIBUTE and the XML.VERSION  

If I tie it into the version, it looks like this:

035: DEFAULT XML.ALLOW.CHARACTERS\

036: @ID XML.NAME 'CRS_x0020_ID'\

037: CRS.NAME XML.NAME 'CRS_x0020_NAME_x0020__x0020_' \

038: P15.CRS.DEPT XML.NAME 'CRS_x0020_DEPT_x0020_' \

039: CRS.SUBJECT XML.NAME '_x0020_SUBJECT_x0020_' \

040: CRS.SHORT.TITLE XML.NAME '_x0020_SHORT_x0020_TITLE_x0020_'\

041: CRS.TITLE XML.NAME '_x0020_LONG_x0020_TITLE_x0020_'\

042: P15.CRS.ALL.DESC XML.NAME 'DECSRIPTION'\

043: XML.ROOT.NAME 'NewDataSet'\

044: XML.FILE.NAME 'crs'\

045: FIELD.GAP 6\

046: FORMAT XML\

047: XML.VERSION'<?xml version="1.0" standalone="yes"?><xs:schema
id="NewDataSet

" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas

-microsoft-com:xml-msdata"><xs:element name="NewDataSet"
msdata:IsDataSet="true"

 msdata:MainDataTable="crs"
msdata:UseCurrentLocale="true"><xs:complexType><xs:c

hoice minOccurs="0" maxOccurs="unbounded"><xs:element
name="crs"><xs:complexType

><xs:sequence><xs:element name="CRS_x0020_ID" type="xs:double"
minOccurs="0"/><x

s:element name="CRS_x0020_NAME_x0020__x0020_" type="xs:string"
minOccurs="0"/><x

s:element name="CRS_x0020_DEPT_x0020_" type="xs:string"
minOccurs="0"/><xs:eleme

nt name="_x0020_SUBJECT_x0020_" type="xs:string"
minOccurs="0"/><xs:element name

="_x0020_SHORT_x0020_TITLE_x0020_" type="xs:string"
minOccurs="0"/><xs:element n

ame="_x0020_LONG_x0020_TITLE_x0020_" type="xs:string"
minOccurs="0"/><xs:element

 name="DECSRIPTION" type="xs:string"
minOccurs="0"/></xs:sequence></xs:complexTy

pe></xs:element></xs:choice></xs:complexType></xs:element></xs:schema>'\

048:FILE _HOLD_ crs.xml OVERWRITING

 

 

 

 The download includes the schema directly after the version
declaration, Like this:
<?xml version="1.0" standalone="yes"?><xs:schema id="NewDataSet"
xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"><xs:element
name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="crs"
msdata:UseCurrentLocale="true"><xs:complexType><xs:choice minOccurs="0"
maxOccurs="unbounded"><xs:element
name="crs"><xs:complexType><xs:sequence><xs:element name="CRS_x0020_ID"
type="xs:double" minOccurs="0"/><xs:element
name="CRS_x0020_NAME_x0020__x0020_" type="xs:string"
minOccurs="0"/><xs:element name="CRS_x0020_DEPT_x0020_" type="xs:string"
minOccurs="0"/><xs:element name="_x0020_SUBJECT_x0020_" type="xs:string"
minOccurs="0"/><xs:element name="_x0020_SHORT_x0020_TITLE_x0020_"
type="xs:string" minOccurs="0"/><xs:element
name="_x0020_LONG_x0020_TITLE_x0020_" type="xs:string"
minOccurs="0"/><xs:element name="DECSRIPTION" type="xs:string"
minOccurs="0"/></xs:sequence></xs:complexType></xs:element></xs:choice><
/xs:complexType></xs:element></xs:schema>

<NewDataSet>

<crs>

      <CRS_x0020_ID>1104</CRS_x0020_ID>

 
<CRS_x0020_NAME_x0020__x0020_>ARAB-130</CRS_x0020_NAME_x0020__x0020_>

      <CRS_x0020_DEPT_x0020_>ARB</CRS_x0020_DEPT_x0020_>

      <_x0020_SUBJECT_x0020_>ARAB</_x0020_SUBJECT_x0020_>

      <_x0020_SHORT_x0020_TITLE_x0020_>Short Course in Beg.
Arabic</_x0020_SHORT_x0020_TITLE_x0020_>

      <_x0020_LONG_x0020_TITLE_x0020_>A Short Course in Beginning
Arabic</_x0020_LONG_x0020_TITLE_x0020_>

      <DECSRIPTION>Five class periods. This one-term course is intended
as a means for students to acquire some familiarity with the Arabic
language.  Students will be presented with authentic written and spoken
language, and will acquire basic functional skills. Students will
acquire some useful knowledge of the language, but the primary intent of
the course is to help students decide if they wish to pursue Arabic
further in college. Students interested in this course are encouraged
also to consider HIST-SS533/1 and HIST-SS533/2, and PHRE-530. Note that
a yearlong sequence of HIST-SS533/1 (fall), PHRE-530 (winter), and
ARAB-130 (spring) will provide students a useful overview of history,
religion, and language in an important region of the world. Open to
Uppers and Seniors only.</DECSRIPTION>

</crs>

 

 I cannot find a way to check this to see if it is valid.  

 

If I tie it into the XML.ROOT.ATTRIBUTE it doesn't bring any part of the
schema down .

 

If there is anyone who has experience with schemas and how they can be
tied into downloads, I would appreciate any advise you can offer.  Thank
you

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.cedarville.edu/pipermail/download-list/attachments/20090323/eb2b9f91/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 69751 bytes
Desc: image001.gif
URL: <http://mail.cedarville.edu/pipermail/download-list/attachments/20090323/eb2b9f91/attachment.gif>


More information about the download-list mailing list