ClearSCADA CS2017R1: Generating a CDBObject Schema

Claire Rousseau1 min read
SCADA ConfigurationSchneider ElectricTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Generate a navigable ClearSCADA CS2017R1 schema view by reading the local schema endpoint, recursively walking the XML hierarchy under CDBObject, and rendering the result as SVG or an HTML5 textual drill-down. The available generated hierarchy includes every installed driver except WITS.

Define the schema coverage

The SVG represents the class hierarchy beneath CDBObject. Its coverage depends on the drivers installed on the ClearSCADA system used for generation; the documented artifact included all installed drivers except WITS. Treat it as a snapshot of that installation rather than proof that every possible driver class is present.

Read and traverse the local schema

The generator was implemented in VB.NET. It parsed XML tags from the local http://localhost/schema/cdbobject endpoint and used recursion to descend through the object hierarchy.

  1. Open the schema endpoint on the ClearSCADA host and confirm that it returns XML for CDBObject.
  2. Parse the returned XML tags in VB.NET.
  3. Recursively process child entries to build the hierarchy.
  4. Format the resulting hierarchy as input for the selected tree renderer.
Schema source: http://localhost/schema/cdbobject
Root object: CDBObject
Traversal: recursive XML-tag processing

Select the output format

Output Content Viewer constraint
SVG Schema hierarchy under CDBObject Opens directly in a browser; no special viewer is required
HTML textual drill-down Configuration, data, and methods beneath CDBObject Use Chrome or another HTML5-compliant browser; the source specifically excludes IE

Use SVG when the class hierarchy is the primary deliverable. Use the HTML version when engineers need to drill into configuration fields, data, and methods.

Verify the generated schema

Open the SVG in a browser and confirm that its root is CDBObject and that the expected installed-driver branches appear. For the HTML output, verify that configuration, data, and method entries can be expanded in an HTML5-compliant browser. Record the missing WITS branch as an intentional coverage limitation of this artifact.

FAQ

How do I export the ClearSCADA CDBObject schema?

Read XML from http://localhost/schema/cdbobject, recursively traverse its tags, and format the hierarchy for an SVG or HTML tree renderer.

Can I open the ClearSCADA schema SVG without special software?

Yes. The generated SVG opens directly in a web browser without a dedicated SVG application.

Why is WITS missing from the CS2017R1 schema SVG?

The documented generator system had all drivers installed except WITS, so the resulting hierarchy does not include that driver. Schema coverage reflects the installation used to generate the artifact.

Back to blog