From:             kris_beyers at hotmail dot com
Operating system: WindowsXP
PHP version:      4.3.2
PHP Bug Type:     DOM XML related
Bug description:  Suggestion for DOM - creating XML documents with structure from a 
recordset

Description:
------------
Hi All,
 
It's not really a bug, but suggestion.. couldn't find a post address for
that :oS

I just came up a nice suggestion for the XML DOM..
Now we still program with loops to give the rows, comming from the
database-table, to DOM.  Whereupon DOM creates an XML document.. like this
example http://forums.devshed.com/archive/5/2003/02/3/52511
 
I was wondering if we could DOM do the transformation from a recordset
directly to XML data, using a DTD (or XSD) file for the structure. DOM
itself would look for the column names(or even synonyms of column names)
in the recordset itself and match them with the names found in the DTD (or
XSD) file, an error will occur if one name is not found.
When there are multiple rows, DOM will loop to process each row. The
validation of data types should still occur only during design time. This
way the loops in the serverscript are gone :o) I know Microsoft has
something like that, but they don't use DTD (or XSD) or other to build a
structure..
Hope you like the idea.
 
With kind regards
Kris Beyers



-- 
Edit bug report at http://bugs.php.net/?id=24993&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24993&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24993&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24993&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24993&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24993&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24993&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24993&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24993&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24993&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24993&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24993&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24993&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24993&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24993&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24993&r=gnused

Reply via email to