Invelos Forums->DVD Profiler: Desktop Technical Support |
Page:
1 Previous Next
|
Question on XML |
|
|
|
Author |
Message |
Registered: March 10, 2007 | Posts: 4,282 |
| Posted: | | | | I've upgraded to the latest version of the XML engine we use in order to allow the price information to use standardized decimal separation. That part works, but one of the other enhancements in the engine is that it no longer writes out empty attributes. So, for instance:
<Actor FirstName="Leonardo" MiddleName="" LastName="DiCaprio" BirthYear="0" Role="Billy" CreditedAs="" Voice="False" Uncredited="False"/>
becomes:
<Actor FirstName="Leonardo" LastName="DiCaprio" BirthYear="0" Role="Billy" Voice="False" Uncredited="False"/>
I can override this behavior if needed, but the newer style is more efficient. My question is whether this will cause any issues for those who use the XML export? | | | Invelos Software, Inc. Representative |
| Registered: March 13, 2007 | Reputation: | Posts: 2,005 |
| | Registered: March 10, 2007 | Posts: 4,282 |
| Posted: | | | | OK, no problem we can keep the empty attributes. One other thing is changing - the purchase price tag is moving inside PurchaseInfo where it belongs. | | | Invelos Software, Inc. Representative |
| Registered: March 13, 2007 | Posts: 51 |
| Posted: | | | | I write a new xml-parser for phpmyprofiler. For me it would be easier if the empty attributes are written into the export. But if you choice to skip these attributes I would find a solution. | | | Never argue with an idiot. He brings you down to his level, then beats you with experience.
Wir gegen die Gier - Joseph Weizenbaum (1923 - 2008): Nichts wird unsere Kinder und Kindeskinder vor einer irdischen Hölle retten. Es sei denn: Wir organisieren den Widerstand gegen die Gier des globalen Kapitalismus. |
| Registered: March 13, 2007 | Reputation: | Posts: 2,217 |
| Posted: | | | | well, for my simple needs I use <xsl:if test="string-length(@MiddleName)>0"> to determine if the MiddleName has a value or not, so empty or not there is the same for me. So my vote is a clear: "Whatever" cya, Mithi | | | Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki |
| Registered: March 13, 2007 | Posts: 55 |
| | Registered: March 13, 2007 | Posts: 350 |
| Posted: | | | | I prefer the empty attributes, but it's not a big deal ... | | | -fred |
| Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | I'm of course in favour of the more efficient approach, which means a value of "False" could be omitted, too.
And what happens to empty tags like <DistTrait/>?
Oh, and a question that has bugged me for a long time: Why do you have a custom boolean data type of "False" and "True" instead of the xs:boolean values "false" and "true"? | | | Matthias |
|
|
Invelos Forums->DVD Profiler: Desktop Technical Support |
Page:
1 Previous Next
|
|