Home. 
.

transparent

transparent

transparent

XMLSpy DTD/Schema FAQ

DTD/Schema FAQ


DTD/Schema FAQ Answers

  • When I open a file in Schema Design view, or switch to this view from another view, my comments are moved. Why is this?
    The Schema Editor does not edit the Schema directly, but instead it loads a Schema and then generates a new one when saving or switching to another view. It is therefore able to keep the whole Schema-relevant information in it's place, but is unable to retain the position of comments, because comments have no proper assignment - i.e. there is no way to find out if a comment belongs to the next statement, to the previous statement or to the whole Schema. We therefore recommend the usage of Annotations instead of comments as Annotations have a clearly defined relation to every definition.
  • Can I validate according to earlier versions of the W3C Schema specification?
    XMLSpy® 2010 supports Catalogs. Although we include Catalog files for earlier W3C Schema versions it is only possible to create files according to these earlier specifications, it is not possible to validate against them. XMLSpy® 2010 provides an automatic conversion from some of the earlier W3C Schema standards to the newest standard.
  • Is it possible to generate a sample file from a Schema or DTD?
    It is possible to generate a sample file from a Schema or DTD, just open the Schema/DTD file and select " Generate sample XML file" from the DTD/Schema menu.

  • When I open a file created according to an earlier Schema specification in XMLSpy® 2010 (i.e. 4/2000 or 10/2000) and it is updated to conform to the latest Schema recommendation there are inconsistencies. Why is this?
    There may be inconsistencies because some data types and constructs are new in the latest Schema recommendation and others no longer exist. XMLSpy® 2010 will always try to find the most appropriate fit but it is best to go through your document to check that the appropriate data types and constructs are indeed being used.
  • Is it possible to show attributes in the Schema Design View?
    As of XMLSpy® 2010 it is possible to display attributes in the Schema Design View.
  • I receive an error message "Unable to show Schema: Schema has to begin with a schema-element" yet my Schema is perfectly valid, why?
    You will get this error when trying to view anything other than a W3C Schema in the Schema Design View.
  • Why are the Schema Design options greyed out?
    These options are only available if you are in the Schema Design View. Switch to the Schema Design View by using the View Menu or the respective toolbar button.
  • When I convert a DTD to a Schema or vice versa, the resulting document is sometimes invalid, why?
    It can happen that relatively simple documents can be converted without any problem and that the resulting converted document validates correctly. It may however also be the case that the resulting converted document is invalid. This depends on the complexity and structure of the document being converted and on what kind of document it is being converted into. XMLSpy® 2010 offers the conversion functionality to provide a "framework" which may need further editing. There is no guarantee that all conversions will be valid as DTDs and Schemas have different capabilities (just one of which is the fact that a DTD only supports global elements whereas Schemas support the concept of both global and local elements).

  • Why can I add a second annotation to an element in the Text View but not in the Schema Design View?
    In the Schema Design View only one annotation can be added per element. It is possible to add a second annotation for an element by simply switching to the Text View and entering the annotation manually. This also applies to attributes.
  • Why is the root element not the first element after the conversion from a Schema to a DTD?
    Since the order of elements does not matter in a DTD, XMLSpy® 2010 sorts them alphabetically.

  • What Schema dialect should I be using?
    You should switch to the new W3C XML Schema Definition Language (XSDL) as soon as possible. XSDL is already widely supported by major industry leaders and has the full backing of the W3C. The integrated XML Schema Design View allows you to conveniently work with W3C Schemas.
  • Is it possible to display all error messages when validating a file as opposed to only the first error?
    With XMLSpy® 2010 it is not possible to display all error messages at once. This way of reporting errors often does not display the true number of errors as one error message may be dependant on another one, and will therefore more often than not, output more errors than there actually are in the document.
  • If I open an instance document and the corresponding Schema in XMLSpy® 2010 and then make alterations to the Schema, XMLSpy® 2010 continues to validate the instance file as if the changes had never been made. Why is this?
    If your schemaLocation is referencing an URL, please ensure that the “Cache DTD/Schema files in memory” setting in the Tools | Options | File is not selected.
  • What are those little square boxes shown in some of my comment sections in the Schema /WSDL view?
    Those are a representation of the End Of Line (EOL) characters in a multi-line comment.


transparent
Print
Mail
Digg
delicious
.

Read the Altova Blog
Read the Altova Blog!

.

NEW Get the latest Altova announcements, learn about new product features, read tech tips and industry info at the Altova Blog. Subscribe now!

.
.

transparent

transparent