XML Stream rule to generate XML with using complex external xsd
We have a requirement to generate complex xml message using external xsd file. XSD file has elements which are extended from other elements. Also, we need to map specific elements using xpath as there are chances that xsd might have frequent changes.
We are using pega 5.5 version. I am looking for a approach to handle such mapping in Pega. Also is it good idea to implement such complex mapping to generate XML in Pega. All the forums and articles talks more about parse xml so looking for solution more around XML stream.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
You can use the Connector and Metadata wizard to create Parse and Stream rules in Pega7. Regarding the XSD type extension, Pega fully supports ‘Simple content extension’, ‘complex content extension/Type substitution’, ‘Substitution Group/Element Substitution’, however ‘Simple content restriction’, ‘complex content restriction’, ‘nested sequence choice’ does not work OOTB.
So if you are only using Simple/Complex content extension, you can import the XSD in Pega and generate Stream and Parse rules.