Author |
Message
|
AviD |
Posted: Wed Sep 12, 2007 9:45 am Post subject: WMB 6.0.0.3 - Value Differences with XMLNS vs XMLNSC |
|
|
Acolyte
Joined: 06 Apr 2004 Posts: 62
|
Does anyone happen to have a link/doc with a comparison between WMB 6.0.0.3's XMLNS and XMLNSC domain formatting?
I'm seeing different results, namely with empty fields where XMLNS will treat the empty field as '', whereas XMLNSC treats it as a '\n'.
Is this normal behaviour?
What is the recommended domain, or advantages/disadvantages of one vs the other? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Sep 12, 2007 9:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You mean, a link other than what's in the InfoCenter?
The XMLNSC is the "Compact" Parser. It's designed to do things like eliminate whitespace data that appears between elements. So if you have
<tag>
<tag1></tag1>
</tag>
You won't get a tree that has whitespace value elements for the return after <tag> and </tag1>. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
AviD |
Posted: Wed Sep 12, 2007 10:55 am Post subject: |
|
|
Acolyte
Joined: 06 Apr 2004 Posts: 62
|
But you get varying results in respect to handling empty tags.
i.e.
<SomeTag>
<SomeSubTag1>hasValue</SomeSubTag1>
<SomeSubTag2/>
<SomeTag>
With XMLNS:
<SomeSubTag2/> will equal ''
With XMLNS:
<SomeSubTag2/> will equal a '\n' |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Sep 12, 2007 11:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
That's really not the value of the SubTag2 MbElement.
I'm almost positive that's a Value element that is a sibling of the SubTag2 element, with a content of "\n". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Sep 12, 2007 12:50 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
AviD |
Posted: Thu Sep 13, 2007 7:13 am Post subject: |
|
|
Acolyte
Joined: 06 Apr 2004 Posts: 62
|
|
Back to top |
|
 |
|