Quote:
Originally Posted by BetterRed
Apparently not.
I just ran my xml file through this XML Validation and discovered I had lost a '/' on a closing tag.
After fixing that error, the EpubTools S&R->Create temporary file features works.
I wonder if there's an xml validator PI for Notepad++?
Added : of course there is, I already have it - XML Tools
BR
|
It does not? That is strange. In the code it is specifically specified that a message must be given in case the validation fails. Otherwise it would be useless of course... Can you sent me the xml file with the error? I would like to test this.
A message box should be shown in case the file does not validate. What sometimes happens, is that the message box is hidden behind other forms and therefore it seems that a program is stuck when it is actually waiting for answer. Such a messagebox can be hard to select. I have seen it in rare cases. I will see if I can add some code to be absolutely sure this cannot happen.
I use the CRC for multiple reasons. One is that the timestamp is not always enough. I have seen cases the timestamp is not changed or is changed with no changes to the file. In any case calculating a CRC32 hash is no rocket science in itself, it is a relative simple process. It is also calculated very quickly.
**EDIT** I have run a test case of what you described (forgetting a slash in the ending tag) and your are correct. The validation will crash instead of reporting that it does not validate (and why). I will fix this of course.
***EDIT 2*** I have fixed this... The program will now not only crash, but also gives the reason why (as it should and was designed).