XML Formatting in Advanced PDF/HTML Templates

When working in advanced PDF/HTML templates, such as email, fax, and marketing, it is important that you use valid XML formatting. Invalid formatting can result in broken pages. Code can seem to work when it is opened in a single page, but the same code can cause broken pages when included in other pages, like Activity View.

Some examples of invalid XML include:

Format tables using CSS. The <table> method of formatting tables is obsolete and prone to user error.

You shouldn't use CSS formatting outside of the <head> and <body> sections. Any content between </head> and <body> or after </body> is suspicious and can be problematic because malicious JavaScripts are often placed there.

To reduce the risk of invalid XML formatting, copy the XML code from your editor and paste it in the source code view of the template editor. When you switch the template to WYSIWYG mode or save, NetSuite validates the template code. If the code contains errors, you will see an error message.

For more information about valid formatting, refer to https://www.w3.org/.

Related Topics

General Notices