cancel
Showing results for 
Search instead for 
Did you mean: 

Empty XML tags

Former Member
0 Kudos
501

Hi,

I am doing a file content conversion on a receiver file adapter. Some of my incoming XML tags are empty which is is giving a XML parser error in the file creation. Doesn't XI allow empty XML tags to pass through?I have empty tags look like <item />...Is there a format that the parser would let pass through for empty elements?

-Teresa

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

This bug will be fixed in SP10

There is a workaround: Move ONE space to the tag: <item> </item>. You can do that in the mapping.

Regards

Stefan

Answers (1)

Answers (1)

Former Member
0 Kudos

Change the minimum occurence rate for that elements to 0 or u can check whether the node exists by exists node function and append a whitespace to create the element in target.

Regards

Rajeev

Former Member
0 Kudos

Teresa - I'm not having this problem... assuming you are talking about content conversion on the receiver, to make a flat file? I'm on SP11 - I pass thru the empty tag <field/> - and the output is as many spaces as specified by the length of the field... Describe more your scenario, maybe I can recreate it?

Former Member
0 Kudos

Thanks Amanda and Stefan,

We are in a lower SP than 10. I think we will have to do the work around as Stefan indicated.

-Teresa