PxPlus User Forum

Main Board => Discussions => Off Topic => Topic started by: edjack on February 01, 2021, 10:00:16 AM

Title: T4 Parser
Post by: edjack on February 01, 2021, 10:00:16 AM
What validation parser can anyone recommend to use for validating a T4 XML file for CRA, in Canada?
Title: Re: T4 Parser
Post by: Mike King on February 01, 2021, 11:09:36 AM
Do you need to validate the format of the XML or just Parse it for processing?

If you just need to parse it then the *obj/xml object will likely provide what need.  It will parse the XML into a object node tree making for easy access from within PxPlus.  It also performs a basic form check (valid tags, etc..) and can create new XML from a XML object node tree.

If you need to validate against the DTD we would suggest a 3rd party tools such as rxp or xmlvalid both of which claim to validate against the source DTD definition (if accessible)
Title: Re: T4 Parser
Post by: edjack on February 01, 2021, 01:26:19 PM
I to validate the XML file using the Schema provided by CRA.
Title: Re: T4 Parser
Post by: edjack on February 09, 2021, 08:09:00 AM
Just for information...
We ended up using a utility called "XMLmind" XML editor.
This editor can validate T4 & T4A files for Revenue Canada submission; using the CRA SCHEMA files.