Apple Health export file error: Errors in DTD definitions
While posted already Apple Health file error: Bad xml - Apple Community, it's now 2-1/2 months later and I'm still running into the same issue. Based on an Apple Health export performed yesterday, from an iPhone 12 mini running iOS 16.1.2.
xmllint on OSX: Ventura 13.0.1 (22A400) gives the following:
$ xmllint export.xml
export.xml:156: parser error : ATTLIST: no name for Attribute
<!ELEMENT RightEye EMPTY>
^
export.xml.fromAppleWithMistakes:206: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
device CDATA #IMPLIED
^
export.xml.fromAppleWithMistakes:206: parser error : DOCTYPE improperly terminated
device CDATA #IMPLIED
^
export.xml.fromAppleWithMistakes:206: parser error : Start tag expected, '<' not found
device CDATA #IMPLIED
^
$
Having to manually patch the export file's DTD definitions is not optimal (this a BIG file).
However, the errors should be trivially corrected (are they auto-generated?) and should be patched immediately (with actual testing!)
iPhone 12 mini