LinHES Forums http://forum.linhes.org/ |
|
XML parsing in MythTV BurnDVD http://forum.linhes.org/viewtopic.php?f=6&t=9593 |
Page 1 of 1 |
Author: | briguy [ Wed Apr 12, 2006 11:57 am ] |
Post subject: | XML parsing in MythTV BurnDVD |
I'm trying to burn a DVD in R5B7, however the title of the TV shows being burned is causing XML errors. Have a look: Code: /myth/mythburn/temp/tempdvdauthor2.xml:13: parser error : Comment not terminated
<!-- Survivor: Panama <!-- Survivor: Panama -- Exile Island An Emerging Plan --> ^ ERR: Error in parsing XML *********************************** MythTV BurnDVD stopped due to error *********************************** Sent UDP/XML packet to IP 255.255.255.255 and port: 6948 (I'm burning it for a friend, honest ![]() Check out the double "--" within the quote. Is there any way to modify the title so this error doesn't happen? |
Author: | jimhayes [ Wed Apr 12, 2006 6:16 pm ] |
Post subject: | |
I think you'll have to alter the record in the mysql database. |
Author: | BluesBrian [ Mon Apr 17, 2006 8:06 am ] |
Post subject: | |
I haven't come across that one exactly.. but I just worked out the same kinds of problem with the "&". The program that I'm working with is "Penn & Teller.xml" (This is no BS! ![]() Here's the solution that I worked out... <vob file="Penn & Teller.mpg" /> yeah, some other special characters have a simular fate! I used Google with the following search string to give me some hints.. "xml represent "&" character". Here's a clip from http://en.wikipedia.org/wiki/Xml "An entity reference is a placeholder that represents that entity. It consists of the entity's name preceded by an ampersand ("&") and followed by a semicolon (";"). XML has five predeclared entities: " & (&) < (<) > (>) ' (') " (") "Numeric character references look like entities, but instead of a name, they contain the "#" character followed by a number. The number (in decimal or "x"-prefixed hexadecimal) represents a Unicode code point, and is typically used to represent characters that are not easily encodable, such as an Arabic character in a document produced on a European computer. The ampersand in the "AT&T" example could also be escaped like this (decimal 38 and hexadecimal 26 both represent the Unicode value for the "&" character): " <company-name>AT&T</company-name> <company-name>AT&T</company-name> Good Luck! // Brian |
Author: | jdfraser [ Sun Apr 30, 2006 10:15 pm ] |
Post subject: | |
I'm having the same problem with trying to record an episode of Survivor to DVD (for my mom ;) ) as well. What ended up being the best work around for you? I'm not super keen on changing the database record, I'd rather make a change to the script so any Survior episodes I need to burn later don't have this problem. I'm not much of a coder, but I can find my way around vi ok if someone would be kind enough to point me in the right direction. Cheers, Jamie |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |