| Lukas Feiler 2007-09-30, 7:04 pm |
| 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
|