Okay, here's a sample window, written through my Interface Writer.
xml code:
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
<!-- Written using Interface Writer 2.2 by WhizWeb Community -->
<Window Id="WndTest" Version="1">
<Attributes>
<Caption>Test Window</Caption>
</Attributes>
<TitleBar>
<AllowMaximize>true</AllowMaximize>
<Title>
<Prefix>Image</Prefix>
<Text>Test Window</Text>
</Title>
</TitleBar>
<Position Width="400" Height="300" InitialPos="Random">
<IsAbsolute>true</IsAbsolute>
<Resizeable Allowed="BothSides">
<MinWidth>400</MinWidth>
<MinHeight>300</MinHeight>
</Resizeable>
</Position>
<WindowTmpl/>
<Controls>
<Control xsi:type="RichEditControl" Id="EdtMain">
<Position Left="3" Top="0" Width="380" Height="223">
<Units>AllPixels</Units>
<Anchor Horizontal="LeftRightFixed" Vertical="TopBottomFixed"/>
</Position>
</Control>
<Control xsi:type="ButtonControl" Id="BtnOk">
<Position Left="3" Top="228" Width="100">
<Units>AllPixels</Units>
<Anchor Vertical="BottomFixed"/>
</Position>
<Image>
<Name>sounds-check</Name>
</Image>
<Caption>&Ok</Caption>
</Control>
<Control xsi:type="ButtonControl" Id="BtnCancel">
<Position Left="283" Top="228" Width="100">
<Units>AllPixels</Units>
<Anchor Horizontal="RightFixed" Vertical="BottomFixed"/>
</Position>
<Image>
<Name>icon-delete</Name>
</Image>
<Caption>&Cancel</Caption>
</Control>
</Controls>
</Window>
</Interfaces>
I don't know if it's possible, but what I would like to do is enumerate the nodes within Interface/Window/Controls/Control. For the ones that aren't supported directly (i.e. not position, caption or help), I would like to be able to grab the code. For example, say I have a variable called ControlExtra.
xml code:
<Control xsi:type="ButtonControl" Id="BtnOk">
<Position Left="3" Top="228" Width="100">
<Units>AllPixels</Units>
<Anchor Vertical="BottomFixed"/>
</Position>
>>> <Image><<<
>>> <Name>sounds-check</Name><<<
>>> </Image><<<
<Caption>&Ok</Caption>
</Control>
I need the script to find the highlighted lines, because they're not recognized elements. I then need the variable to store all of the code (including nodes), like this below.
code:
<Image>
<Name>sounds-check</Name>
</Image>
Is this possible?