======================================== XML Structure Validator ======================================== Latest Invoice: 3423 Folder: /home/adbsofts/public_html/pkr.adb-softs.com/Branch-two/zatca_integration/invoices/3423 Available files: ✅ 3_final.xml - Final XML (sent to ZATCA) ✅ 2_signed.xml - Signed XML (before QR) ✅ 1_base.xml - Base XML (before signing) ======================================== Analyzing Final XML ======================================== ✅ XML is well-formed Checking ZATCA Required Elements: ----------------------------------- ❌ Invoice root element: MISSING ✅ UBLExtensions: 1 found ✅ ProfileID: 1 found ✅ UUID: 2 found ✅ IssueDate: 1 found ✅ IssueTime: 1 found ✅ InvoiceTypeCode: 1 found ✅ AdditionalDocumentReference (ICV): 1 found ✅ AdditionalDocumentReference (PIH): 1 found ✅ AdditionalDocumentReference (QR): 1 found ✅ Signature element: 1 found ✅ Digital Signature: 1 found ✅ AccountingSupplierParty: 1 found ✅ AccountingCustomerParty: 1 found ✅ TaxTotal: 3 found ✅ LegalMonetaryTotal: 1 found ✅ InvoiceLine: 1 found Checking Common ZATCA Issues: -----------------------------
Fatal error: Uncaught Error: Call to undefined method DOMElement::compareDocumentPosition() in /home/adbsofts/public_html/pkr.adb-softs.com/Branch-two/zatca_integration/validate_xml.php:132 Stack trace: #0 {main} thrown in /home/adbsofts/public_html/pkr.adb-softs.com/Branch-two/zatca_integration/validate_xml.php on line 132