cancel
Showing results for 
Search instead for 
Did you mean: 

Adding DOCTYPE to PI output xml file

Former Member
0 Kudos

Hello Experts,

My requirement is to add doctype dtd definition to the output xml file generated by PI. And the scenario is a File to File with mapping involved and along with the requect xml file i need to send two control files. I opted to do multimapping (1:3) and thought of handling the doctype at the receiver file adpaters (for all the three files - 1 actual, 2 control files and doc type to be added for all the three files).

I created a custom adapter module and deployed it to PI server. When i ran my scenario i see the module is called but the logic is not working and i dont see any error as well the file is getting posted to target location but does not contain the DTD doctype.

Here i am attaching the code and the channel log.

Kindly check and help me with corrections required to code.

regards

Narayanareddy B

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Experts

Kindly chekck the code and provide me your inputs!!!

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

Did you test it in your IDE (e.g NWDS) before uploading/deploying it as a module?

Regards,

Mark

JaySchwendemann
Active Contributor
0 Kudos

Maybe you are able to achieve your goal without custom module. Extending an XML with a doctype could be as simple as preceding your (graphical) message mapping with an xsl mapping, see here

Cheers

Jens