Altova XMLSpy 2024 Enterprise Edition

Method: GenerateDTDOrSchema (nFormat as SPYDTDSchemaFormat, nValuesList as integer, nDetection as SPYTypeDetection, nFrequentElements as SPYFrequentElements)

 

Parameters

nFormat

Sets the schema output format to DTD, or W3C.

 

nValuesList

Generate not more than this amount of enumeration-facets per type. Set to -1 for unlimited.

 

nDetection

Specifies granularity of simple type detection.

 

nFrequentElements

Shall the types for all elements be defined as global? Use the value spyGlobalComplexType to define them on global scope. Otherwise, use  the value spyGlobalElements.

 

Description

Use this method to automatically generate a DTD or schema for the current XML document.

For a finer tuning of DTD / schema generation, use GenerateDTDOrSchemaEx.

Note that this functionality is not available in ZIP View only. See Document.CurrentViewMode. and SPYViewModes.

 

Errors

1400

The object is no longer valid.

1407

Invalid parameter or invalid address for the return parameter was specified.

 

© 2017-2023 Altova GmbH