LilithWittmann / ozg

Parsers/Generators for the standards related to "Onlinezugangsgesetz" esp. FIM (xDatenfelder/xZufi/xöv)
MIT License
12 stars 1 forks source link

Parsing of `xdf:xdatenfelder.datenfeldgruppe.0103` unclear #5

Closed codedust closed 2 years ago

codedust commented 2 years ago

When parsing documents that are not xdf:xdatenfelder.stammdatenschema.0102, is there any reason to switch from FIMStructure based parsing to FIMFieldGroup based parsing?

         else:
            self.form.append(FIMFieldGroup( self.parsed_xml.children[0].xdf_datenfeldgruppe, self))

https://github.com/LilithWittmann/ozg/blob/master/ozg/xdatenfelder/parser.py#L452-L453

codedust commented 2 years ago

Because xdf:datenfeldgruppe ist the highest level element