PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Why are spaces dissapearing in xml?

edited Sep 22, 2014 4:59PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 2 commentsAnswered

In PeopleTools 8.52, I have xml I am saving to file.  We are using record PeopleCode and there are lots of special characters in certain fields and those fields are long.  I have found that by using

&xml_string = &XMLDOC.GenFORMATTEDXMLString();

I can get some of those characters encoded.

We are also replacing carriage returns with a space using the following:

&xml_string = Substitute(&xml_string, Char(13) | Char(10), " ");

There is a lot more going on in the code.  So, I am not going to post the entire event.  I am also chunking the field that is long (comments 2000) into groups of 264 characters.  The removed spaces are not happening at the beginning or end of the chunks, so I do not think that has anything to do with it, but I have not quite proven it out.  The issue does appear to be between the XML formatting, the substitue, and the chunking.  As stated above, I really think the issue is with the XML formatting and the

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center