Skip to Content
Former Member
Jun 13, 2007 at 07:28 AM

How do you modify xmlns in the generated xml from XI mapping?


I am generating an xml file from XI mapping. Input is a simple xml (message type) and output is external definitions created by importing xsd. XML is in the end of this post.


1. In this xml, there are some elements with ns0 and others are not. When XML validator runs, it complains:

<b>"System.FormatException: Missing RecruiterReference/UserName element for Job with jobRefCode=001234 ....."</b>

How can I either have all the elements with ns0 or no qualifier in any element.

2. I need to add the following in the jobs (root) tag or job tag. How can I do that? Target system needs this to validate in order to validate against the schema.

xmlns="" xmlns:xsi="" xsi:schemaLocation="">

<b>Schema used</b>

This is the xml schema I am using. I have created external definitions by importing this schema and common.xsd and enumeration.xsd as well:">>

<b>Generated XML</b>

<?xml version="1.0" encoding="UTF-8"?>">>

<ns0:Job jobRefCode="001234" jobComplete="true" jobAction="addOrUpdate">







John Smith Press



<ns0:Channel monsterId="58">






<JobType monsterId="1">


<JobStatus monsterId="4">


<Contact hideAll="false" hideStreetAddress="false" hideCity="false" hideState="false" hidePostalCode="false" hideCountry="false" hideContactInfoField="false" hideCompanyName="false" hideEmailAddress="false" hideFax="false" hideName="false" hidePhone="false">







Any help will be appreciated.