XML Formatting in Advanced PDF/HTML Templates

When working in advanced PDF/HTML templates, such as email, fax, and marketing, it's important that you use valid XML formatting. Invalid formatting can result in broken pages. Code can seem to work when it's 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 is obsolete and often causes errors.

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 avoid XML formatting issues, 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 has errors, you'll see an error message.

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

Related Topics

General Notices