ANS-1370 · PRINTING, PDF & EMAIL TEMPLATES
How to Resolve XML Parsing Errors in NetSuite PDF Templates?
Avoid common XML template conflicts by understanding proper tag usage when generating PDF documents in NetSuite.
Short answer
To resolve XML parsing errors when generating PDF documents from scripts in NetSuite, ensure that your XML template does not use both a <meta name"title" value"value"> marker and a separate <title> marker. Using only the <meta name"title" value"value"> tag is the correct approach to prevent parsing conflicts.
Scenario
Users may encounter an 'XML parsing error' when attempting to generate PDF documents using custom XML templates within NetSuite scripts. This error typically arises from incorrect or conflicting tag usage within the XML template structure, preventing the successful rendering of the PDF.
Solution
To resolve the 'XML parsing error' when generating PDF documents from a script using an XML template, it is crucial to avoid using both a marker and a separate
<meta name"title" value"value"> <title> value <title>Example of correct usage (GOOD):
<meta name"title" value"value">Expert NetSuite Support
Need help with this NetSuite issue?
Printing, PDF & Email Templates consulting and configuration support
