Again, many thanks. I really appreciate it. The XSD is out of my control. It is a Government of Canada file and now I need to chase them down to see what the issues are.
Gary Mittleman Camgar Consultants Tel: 905-881-9942 Fax: 905-881-5377 Cell: 416-409-8653 Email: garym at camgar.ca Web: www.camgar.ca -----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: February-11-10 4:04 AM To: Gary Mittleman Cc: xmleditor-support at xmlmind.com Subject: Re: [XXE] Help on XML and Validate Parser Gary Mittleman wrote: > > Do you by chance know what this error means when I run it? > > > > How do I find out the line and element type? > > > > Many thanks in advance. > > > > > > WARNING: file:/C:/tmp/t4.xsd:6:49:Document Type Warning: missing > simpleType|complexType "NameType" [e-props-correct.1] > > WARNING: file:/C:/tmp/t4.xsd:57:72:Document Type Warning: missing > simpleType|complexType "decimal10Type" [e-props-orrect.1] > > WARNING: file:/C:/tmp/t4.xsd:79:61:Document Type Warning: missing > simpleType|complexType "decimal9Type" [e-props-correct.1] > > WARNING: file:/C:/tmp/t4.xsd:116:42:Document Type Warning: missing > simpleType|complexType "bnType" [e-props-correct.1] > > WARNING: file:/C:/tmp/t4.xsd:129:76:Document Type Warning: missing > simpleType|complexType "decimal13Type" [e-props-correct.1] > The schema t4.xsd is incomplete. But as the above errors are just warnings, may be this is harmless. > ERROR: file:/C:/tmp/ACTIVE2009T4.XML:2:13:Invalid Structure: element > type not found [cvc-type.1] > [:2:13: means line #2, character #13 (within the line)] My *guess* is that: * the schema, t4.xsd, has a target namespace (e.g. you'll find something like targetNamespace="http://www.acme.com/ns/foo" on its root element), * AND your document ACTIVE2009T4.XML has a root element which does *not* belong to this target namespace. *Fictional* example: ACTIVE2009T4.XML starts with: --- <bar> --- It should start with: --- <bar xmlns="http://www.acme.com/ns/foo"> ---

