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 » XML declaration

Post new topic  Reply to topic Goto page Previous  1, 2
 XML declaration « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Fri Oct 20, 2006 2:27 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

angka wrote:

what should I do to include xmlns = 'http://tempuri.org/XSDSchema.xsd' to the element? thanks


If you mean what I think you mean, nothing. Declared like that, it's the default namespace for your XML document so all unprefixed elements will become part of that namespace.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Oct 20, 2006 3:02 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5543
Location: Southampton

Quote:
what should I do to include xmlns = 'http://tempuri.org/XSDSchema.xsd' to the element?
Your message tree is wrong. Every element within the scope of the default namespace must have a namespace. If you do not understand that statement, you need to get some training.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Oct 20, 2006 3:05 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Yes, sorry, once the tree is fixed....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
angka
PostPosted: Wed Oct 25, 2006 8:10 pm    Post subject: Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

Kimbert: I understand that every element must have a namespace but my flow does not allow that. I am using mapping node to map to XMLNS domain, all the child value is setted before i declare the namespace. is there a way i can include it in the mapping node? Thanks
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Oct 26, 2006 4:38 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5543
Location: Southampton

Quote:
I am using mapping node to map to XMLNS domain, all the child value is setted before i declare the namespace
That's OK. I'm not asking you to set the child value. I'm asking you to set the namespace of IncidentEvent to http://tempuri.org/XSDSchema.xsd. Try something like
Code:
DECLARE myPrefix NAMESPACE 'http://tempuri.org/XSDSchema.xsd';
SET OutputRoot.XMLNS.myPrefix:IncidentEvent.(XML.NamespaceDecl).xmlns = 'http://tempuri.org/XSDSchema.xsd';
Back to top
View user's profile Send private message
angka
PostPosted: Thu Oct 26, 2006 9:13 pm    Post subject: Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi,

Kimbert:I did that before but it create another IncidentEvent tree without any child. And it gives a error of "No valid body of the document could be found". What is the cause?
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Oct 27, 2006 1:32 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5543
Location: Southampton

You now have enough information to solve the problem yourself. Please try something, and then ask further questions if necessary.
Back to top
View user's profile Send private message
angka
PostPosted: Tue Oct 31, 2006 2:38 am    Post subject: Reply with quote

Chevalier

Joined: 20 Sep 2005
Posts: 406

Hi all,

Thanks all. My problem solved.

I got an additional question...

SET OutputRoot.XMLNS.myPrefix:IncidentEvent.(XML.NamespaceDecl).xmlns = 'http://tempuri.org/XSDSchema.xsd';

Is there a way to set the "IncidentEvent" dynamically? the "IncidentEvent" element is the main root of the InputRoot.XMLNS tree. Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML declaration
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.