InfoViewer

Introduction

The InfoViewer gives an interface to browse, manipulate and create xml files. It provides a splitter view with the xml-tree to the left and a form for the currently selected item to the right. Manipulate the xml-tree by rightclicking the appropriate item. Save or Load xml from the "File"-menu.

Python Interface

The InfoViewer can be created via a Python interface. It takes an InfoHandle as it's argument. The following python code creates it.

#empty xml
ih = CreateInfo()
iv = gui.CreateInfoViewer(ih)

#load xml from file
ih = LoadInfo("filename")
iv = gui.CreateInfoViewer(ih)

The InfoViewer instance iv provides the following methods:

GetInfoHandle()
returns the current InfoHandle

Manipulating the Data

Manipulate an item or a group by rightclicking it. This will bring up a submenu with context specific options. While an item or group is selected you can edit it to the right.

The following options are available when manipulating the xml-tree:

  • Add Attribute
  • Add Group
  • Add Item
  • Set Name
  • Change Type

Tree Example

An example of a xml created from scratch


Back to gui

Attachments