Open HaziqRazali opened 7 years ago
It normally arises from the interpretation of tabs and spaces in your file (I've been burnt by this before :( ). The reason is that the original xml parser is very sensitive to the input format (you can see a bit of this here).
When generating your xml files, they need to be indented with tabs (if you are a vim user, you can check this by running :set list
which will show the type of indentations used - I'm not too knowledgeable about other editors but they will have equivalent tricks).
I encountered the same problem. Have you solved that?
@albanie i was creating the annotations using your wider2pascal but it gives me the same error. I have used the website to check for error it shows me no error..
in VOCxml2struct function, we have xml(xml==9|xml==10|xml==13) = []; which removes the \n and spaces from the xml file. When i checked the result of this line, the XML generated using pascal2wider, the same line of code does not remove the additional spacing from the XML file. So, i changed it to xml(xml==9|xml==10|xml==13|xml==32)=[]; and it worked.
Hope it helps
I am getting the error mentioned in the title when I try to pass in my own xml files for parsing. I have modified my xml files such that it is similar to that of VOC's but I am still having problems. I am using TinyXML-2
This is my xml file
this is VOC's