XML Declaration

LANSA Web Functions

XML Declaration

XML documents normally include an XML declaration in its first line.

Example:

<?xml version="1.0" encoding="ISO-8859-1"?>

 

 

According to the W3C recommendation, an XML declaration is not required in all XML documents. Unless you need your web pages to be handled as XML documents, do not include the XML declaration.

By default, LANSA for the Web does not include this declaration.

 

Warning: Some user agents will render the Web page as an XML tree instead of rendering the page as HTML content if they see the XML declaration.  For more information, refer to Serving XHTML Pages as Pure XML Pages.