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 Export file -- duplicated XML tags causing a problem
Author Message
DVD Profiler Unlimited RegistrantCirce640
Registered: July 13, 2008
Posts: 3
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
In the Versions 2 DVD Profiler, the XML records started with a <DVD> tag and ended with a </DVD> to indicate the start and the end of the segment for a given DVD. I just recently upgraded to Version 3.1.1 and started updating a program I wrote that reads the export file and writes the data to an access database. It uses VB6 and the SAX xml library class. It is now failing because the <DVD> is not only being used to denote a new DVD but also within the structure under MediaTypes for whether or not the DVD contains a standard DVD format. <DVD>True</DVD> I think it was done this way for the few HDDVD' that had both std and HD versions in the same box/disc. SAX cannot handle a tag name being used as both a record set delimiter and an internal tag unless one writes a whole set of logic to try to detect whether you are at the start of a record set or in the middle of one. Can we change the internal use to <StdDVD>True<StdDVD>
DVD Profiler Desktop and Mobile RegistrantStar ContributorBad Father
Registered: July 23, 2001
Registered: March 13, 2007
Posts: 4,596
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
.
My WebGenDVD online Collection
 Last edited: by Bad Father
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
Quoting Circe640:
Quote:
In the Versions 2 DVD Profiler, the XML records started with a <DVD> tag and ended with a </DVD> to indicate the start and the end of the segment for a given DVD. I just recently upgraded to Version 3.1.1 and started updating a program I wrote that reads the export file and writes the data to an access database. It uses VB6 and the SAX xml library class. It is now failing because the <DVD> is not only being used to denote a new DVD but also within the structure under MediaTypes for whether or not the DVD contains a standard DVD format. <DVD>True</DVD> I think it was done this way for the few HDDVD' that had both std and HD versions in the same box/disc. SAX cannot handle a tag name being used as both a record set delimiter and an internal tag unless one writes a whole set of logic to try to detect whether you are at the start of a record set or in the middle of one. Can we change the internal use to <StdDVD>True<StdDVD>

Go to my "Tools" link in my signature and look for "DVD Profiler to Access".
Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStar ContributorMithi
Sushi Annihilator
Registered: March 13, 2007
Reputation: Superior Rating
Germany Posts: 2,217
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting Circe640:
Quote:
SAX cannot handle a tag name being used as both a record set delimiter and an internal tag ...

I'm quite sure SAX could do this. To cite myself from the same question a month ago:

Well, one is
/Collection/DVD
the other
/Collection/DVD/MediaTypes/DVD
so there shouldn't be any problems with any mistaking one for the other.


cya, Mithi
Mithi's little XSLT tinkering - the power of XML --- DVD-Profiler Mini-Wiki
    Invelos Forums->DVD Profiler: Desktop Technical Support Page: 1  Previous   Next