RazorSQL からXML データに連携。

詳細情報をご希望ですか?

無償トライアル:

ダウンロードへ

製品の詳細情報へ:

XML JDBC Driver

XML データストア連携のパワフルなJava アプリケーションを素早く作成して配布。



データベース管理ツールのRazorSQL からGUI でウィザードとクエリからXML データに連携する。.

CData JDBC Driver for XML を使って、各種ツールからXML データにアクセスすることが可能になります。本記事では、XML データにRazorSQL のウィザードから連携利用する方法を紹介します。

XML JDBC Data Source の設定

  1. RazorSQL アプリケーションを開いて、Connections メニューから、Add Connection Profile -> Other -> JDBC にナビゲートします。
  2. Connection Wizard で、以下を設定します:
    • Driver Location:JDBC Driver のインストールディレクトリのlib サブフォルダに設定します。
    • Driver Class: ドライバークラスを cdata.jdbc.xml.XMLDriver に設定します。
    • Username:ユーザー名。(ユーザー名をブランクにして、JDBC URL 内で設定することも可能です。)
    • Password:パスワード。(ユーザー名をブランクにして、JDBC URL 内で設定することも可能です。)
    • JDBC URL:接続パラメータを入力します:jdbc:xml: から始まるJDBC URL を入力します。接続プロパティをカンマ区切りで書きます。

      See the Getting Started chapter in the data provider documentation to authenticate to your data source: The data provider models XML APIs as bidirectional database tables and XML files as read-only views (local files, files stored on popular cloud services, and FTP servers). The major authentication schemes are supported, including HTTP Basic, Digest, NTLM, OAuth, and FTP. See the Getting Started chapter in the data provider documentation for authentication guides.

      After setting the URI and providing any authentication values, set DataModel to more closely match the data representation to the structure of your data.

      The DataModel property is the controlling property over how your data is represented into tables and toggles the following basic configurations.

      • Document (default): Model a top-level, document view of your XML data. The data provider returns nested elements as aggregates of data.
      • FlattenedDocuments: Implicitly join nested documents and their parents into a single table.
      • Relational: Return individual, related tables from hierarchical data. The tables contain a primary key and a foreign key that links to the parent document.

      See the Modeling XML Data chapter for more information on configuring the relational representation. You will also find the sample data used in the following examples. The data includes entries for people, the cars they own, and various maintenance services performed on those cars.

      一般的なURL ::

      jdbc:xml:URI=C:\people.xml;DataModel=Relational;
  3. See the Getting Started chapter in the data provider documentation to authenticate to your data source: The data provider models XML APIs as bidirectional database tables and XML files as read-only views (local files, files stored on popular cloud services, and FTP servers). The major authentication schemes are supported, including HTTP Basic, Digest, NTLM, OAuth, and FTP. See the Getting Started chapter in the data provider documentation for authentication guides.

    After setting the URI and providing any authentication values, set DataModel to more closely match the data representation to the structure of your data.

    The DataModel property is the controlling property over how your data is represented into tables and toggles the following basic configurations.

    • Document (default): Model a top-level, document view of your XML data. The data provider returns nested elements as aggregates of data.
    • FlattenedDocuments: Implicitly join nested documents and their parents into a single table.
    • Relational: Return individual, related tables from hierarchical data. The tables contain a primary key and a foreign key that links to the parent document.

    See the Modeling XML Data chapter for more information on configuring the relational representation. You will also find the sample data used in the following examples. The data includes entries for people, the cars they own, and various maintenance services performed on those cars.

XML からテーブルを選択してクエリを実行

接続を確立後、Wizard が閉じ、接続はコネクションパネルで接続が利用可能になります。テーブルをクエリしてみます。