cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion Agent - Namespace prefix missing

Former Member
0 Kudos

Hi Guys,

Trying to use CA to convert a flat file to nested XML. I managed to succesfuly build a script that converts the flat file to XML.

The problem I am facing here is that, the converted XML is not having a namespace prefix and hence my mappings fail.

Can you please let me know if there is some setting which allows me to add the namespace prefix in the output XML generated?

Thanks

Jai

Just a bump

Edited by: Jaishankar on Mar 12, 2010 10:09 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member208856
Active Contributor
0 Kudos

When we are creating any Parser using Conversion Agent Conversion Module,

we are using one XSD structure there,

Use same structure in sender interface.

First create structure in PI & use XSD of that structure in Conversion module for creating Parser.

Both should be same.

Former Member
0 Kudos

Thanks Sandeep. We were able to do it now by adding namespace prefix in the Project properties.

Can you please let me know how to mention an element as optional field while creating a parser project?

Currently, it does not allow any empty value even if the XSD element is declared optional.

Thanks

Jai

former_member208856
Active Contributor
0 Kudos

In your TGP file you have one option "allow_empty_values".

Use that for optional fields.

example will be as below :

Content<optional, allow_empty_values>(OffsetSearch(StaticInt()), TextSearch(StaticString("")), null_searcher, XPath("/X12/s/s1/TS_850/s/REF/*s/REF02")),