CData Python Connector for XML

Build 25.0.9440

CreateSchema

Generates a schema file that defines the structure of an XML collection, including element names and data types.

CreateSchema

データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。

スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。

本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。

Input

Name Type Description
TableName String Specifies the name of the XML table for which the schema file will be created.
URI String Specifies the Uniform Resource Identifier (URI) of the XML resource from which the schema will be generated.
XPath String Specifies the XPath expression that identifies a repeating element at the same hierarchy level within the XML document. This path determines how the document is divided into multiple rows.
WriteToFile String Indicates whether the generated schema should be written directly to a file. The default value is 'true'. To write the schema to FileStream or FileData instead, set to 'false'.
FileName String Specifies the full name and path of the generated schema file.
Method String Defines the HTTP method used to retrieve the XML data, such as GET or POST.

The default value is GET.

ContentType String Specifies the Content-Type header included in the request, particularly when sending data through the PostData field.
Data String Contains the data payload to be sent in the body of the HTTP request when applicable.

Result Set Columns

Name Type Description
Result String Indicates whether or not the operation was successful.
FileData String Returns the generated schema content encoded in base64. This output is provided only when WriteToFile is set to 'false' and FileStream is not used.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9440