Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  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

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