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 [url]http://forums.devshed.com/archive/5/2003/02/3/52511[/url]

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