Registered: July 13, 2008 | Posts: 3 |
| Posted: | | | | 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> |
|
Registered: March 13, 2007 | Posts: 4,596 |
| Posted: | | | | . | | | My WebGenDVD online Collection | | | Last edited: by Bad Father |
|
Registered: March 14, 2007 | Reputation: | Posts: 6,744 |
| Posted: | | | | 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
|
|
Registered: March 13, 2007 | Reputation: | Posts: 2,217 |
| Posted: | | | | 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 |
|