I need some help in handling the processContents=lax in Pega. We are facing an issue with Parse XML when the XML contains nodes for which the XSD definition as processContents="lax". Please find below the definition
When the Metadata Accelerator is run to import this XSD, Pega generated the parse XML as shown below. There is an _any_ tag and the Node contains Element Substitution.
The XML returned by the service contains additional tags which I think need to fit in the _any_ and the parse XML is supposed to parse them.
We created properties manually in the class and added additional elements manually in the Pega generated parse XML to parse these fields but Pega is not parsing them. We have also tried defining the element names in Element Substitution area in the XML tab of the parse XML rule but did not work.
Could you please advise how to parse the elements coming in the XML which fall into processContents=lax category.
Hi Swaroop, what is the pega version? It appears that there is a disconnect between XML schema and data. additional tags returned by service should have fit into one of those substitutions. if you could, update the XML schema with those additional elements and try reimporting into pega to have those missing rules created by wizard. Is this behavior working fine, if 'processContents' not present?
The Pega version is 7.1.7. The importing and other properties are getting generated for all other elements in XSD except processContents=lax . The interface XSD definition has processContents=lax for specific element as below. The issue is with additional elements coming from interface XML. I updated the pega generated parse XML as shown below to accommodate the incoming additional XML elements. I am not sure why the updated Parse XML which I mentioned below is not working.