home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / xmlformat.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  649 b   |  27 lines

  1. <!-----------------------------------------------------------
  2.   This example illustrates use of the XMLFormat function. 
  3.   ----------------------------------------------------------->
  4. <HTML>
  5. <HEAD>
  6. <TITLE>XMLFormat</TITLE>
  7. </HEAD>
  8.  
  9. <BODY>
  10. <H3>XMLFormat</H3>
  11. <P>
  12. This example shows how XMLFormat is used to escape special XML 
  13. characters and make the  of XML using ColdFusion easy.
  14. </P>
  15. <XMP>
  16. <?xml version="1.0"?> 
  17. <CFOUTPUT>
  18. <someXML>
  19.     <someElement someAttribute="#XMLFormat("'a quoted value'")#> 
  20.         #XMLFormat("    Body of element to be passed here.    ")#
  21.     </someElement>
  22. </someXML>    
  23. </CFOUTPUT>
  24. </XMP>
  25. </BODY>
  26. </HTML>       
  27.