I am programmatically parsing xml files using xerces.
I created the schema and the xml files.
I am getting an error in that the setTagValue(String value) method is sometimes being passed only a part of the string as the parameter.
The parameter is a string representing a date.
It is defined in the schema as a string:
<xsd:element name="day_date" minOccurs="1" maxOccurs="1">
As an example, I would expect "value" parameter to be "01x18x1999" but it is "01x"
The error is consistent in that the same dates show up as errors each run.
I have checked the xml files, they are fine, e.g:
It repeats the same errors each run, so they are not random, seemingly.
In a total of about 7800 of these dates, the error occurs 20 times.
What can i do?
btw, the reason i have 01x18x1988 instead of 01/18/1988 is that i was checking to see if the / was causing the problem