DuronXP
Joined: 09 Apr 2007 Posts: 3
|
Posted: Mon Nov 05, 2007 10:06 am Post subject: [ask] is this a bug? |
|
|
Hello there,
Code: | <project name="project_geger" caption="Project Geger" description="whatever, its secreet">
<config type="style" src="DB::select deskripsi from company where company='JB 1'"/>
<config type="style" src="file::hello.css">cssasdddsa</config>
<config type="database" src="127.0.0.1::root::triadpass"/>
<page name="About" caption="Company Profile">
</page>
<page name="register" caption="Pendaftaran">
<form type="text" name="txtNama" caption="Nama" dst="DB::tblRegistrasi"/>
<form type="combo" name="txtJK" caption="Jenis Kelamin" dst="DB::tblRegistrasi"/>
<form type="text" name="txtAlamat" caption="Alamat" dst="DB::tblRegistrasi"/>
</page>
<page name="help" caption="Help">
</page>
</project> |
my code:
Code: |
SimpleXML[] xnodePage = xroot["page"]; //get page tag
for(int i=0; i<xnodePage.length;i++)
{
Stdout.format("========================{}============================", xnodePage[i].tag).newline;
foreach(char[] key, char[] value;xnodePage[i].attributes)
{
Stdout.format("Key[{}] = [{}]", key, value).newline;
SimpleXML[] xnodeForm = xnodePage["form"];
for(int a=0;a<xnodeForm.length;i++)
{
foreach(char[] key, char[] value;xnodeForm[i].attributes)
{
Stdout.format("Key[{}] = [{}]", key, value).newline;
}
}
}
}
|
The problem is after <page name="register" .....
<page name="help" .... dont show up |
|