Defining custom tag

"Jigar Rasalawala" <[email protected]> Wed, 11 Aug 2004 19:04:11 +0530
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
Hi, SwiXml users

I am new SwiXml technology. I just started using SwiXml few weeks back. I am
pretty impressed with idea having XML which defines UI. A step further, I
want to define my own tag. I looked at the example given on site. I want
something different than that.

I want to define a custom tag, having other tags as children to this tag.
For e.g.

<?xml version="1.0" encoding="UTF-8"?>
<frame size="640,450" title="Hello SWIXML World">
  <panel constraints="BorderLayout.CENTER" layout="GridLayout(4,4,5,5)"
bgcolor="black">
         <parameter id="addressLines" label="test" type="referenced">
	         <parameter id="addressLines1" label="test1" readonly="true"
type="String" />
	         <parameter id="addressLines2" label="test2" mandatory="true" />
   	         <parameter id="addressLines4" label="test4" mandatory="true"
readonly="true"/>
         </parameter>
  </panel>
</frame>


Here, <parameter> is custom tag, which I want to define and it can contain
more than one parameters as children. Later I also want to write method,
which gives me descendent of parent <parameter>. Can somebody provide me
hint or idea how to move further ?


Help appreciated.


Thanks & Regards
Jigar