PHP Classes

Bug #1

Recommend this page to a friend!

      XML Document  >  All threads  >  Bug #1  >  (Un) Subscribe thread alerts  
Subject:Bug #1
Summary:There is a bug in this class
Messages:2
Author:Julio Cezar Novais Raffaine
Date:2007-06-20 13:11:20
Update:2007-06-20 13:20:37
 

  1. Bug #1   Reply   Report abuse  
Picture of Julio Cezar Novais Raffaine Julio Cezar Novais Raffaine - 2007-06-20 13:11:20
Wow, this class is realy amazing, its what I'm looking forward. But there is a huge problem in the class. When you load the xml, it loads wrongly the attributes. Let me put an example:
<link id="1" group="all" type="simple">
<name>Teste</name>
</link>

It loads like this:
<link group="all" type="simple" type="simple">
<name>Teste</name>
</link>

If you(or someone else) know how to correct this bug, this class will be complete.

Bye

  2. Re: Bug #1   Reply   Report abuse  
Picture of Julio Cezar Novais Raffaine Julio Cezar Novais Raffaine - 2007-06-20 13:20:37 - In reply to message 1 from Julio Cezar Novais Raffaine
I've found that the mistake is in function SetAttribute. If you comment all the first part of this function, the result is OK.

Take a look in your code, maybe there is something else wrong.