<?xml version="1.0"?>
<role-list>
<role name="Runner" >
<component shorthand="DefaultRunner"
class="DefaultRunner"
/>
<component shorthand="AnotherRunner"
class="AnotherRunner"
/>
</role> </role-list>
the xconf file
<my-system>
<AnotherRunner id="Runner.Another" name="I M ANOTHER RUNNER" age="18" />
<AnotherRunner id="Runner.Another0" name="I M ANOTHER RUNNER0" weight="68" default="true"/> <DefaultRunner id="Runner.Default" name="I M DEFAULT RUNNER"/>
</my-system>
This is the right form of the xconf file, but can I write it this way?
<my-system>
<Runner description="the bootstrap class">
<AnotherRunner id="Runner.Another" name="I M ANOTHER RUNNER" age="18" />
<AnotherRunner id="Runner.Another0" name="I M ANOTHER RUNNER0" weight="68" default="true"/> <DefaultRunner id="Runner.Default" name="I M DEFAULT RUNNER"/>
</Runner>
</my-system>
and the roles file changed to this
<?xml version="1.0"?>
<role-list>
<role name="Runner" shorthand="Runner"> //added shorthand in order to use in xconf file
<component shorthand="DefaultRunner"
class="DefaultRunner"
/>
<component shorthand="AnotherRunner"
class="AnotherRunner"
/>
</role> </role-list>
yet seems this just wont work, but I really need some configuration attributes to describe the Runner, like the attribute "description" I had in the second xconf file, how to achive this then?
Thanks Mike
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
