Skip to content

xml parsing of entityId fails #7

@caseyjlaw

Description

@caseyjlaw

I started seeing issues with parsing some of the XML in SDMs. E.g.,

In [5]: sdm = sdmpy.SDM('16A-459_TEST_1hr.57623.72670021991.cut')
  File "<string>", line unknown
XMLSyntaxError: Element 'Entity', attribute 'entityId': [facet 'pattern'] The value '' is not accepted by the pattern '(fake)?[uU][iI][dD]:/{1,2}(/[0-9a-zA-Z]+){1,2}(/[xX]?[0-9a-fA-F]+){1,2}(#\\w{1,}){0,}'.

This errors seems to arise for all SDMs I have around, including those that have and have not been trimmed by the sdmpy scan cut script. I believe that all of my tests used SDMs that have some BDFs removed, however.
I recently reinstalled, but I can't see how that can explain my issue. I also see you've been making some changes. I thought I'd submit this in case it triggered any ideas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions