I am facing couple of issues with new XML Stage. I used the XSD provided by the vendor to generate the XMLs. There are two different name spaces.
1. With the first name space, the tags are not appended with the name space. (ex the tags that should be coming as ns1:Name are coming as just Name)
2. With the second name space, the name space declaration is coming with every tag, instead of just at the beginning. Ex below.
Code: Select all
<types:PartnerShortName xmlns:types="http://www.payback.net/lmsglobal/xsd/v1/types">abcd</types:PartnerShortName>
</LoyaltyPartner>
<Validity>
<types:ValidFrom xmlns:types="http://www.payback.net/lmsglobal/xsd/v1/types">2016-06-08-T-00:00:00.000-04:00</types:ValidFrom>
<types:ValidTo xmlns:types="http://www.payback.net/lmsglobal/xsd/v1/types">2016-06-14-T-23:59:59.000-04:00</types:ValidTo>
When i generate a sample XML from the XSD using xml spy, it is generating all the tags perfectly.
Appreciate the help.
Thanks.