FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[ask] is this a bug?

 
Post new topic   Reply to topic     Forum Index -> SimpleXMLD
View previous topic :: View next topic  
Author Message
DuronXP



Joined: 09 Apr 2007
Posts: 3

PostPosted: Mon Nov 05, 2007 10:06 am    Post subject: [ask] is this a bug? Reply with quote

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
Back to top
View user's profile Send private message
hduregger



Joined: 15 Aug 2007
Posts: 11

PostPosted: Sun Nov 18, 2007 8:23 am    Post subject: Reply with quote

it might be related to the bug I've posted a ticket for, the fix is included there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> SimpleXMLD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group