detecting those empty metadata elements
Rod Widdowson
rdw at steadingsoftware.com
Thu May 21 09:44:33 UTC 2020
> Our local metadata file got hit with that invalid due to empty elements
> error. My first fix was to split it into a local dynamic metadata
> directory (about 2K files).
>
> Is there a better tester?
You can get a long way by grepping for '="en"/>'
as in:
<ServiceName xml:lang="en"/>
Outside tests, I've not seen:
<ServiceName xml:lang="en"></ServiceName>
But '"en"></' might be another pattern.
If you are prepared to build from master (which will be 4.0.1)
1) it will not fail and
2) It will give somewhat better warnings on the bad data which might help
/Rod
More information about the users
mailing list