Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in XSD file
Message
 
 
To
10/01/2008 06:02:14
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01280761
Message ID:
01280826
Views:
17
Thank you for your help. But I didn't think that Page was the root element of the XML file. Please see the entire XML in the message I sent to Sergey.

>Error is in definition of root element:
>
><xsd:element name="Page" minOccurs="0" maxOccurs="unbounded">
>
>
>minOccurs and maxOccurs are not allowed as attributes in root element.
>
>
>
>>I am getting an error message "Unable to infer XML schema" when working with the followings xsd file:
>>
>>
>><?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
>><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
>>	<xsd:element name="Page" minOccurs="0" maxOccurs="unbounded">
>>		<xsd:complexType>
>>			<xsd:sequence>
>>				<xsd:element name="SendPage" type="xsd:string" />
>>				<xsd:element name="PageNumber" type="xsd:string" />
>>				<xsd:element name="DayFrom" type="xsd:string" />
>>				<xsd:element name="DayTo" type="xsd:string" />
>>				<xsd:element name="TimeFrom" type="xsd:string" />
>>				<xsd:element name="TimeTo" type="xsd:string" />
>>				<xsd:element name="SmtpIp" type="xsd:string" />
>>				<xsd:element name="SenderName" type="xsd:string" />
>>				<xsd:element name="SenderEmail" type="xsd:string" />
>>			</xsd:sequence>
>>		</xsd:complexType>
>>	</xsd:element>
>></xsd:schema>
>>
>>
>>What can be wrong with the above file?
>>
>>Thank you
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform