Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Is there a schema for the agent.xml format?
Is there a schema for the agent.xml format? [message #129732] Mon, 05 May 2008 13:50
Joachim Haensel is currently offline Joachim Haensel
Messages: 10
Registered: July 2009
Junior Member
Hi,

i want to validate an agent.xml document but i couldn't find a schema. A
look into the Agent Controllers' src from CVS reveals that there is
also no schema used for validation. For now I'm using this generated
one, maybe somebody can give a comment on if this is sufficiently correct:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Agent">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="Interface"
type="xs:string" />
<xs:element name="SingleInstance" type="xs:unsignedByte" />
<xs:element name="Bound" type="xs:unsignedByte" />
<xs:element name="MaxControllers" type="xs:byte" />
<xs:element name="MaxObservers" type="xs:byte" />
<xs:element name="ConfigFile" type="xs:string" />
<xs:element name="LaunchConfiguration">
<xs:complexType>
<xs:sequence>
<xs:element name="launchInfo">
<xs:complexType>
<xs:sequence>
<xs:element name="Application">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded"
name="Variable">
<xs:complexType>
<xs:attribute name="name"
type="xs:string" use="required" />
<xs:attribute name="value"
type="xs:string" use="required" />
<xs:attribute name="position"
type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:element maxOccurs="unbounded"
name="Parameter">
<xs:complexType>
<xs:attribute name="value"
type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="executable"
type="xs:string" use="required" />
<xs:attribute name="location" type="xs:string"
use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:schema>
Previous Topic:A time-out occurred whiel attempting to launch the process
Next Topic:Monitor Caller Object with probekit TPTP
Goto Forum:
  


Current Time: Wed Sep 03 02:18:48 GMT 2014

Powered by FUDForum. Page generated in 0.01649 seconds