I am working with GPX files and I am parsing them with Java. I am using javax.xml.validation.Validator to make sure they conform to the GPX schema. The thing is, one of my files ends with:
<TopoFusion:color>ff0000</TopoFusion:color>
<TopoFusion:graph>0</TopoFusion:graph>
</gpx>
and this TopoFusion element is apparently not defined in the GPX schema, causing the validation to fail. However, the file is valid if I am to ignore this element. Any idea how I can overcome this problem ? I want to make it generic though, not simply ignore TopoFusion element as it can be anything there.
Hope my question is clear. Any help will be much appreciated.
Regards,
Petar
After investigating the GPX schema more thoroughly, I found that these two elements at the end of the .gpx files are allowed to exist from the GPX schema. So, the problem is that I had a problem in my validation method, which is now fixed.