pyx12.x12n_document

Parse a ANSI X12N data file. Validate against a map and codeset values. Create XML, HTML, and 997/999 documents based on the data file.

Functions

x12n_document(param, src_file, fd_997, fd_html[, ...])

Primary X12 validation function

Module Contents

pyx12.x12n_document.x12n_document(param, src_file, fd_997, fd_html, fd_xmldoc=None, fd_json=None, xslt_files=None, map_path=None, callback=None)[source]

Primary X12 validation function :param param: pyx12.param instance :param src_file: Source document :type src_file: string :param fd_997: 997/999 output document :type fd_997: file descriptor :param fd_html: HTML output document :type fd_html: file descriptor :param fd_xmldoc: XML output document :type fd_xmldoc: file descriptor :param fd_json: JSON error output document :type fd_json: file descriptor :rtype: boolean

Parameters:
Return type:

bool