When I output a query's results to an XML file, my code which is correct
output the XML without the beginning element tag.  This seems to happen
when there's no data or NULL data for this element.  Is it as simnple as
inclusing and    placeholder?

So for example ...

My code ...
   <address>
    <name>#trim(FirstName)# #trim(MidInit)# #trim(LastName)#</name>
    <address1>#trim(Address1)#</address1>
    <address2>#trim(Address2)#</address2>
    <city>#trim(City)#</city>
    <state>#trim(StateOrProvince)#</state>
    <country>United States</country>
    <postalCode>#trim(PostalCode)#</postalCode>
   </address>

What get's written to my XML file ... (addres2 is missing it's beginning tag)

   <address>
    <name>MARY ANN  SCRODIN</name>
    <address1>659 RT 10</address1>
            <address2/>
    <city>Germantown</city>
    <state>NY</state>
    <country>United States</country>
    <postalCode>12526</postalCode>
   </address>


Thanks

D

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294531
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to