PxPlus User Forum

Twitter Twitter Twitter

Author Topic: T4 Parser  (Read 219 times)

edjack

  • Silver Member
  • ***
  • Posts: 36
  • Computerease
    • View Profile
T4 Parser
« 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?
Ed Jack
Computerease

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3419
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: T4 Parser
« Reply #1 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)

edjack

  • Silver Member
  • ***
  • Posts: 36
  • Computerease
    • View Profile
Re: T4 Parser
« Reply #2 on: February 01, 2021, 01:26:19 PM »
I to validate the XML file using the Schema provided by CRA.
Ed Jack
Computerease

edjack

  • Silver Member
  • ***
  • Posts: 36
  • Computerease
    • View Profile
Re: T4 Parser
« Reply #3 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.
Ed Jack
Computerease