[E-Document Formats][PINT A-NZ] - Supports prefixed XML roots in PINT A-NZ import#29839
Open
GMatuleviciute wants to merge 4 commits intomicrosoft:mainfrom
Open
[E-Document Formats][PINT A-NZ] - Supports prefixed XML roots in PINT A-NZ import#29839GMatuleviciute wants to merge 4 commits intomicrosoft:mainfrom
GMatuleviciute wants to merge 4 commits intomicrosoft:mainfrom
Conversation
Ensures invoice import correctly handles XML documents with namespace-prefixed root elements, improving robustness against varying XML structures. Adds targeted tests to verify parsing of both standard and namespace-prefixed root elements, reducing risk of import failures with valid documents.
Introduces two example invoice XML documents for PINT A-NZ with and without prefixed namespaces to support testing and validation scenarios. Enables broader coverage for namespace handling in invoice processing.
Contributor
|
Could not find linked issues in the pull request description. Please make sure the pull request description contains a line that contains 'Fixes #' followed by the issue number being fixed. Use that pattern for every issue you want to link. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request does not have a related issue as it's part of the delivery for development agreed directly with @altotovi @Groenbech96
Implementation
Enhances the PINT A-NZ E-document import process to correctly parse XML documents where the root element includes a namespace prefix (e.g., ``). Previously, the parser assumed a non-prefixed root, leading to failures with such documents.
The solution modifies the PINT A-NZ Import codeunit to:
Adds dedicated test cases to validate the parsing of both standard and namespace-prefixed root elements, confirming the improved robustness of the import logic.
Fixes #