Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Following Schemas will be ignored message [Thread Next] Re: Following Schemas will be ignored messageTo: NULL Date: 10/3/2006 1:52:00 PM I made the changes as suggested & I still get the pop-up. It pops up like a "tool tip" when i move the mouse over the businessUnit opening tag. Incidentally I added the targetNamespace attribute as an attemtp to solve this problem. "S. Huseyin Ulger" wrote: > Are you getting the same pop up message? Your schema and instance xml files > have problems. > > On the schema you should either change use="required" to optional or remove > the attribute, or remove default attribute value. > <xs:attribute name="version" type="xs:string" use="required" > default="1.0.0.0" /> > On instance xml file, you need to remove targetNamespace attribute since it > is not defined in the schema, just having xmlns definition is enough. > > -- > S. Huseyin Ulger [MSFT] > MSXML Dev > > > "Brent Rogers" wrote: > > > Still having Problems > > XSD:========================= > > <?xml version="1.0" encoding="utf-8"?> > > <xs:schema id="DataLoaderSchema" > > elementFormDefault="qualified" > > xmlns="http://tempuri.org/DataLoaderSchema.xsd" > > xmlns:xs="http://www.w3.org/2001/XMLSchema" > > targetNamespace="http://tempuri.org/DataLoaderSchema.xsd"> > > <xs:attributeGroup name="dbConnect"> > > <xs:attribute name="dbServer" type="xs:string" /> > > <xs:attribute name="dbDatabase" type="xs:string" /> > > <xs:attribute name="dbUserId" type="xs:string" /> > > <xs:attribute name="dbPassWord" type="xs:string" /> > > </xs:attributeGroup> > > <xs:attributeGroup name="delimitedColumn"> > > <xs:attribute name="columnDelimit" type="xs:string" /> > > <xs:attribute name="rowDelimit" type="xs:string" /> > > </xs:attributeGroup> > > <xs:element name="businessUnit"> > > <xs:complexType> > > <xs:sequence> > > <xs:sequence maxOccurs="9999" minOccurs="1"> > > <xs:element name="system"> > > <xs:complexType> > > <xs:sequence> > > <xs:sequence minOccurs="1" maxOccurs="9999"> > > <xs:element name="server"> > > <xs:complexType> > > <xs:sequence> > > <xs:sequence maxOccurs="9999" minOccurs="1"> > > <xs:element name="subSystem"> > > <xs:complexType> > > <xs:sequence> > > <xs:sequence minOccurs="0" maxOccurs="9999"> > > <xs:element name="fixedColumn"> > > <xs:complexType> > > <xs:sequence /> > > <xs:attribute name="columnName" > > type="xs:string" /> > > <xs:attribute name="columnStart" > > type="xs:unsignedInt" /> > > <xs:attribute name="columnWidth" > > type="xs:unsignedInt" /> > > </xs:complexType> > > </xs:element> > > </xs:sequence> > > </xs:sequence> > > <xs:attribute name="name" type="xs:string" > > use="required" /> > > <xs:attribute name="order" type="xs:int" > > use="required" /> > > <xs:attribute name="dbSystem" type="xs:string" > > use="required" /> > > <xs:attributeGroup ref="dbConnect" /> > > <xs:attributeGroup ref="delimitedColumn" /> > > <xs:attribute name="parser" type="xs:string" /> > > </xs:complexType> > > </xs:element> > > </xs:sequence> > > </xs:sequence> > > <xs:attribute name="name" type="xs:string" > > use="required" /> > > <xs:attribute name="url" type="xs:string" > > use="required" /> > > <xs:attribute name="passWord" type="xs:string" /> > > <xs:attribute name="order" type="xs:int" > > use="required" /> > > <xs:attribute name="userId" type="xs:string" /> > > <xs:attribute name="authType" type="xs:string" /> > > </xs:complexType> > > </xs:element> > > </xs:sequence> > > </xs:sequence> > > <xs:attribute name="name" type="xs:string" /> > > </xs:complexType> > > </xs:element> > > </xs:sequence> > > <xs:sequence maxOccurs="9999" minOccurs="0"> > > <xs:element name="object"> > > <xs:complexType> > > <xs:sequence /> > > <xs:attribute name="id" type="xs:string" use="required" /> > > <xs:attribute name="name" type="xs:string" use="required" /> > > <xs:attribute name="assembly" type="xs:string" use="required" /> > > <xs:attribute name="version" type="xs:string" use="required" > > default="1.0.0.0" /> > > <xs:attribute name="publicKey" type="xs:string" use="required" > > /> > > </xs:complexType> > > </xs:element> > > </xs:sequence> > > </xs:sequence> > > <xs:attribute name="name" type="xs:string" /> > > </xs:complexType> > > </xs:element> > > </xs:schema> > > ============================ > > > > XML:========================= > > <?xml version="1.0" encoding="utf-8"?> > > <businessUnit name="MyBusinessUnit" > > targetNamespace="http://tempuri.org/DataLoaderSchema.xsd" > > xmlns="http://tempuri.org/DataLoaderSchema.xsd" > > > > > <system name="MySystem"> > > <server name="MyServer2" > > order="2" > > url="" > > userId ="" passWord=""> > > <subSystem name="minor3" order="1" dbSystem="Custom"> > > </subSystem> > > </server> > > <server name="MyServer1" > > order="1" > > url="" > > userId="" > > passWord=""> > > <subSystem name="minor2" order="2" dbSystem="SQLServer"> > > <fixedColumn columnName="Col1" columnStart="1" columnWidth="10"/> > > <fixedColumn columnName="Col2" columnStart="11" columnWidth="10"/> > > </subSystem> > > <subSystem name="minor1" order="1" dbSystem="MySQL"/> > > </server> > > </system> > > <system name="System2"> > > <server name="Server2" > > order="2" > > url="" > > userId="" > > passWord="" > > > > > <subSystem name="minor4" > > dbSystem="xyz" > > order="1"/> > > </server> > > </system> > > <object id="SqlServer" /> > > </businessUnit> > > ============================ > > > > I don't know if I have some other file out there that is confusing my > > system. I did try a reboot to see if for some reason VisualStudio had Cached > > something. But I still get this popup. > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
