View previous topic :: View next topic |
Should SimpleXMLD be stricted or error torrent? |
It should be error torrent |
|
0% |
[ 0 ] |
It should be strict. |
|
100% |
[ 4 ] |
|
Total Votes : 4 |
|
Author |
Message |
brianhsu
Joined: 17 Jan 2007 Posts: 9 Location: Taiwan
|
Posted: Mon Oct 01, 2007 9:13 am Post subject: Should SimpleXMLD be stricted or error torrent? |
|
|
Currently I haven't decide this library should be error-torrent or been strict when error is occurred.
For example, when read an node or attribute does not exist, should it throw a exception anyway or should it create an node on the fly? |
|
Back to top |
|
|
csauls
Joined: 27 Mar 2004 Posts: 278
|
Posted: Mon Oct 01, 2007 2:45 pm Post subject: |
|
|
I would make it strict, but in the case of attributes provide a way to request its value and provide a default value to be handed back when it isn't found. _________________ Chris Nicholson-Sauls |
|
Back to top |
|
|
|