> 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? > > ... > > 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/>
You don't need to add anything. That syntax denotes an empty element. It's identical to <address2></address2> as far as an XML parser is concerned. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294534 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

