For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > September 2007 > RE: Query2XML









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: Query2XML
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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com