Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Desktop Technical Support Page: 1  Previous   Next
XML Schema for collection.xml
Author Message
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,741
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
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 Schema

sample application

There 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
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,741
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I've just updated the schema. I had to make some minor adjustments. Link is the same as above.
Karsten
DVD Collectors Online

DVD Profiler Unlimited Registrantgoodguy
Sita Sings the Blues
Registered: March 14, 2007
Reputation: Superior Rating
Germany Posts: 1,029
Posted:
PM this userDirect link to this postReply with quote
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
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,741
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Cool, I'll look into it.
Karsten
DVD Collectors Online

DVD Profiler Unlimited Registrantwbradney
Registered: January 11, 2008
Posts: 20
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
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.
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,741
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
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

    Invelos Forums->DVD Profiler: Desktop Technical Support Page: 1  Previous   Next