Registered: March 14, 2007 | Reputation: | Posts: 6,745 |
| Posted: | | | | Hi, for those interested: I created a W3C schema file for the collection.xml export file of DVDProfiler 3.1.0 Build 1151. Also I added a C# file. With it you can import the collection.xml in any .NET application (see sample application) XML Schemasample applicationThere is one drawback: Ken exports boolean values as "True" and "False". This is not XML conform. In my sample I do a global search&replace before importing the file. | | | Karsten DVD Collectors Online
| | | Last edited: by DJ Doena |
|
Registered: March 14, 2007 | Reputation: | Posts: 6,745 |
| Posted: | | | | I've just updated the schema. I had to make some minor adjustments. Link is the same as above. | | | Karsten DVD Collectors Online
|
|
Registered: March 14, 2007 | Reputation: | Posts: 1,029 |
| Posted: | | | | I posted a Schema in the Plugin Development forum a while ago. I haven't it updated to 3.1, but if you are interested (and have access), you can take a look. I would love to do a "compare and contrast", but I currently don't have the time. | | | Matthias | | | Last edited: by goodguy |
|
Registered: March 14, 2007 | Reputation: | Posts: 6,745 |
| |
Registered: January 11, 2008 | Posts: 20 |
| Posted: | | | | Cool. This has saved me much typing. It still seems to be compatible with the XML exported by version 3.1.1.1171
You can avoid having to 'prepare' the booleans by defining a local enum type, eg:
<xs:simpleType name="CapitalizedBoolean"> <xs:restriction base="xs:string"> <xs:enumeration value="False"/> <xs:enumeration value="True"/> </xs:restriction> </xs:simpleType>
It seems strange that DVDProfiler doesn't ship with a proper schema for this -- we'll have to keep our own schema up-to-date when new versions come out. |
|
Registered: March 14, 2007 | Reputation: | Posts: 6,745 |
| Posted: | | | | I've updated all my DVD Profiler Tools so that they are compatible with DVD Profiler 3.5.0 In the DVDProfilerXML source code you'll find the updated XML schema for the exported collection.xml as well as the schemas for the copy & paste formats of the cast and crew sections in the edit screen. | | | Karsten DVD Collectors Online
|
|