Author |
Message
|
fjb_saper |
Posted: Wed Jan 20, 2016 5:27 am Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20696 Location: LI,NY
|
maurito wrote: |
you can assign the namespace AND the value all at the same time. Look at the CREATE statement, it has NAMESPACE , NAME and VALUE clauses, amongst other things. |
Sure but as he is trying to assign a default namespace, he will still have to walk the tree to assign the namespace to the children and below... _________________ MQ & Broker admin |
|
Back to top |
|
|
mqjeff |
Posted: Wed Jan 20, 2016 5:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Default namespace or not, all elements in an XMLNSC tree need to have a namespace attached. Or they aren't part of any namespace. _________________ chmod -R ugo-wx / |
|
Back to top |
|
|
joebuckeye |
Posted: Thu Jan 21, 2016 5:15 am Post subject: |
|
|
Partisan
Joined: 24 Aug 2007 Posts: 364 Location: Columbus, OH
|
mqjeff wrote: |
Default namespace or not, all elements in an XMLNSC tree need to have a namespace attached. Or they aren't part of any namespace. |
I think this is one of the hardest lessons for those new to namespaces to learn.
They mix up the namespace assigned to a field with the prefix (or lack thereof) for that field.
I shudder when dealing with another team or a vendor where they complain about what the namespace prefix is or that it is changing depending on who is sending the request. We then have to explain that they are logically equivalent and that any XML parser should not care. |
|
Back to top |
|
|
mqjeff |
Posted: Thu Jan 21, 2016 6:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
joebuckeye wrote: |
We then have to explain that they are logically equivalent and that any XML parser should not care. |
And that they should never write code that cares about what the prefix is... _________________ chmod -R ugo-wx / |
|
Back to top |
|
|
smdavies99 |
Posted: Thu Jan 21, 2016 11:49 am Post subject: |
|
|
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
joebuckeye wrote: |
I shudder when dealing with another team or a vendor where they complain about what the namespace prefix is or that it is changing depending on who is sending the request. We then have to explain that they are logically equivalent and that any XML parser should not care. |
We then have to explain that they are logically equivalent and that any standards compliant XML parser should not care
There fixed it for you.
We have seen cases here where people are using 'homegrown XML' parsers that are distinctly 'iffy' when it comes to standards. _________________ 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 |
|
|
anon_kb |
Posted: Fri Jan 29, 2016 12:28 am Post subject: |
|
|
Acolyte
Joined: 13 Nov 2014 Posts: 74
|
Hi Guys, thanks for the suggestion and help. Anyway good news for me they have decided that the tags thats gives me the problem will be removed. Actually that problem is still bugging on me till now, so If ever I will encounter it again in the future hope I can solve it. ANyway thanks again guys you gave so much ideas and lessons to learn . |
|
Back to top |
|
|
|