ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » default namespace in ESQL

Post new topic  Reply to topic
 default namespace in ESQL « View previous topic :: View next topic » 
Author Message
geethgubi
PostPosted: Mon Aug 10, 2009 11:44 am    Post subject: default namespace in ESQL Reply with quote

Apprentice

Joined: 18 Dec 2008
Posts: 44

I am having xml like the below

<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Sample XML file generated by XMLSpy v2009 (http://www.altova.com)
-->
+ <sap_orders01 verb="AleOutboundVerbs" delta="false" locale="" version="0.0.0" xsi:schemaLocation="hello" xmlns="hello1" xmlns:sap_idoccontrol="hello2" xmlns:sap_orders01_cwdata="hello3"


I am trying to create the like in the bold above in my xml generation
but am really struggling to create the default namespace using ESQL. Can someone help me out with this one? Thanks.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 10, 2009 12:08 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

ESQL does not support default namespaces. It only supports default namespace declaration...
What that means is that you can declare a default namespace but all elements in scope of that default namespace still need a namespace prefix (pointing to the default namespace)...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Aug 10, 2009 1:16 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I am trying to create the like in the bold above in my xml generation
but am really struggling to create the default namespace using ESQL. Can someone help me out with this one?
We can, but only when you tell us what your problem is. All we know so far is that you are struggling!

fjp_saper said:
Quote:
ESQL does not support default namespaces. It only supports default namespace declaration
What he means is
- Every element in the message tree has its own namespace. It does not inherit its namespace from its scope like an XML element does.
- Using ESQL or Java you can *generate* any xmlns attribute you like, using XMLNSC.NamespaceDecl. But you still have to assign the correct namespace to every element in the message tree. In your message tree. all children of sap_orders01 must be in the 'hello1' namespace, and it is your responsibility to make sure of that before the message gets to the output node.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » default namespace in ESQL
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.