cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing xml in mapping

Former Member
0 Kudos

hello,

i work with the sap business partner in xi

a part of payload look like this:

-


<PersonData>

<GivenName updateIndicator=""/>

<FamilyName updateIndicator=""/>

<BirthName updateIndicator=""/>

<MiddleName updateIndicator=""/>

<SecondName updateIndicator=""/>

<AcademicTitleCode1 updateIndicator=""/>

<AcademicTitleCode2 updateIndicator=""/>

<NameSupplementTitleCode updateIndicator=""/>

<NamePrefixCode1 updateIndicator=""/>

<NamePrefixCode2 updateIndicator=""/>

<PreferredGivenName updateIndicator=""/>

<Initials updateIndicator=""/>

<NameFormatRuleCode updateIndicator=""/>

<NameFormatCountryCode updateIndicator=""/>

<NameFormatCountryISOCode updateIndicator=""/>

<Gender updateIndicator=""/>

<BirthPlaceName updateIndicator=""/>

<BirthDate updateIndicator=""/>

<DeathDate updateIndicator=""/>

<MaritalStatusCode updateIndicator=""/>

<CorrespondenceLanguage updateIndicator=""/>

<CorrespondenceLanguageISO updateIndicator=""/>

<FullName conversionIndicator="" updateIndicator=""/>

<EmployerName updateIndicator=""/>

<OccupationCode updateIndicator=""/>

<NationalityCode updateIndicator=""/>

<NationalityISOCode updateIndicator=""/>

<CountryOfOrigin updateIndicator=""/>

</PersonData>

-


each field have an attribute updateIndicator.

is it possible to look with an user define function through the message an

parse the filed's.

i have to check if any of the attribute filed's updateIndicator is set and

it is not handy to check each field alone

regards

ralf

Accepted Solutions (0)

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Ralf,

You can drag and use this attribute in your graphical mapping itself. You can refer to the value of the attribute and use it in any of the node / Boolean functions.

Regards

Bhavesh

Former Member
0 Kudos

@Bhavesh Kantilal

bt then i have to drag all attribute to the mapping this is very strange

Former Member
0 Kudos

Ralf,

The following blog might help you

/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs

Regards

Krishna

Former Member
0 Kudos

nice blog but this is java mapping

can SAX or DOM parsing be used in UDF??