|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Namespaces |
« View previous topic :: View next topic » |
Author |
Message
|
fast8 |
Posted: Wed Aug 17, 2016 9:44 pm Post subject: Namespaces |
|
|
Newbie
Joined: 17 Aug 2016 Posts: 3
|
Hello ,
can someone help me with this code |
|
Back to top |
|
 |
fast8 |
Posted: Wed Aug 17, 2016 9:46 pm Post subject: |
|
|
Newbie
Joined: 17 Aug 2016 Posts: 3
|
Hello ,
Can some one help me with this code :
<FIDCCP02 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FIDCC2.FIDCCP02.xsd">
I want this in the output and i wrote code as :
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE xsi NAMESPACE 'FIDCC2.FIDCCP02.xsd';
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xmlns:xsi = xsd;
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xsi:noNamespaceSchemaLocation = xsi;
but it throws an error for me can someone help? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 17, 2016 10:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
fast8 wrote: |
Hello ,
Can some one help me with this code :
Code: |
<FIDCCP02 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FIDCC2.FIDCCP02.xsd"> |
I want this in the output and i wrote code as :
Code: |
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE xsi NAMESPACE 'FIDCC2.FIDCCP02.xsd';
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xmlns:xsi = xsd;
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xsi:noNamespaceSchemaLocation = xsi; |
but it throws an error for me can someone help? |
Code: |
--DECLARE xmlns NAMESPACE 'http://www.w3.org/1999/xhtml'; --??
DECLARE xsi NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.NameSpaceDecl)xmlns:"xsi"=xsi;
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xsi:noNamespaceSchemaLocation = '"FIDCC2.FIDCCP02.xsd"';
|
_________________ MQ & Broker admin
Last edited by fjb_saper on Wed Aug 17, 2016 10:24 pm; edited 1 time in total |
|
Back to top |
|
 |
fast8 |
Posted: Wed Aug 17, 2016 10:11 pm Post subject: |
|
|
Newbie
Joined: 17 Aug 2016 Posts: 3
|
It still shows error while deploying :
The correlation name 'XMLNSC.NameSpaceDecl' is not valid. Those in scope are: Environment, InputLocalEnvironment, OutputLocalEnvironment, InputRoot, InputBody, InputProperties, OutputRoot, InputExceptionList, OutputExceptionList, InputDestinationList, OutputDestinationList, xsi.
The first element of a field reference must be a valid correlation name, from those in scope. This message may sometimes be due to an incorrectly formed or spelled expression which is not intended to be a field reference being parsed as if it were a field reference because the parser does not recognize it. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 17, 2016 10:26 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
fast8 wrote: |
It still shows error while deploying :
The correlation name 'XMLNSC.NameSpaceDecl' is not valid. Those in scope are: Environment, InputLocalEnvironment, OutputLocalEnvironment, InputRoot, InputBody, InputProperties, OutputRoot, InputExceptionList, OutputExceptionList, InputDestinationList, OutputDestinationList, xsi.
The first element of a field reference must be a valid correlation name, from those in scope. This message may sometimes be due to an incorrectly formed or spelled expression which is not intended to be a field reference being parsed as if it were a field reference because the parser does not recognize it. |
So do a little research of your own and find the right correlation name for the XML declaration with the XMLNSC parser...
Have you tried (XMLNSC.NamespaceDecl) ??  _________________ MQ & Broker admin
Last edited by fjb_saper on Wed Aug 17, 2016 10:35 pm; edited 2 times in total |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Aug 17, 2016 10:26 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
This post
http://www.mqseries.net/phpBB/viewtopic.php?t=53242
has your answer.
I found it by putting
XMLNSC.Attribute
in to the search box on the upper right of this page. This was the first answer returned. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|