Replacing the BW generated namespace prefix string with any other namespace prefix string.

Replacing the BW generated namespace prefix string with any other namespace prefix string.

book

Article ID: KB0088873

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Environment:
===========
ALL

Resolution:
==========
The namespace prefix string is not significant from an XML perspective. Any standard compliant XML parser should treat XML strings with different prefixes the same way. BW does not guarantee the same namespace prefix in BW activities as is defined in xsd file.Certain non XML complaint parsers emphasize on using the same namespace prefixes.They generate an  error when:

>>>>>>>>>>>
<ns0:PARENT xmlns:ns0="http://www.epelectric.com/sample/parent">
    <ns1:CHILD xmlns:ns1="http://www.epelectric.com/sample/child">
        <ns1:NAME>A</ns1:NAME>
    </ns1:CHILD>
</ns0:PARENT>
>>>>>>>>>>

Is used in place of following:

>>>>>>>
<PARENT>
    <CH:CHILD xmlns:CH="http://www.epelectric.com/sample/child">
        <CH:NAME>A</CH:NAME>
    </CH:CHILD>
</PARENT>
>>>>>>

Use the attached Java code (Filename:SampleProject.rar)  to change the namespace prefix

Issue/Introduction

Replacing the BW generated namespace prefix string with any other namespace prefix string.

Attachments

Replacing the BW generated namespace prefix string with any other namespace prefix string. get_app