Last post Jul 13, 2018 09:45 AM by jimmy69
Jul 12, 2018 02:15 PM|jimmy69|LINK
Imagine this scenario, i have some mobile app on android.
this app, create xml file with some information and see to a ftp.
Sometimes and i don't know actually why we receive some xml who some tag <tag> are not closed ...
I would like to know how i can detect in a xml file the node who is not closed and close it of course ?
Here is it the structure of the xml file
thanks for all
Jul 12, 2018 03:14 PM|mgebhard|LINK
XML schemas (XSD) are used to validate XML documents,
Jul 13, 2018 09:15 AM|Abraham Qian|LINK
According to your description, I think we could use XML Schema Definition Language to validate XML.
Here is official document about how to customize the validation XML document
Here is a XMLValidation sample.
For some custom grammar rule validation, I think you could view the relevant documents below.
Jul 13, 2018 09:45 AM|jimmy69|LINK
thanks for your ideas, link that's great to share your knowledge ...
for me the best solutino (fast) it's to get all the xml file in ftp with a cmd project who runs every night and check the validay of these files ...
if ok => do nothing / if not ok => open xml and find the bad node and TRY to close the node ...
because, find the error, make the correction, test the app on device, and deploy will take more time ...
Off course, the bug will be find and a correction also but i'm holiday ...in a few day :) :)
see your next time guys