Hello,
Step1: We have a Batch job to load a Message Table and the Data is loaded into a column in a table XML format, we use load_to_XML Transform as given below.
varchar_to_long(f_TrimSchemaLocation(load_to_xml(QRY_Load_Details.NODE, ‘Known_Data’, 0, NULL, NULL, 1, 10000000)))
The data is getting loaded into the XML but path in XML where it refers to XSD I can see the path but XSD name is not seen at the end.
Eg: Known_Data.XSD at the end of path is missing
xmlns:ns1="http://www.hhhh.xxx/projname/v1/KnownData/ieKnownData.xsd
But I am getting the path only as:
xmlns:ns1="http://www.hhhh.xxx/projname/v1/KnownData/ie
Please advice why the XSD name is missing at the end.
Step2:
We are then sending the above XML onto a JMS Message Queue and since there is no XSD name found at the end of the path in XML Jms is appending some default shcema name and is shown as below:
xsi:schemaLocation="http://www.hhhh.xxx/projname/v1/KnownData/ieADAPTER_MESSAGE_SCHEMA.xsd>
Instead of :
xsi:schemaLocation="http://www.hhhh.xxx/projname/v1/KnownData/KnownData.xsd>
Please advice.
Regards
Jack
jack1703 (BOB member since 2009-09-29)