Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Writer Codeunit - Error while CDATA exist in the XML FIle #281

Open
ELCI-PRR opened this issue Nov 13, 2024 · 0 comments
Open

XML Writer Codeunit - Error while CDATA exist in the XML FIle #281

ELCI-PRR opened this issue Nov 13, 2024 · 0 comments

Comments

@ELCI-PRR
Copy link

Hi

Today i have an error when i have html encoding into an xml ( wrong practice i know) , but the customer of my customer send us an XML with this value :

I patch this problem on an old customer by modifying the code like this:

LOCAL ReadAndInsertXmlElement(VAR XMLBuffer : Record "XML Buffer";ParentXMLBuffer : Record "XML Buffer";VAR ElementNumber : Integer;VAR InsertedXMLBufferElement : Record "XML Buffer";VAR ProcessingInstructionNumber : Integer)
XmlNodeType := XmlReader.NodeType;
IF XmlNodeType.Equals(XmlNodeType.Element) THEN BEGIN
//PRR 13/11/2024
//BEFORE
IF XmlNodeType.Equals(XmlNodeType.Element) THEN BEGIN
//AFTER
IF (XmlNodeType.Equals(XmlNodeType.Element)) OR (XmlNodeType.Equals(XmlNodeType.CDATA)) THEN BEGIN
//FIN PRR 13/11/2024
ElementNumber += 1;
ProcessXmlElement(XMLBuffer,ParentXMLBuffer,ElementNumber,InsertedXMLBufferElement)
END ELSE
...

Do you think it's possible to update the base app to have this patch ?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant