Media Companion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 XML parsing fails if spaces on end of lines

Go down 
AuthorMessage
dbareis
Senior Member
Senior Member
dbareis


Posts : 223
Join date : 2008-12-08

XML parsing fails if spaces on end of lines Empty
PostSubject: XML parsing fails if spaces on end of lines   XML parsing fails if spaces on end of lines Icon_minitimeMon Dec 08, 2008 1:03 pm

Hi,

Love the program but I want to report an issue that took me at least an hour to work out.

If "config.xml" contains:

<nfofolder>X:\MoviesFolder</nfofolder>

(with a space on the end of the line, then the program dies at startup
and updates the XML to:

<nfofolder>X:\MoviesFolder </nfofolder>

That is it adds an extra space on end of the path.

It is obviously parsing XML as text rather than loading up the XML into a DOM as I can't see how else this could occur, it probably best to use the approprate XML support (I don't know .net).

Anyway you shouldn't have any issue reproducing but I suspect that there will be a lot of other variations.

If it fails loading the XML it should not be updating it either.

Bye,
Dennis
Back to top Go down
http://dennisbareis.com
 
XML parsing fails if spaces on end of lines
Back to top 
Page 1 of 1
 Similar topics
-
» MC 3.168: TBN (Posters) File Naming Changed
» VER 3.098 - (AND ALL GEN 2 BUILDS) An error occurred while parsing EntityName. Line 20, position 72.
» MC 3.168: Actor Search Fails to find actors in last movie added
» v3.237 Ampersand ('&') in tv show directory name sometimes fails
» All versions: Scan all movies for fanart fails

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: Bug Discussion-
Jump to: