Author |
Message
|
Vitor |
Posted: Fri Oct 20, 2006 2:27 am Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Fri Oct 20, 2006 3:02 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Fri Oct 20, 2006 3:05 am Post subject: |
|
|
 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 |
|
 |
angka |
Posted: Wed Oct 25, 2006 8:10 pm Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Thu Oct 26, 2006 4:38 am Post subject: |
|
|
 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 |
|
 |
angka |
Posted: Thu Oct 26, 2006 9:13 pm Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Fri Oct 27, 2006 1:32 am Post subject: |
|
|
 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 |
|
 |
angka |
Posted: Tue Oct 31, 2006 2:38 am Post subject: |
|
|
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 |
|
 |
|