RE: Query2XML
| From: | Lukas Feiler | Date: | Sun, 30 Sep 2007 21:20:45 +0000 |
| Subject: | RE: Query2XML | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28020@lists.php.net to get a copy of this message | ||
Hi John!
please CC to pear-general@lists.php.net - other people will profit from this
too
What you want is this:
'attributes' => array(
'datatype' => '?datatype'
)
Whenever your attribute/element name differs from the value specification
(prefixes included), you need to specify the attribute/element name
explicitly.
Cheers,
Lukas
-----Original Message-----
From: John P. McCaskey [mailto:mccaskey@anthemfoundation.org]
Sent: Sunday, September 30, 2007 1:58 PM
To: 'Lukas Feiler'
Subject: RE: Query2XML
Lucas,
I entered
'attributes' => array ('?datatype'),
As desired, when the column named 'datatype' had some non-null value, I got
an attribute, but the ? was included:
<field ?datatype="date">
Is that how it should behave? If so, what did I do wrong?
John