diff --git a/tulit/parsers/akomantoso.py b/tulit/parsers/akomantoso.py index 878bf52..d3c3a1e 100644 --- a/tulit/parsers/akomantoso.py +++ b/tulit/parsers/akomantoso.py @@ -22,9 +22,7 @@ def __init__(self): Initializes the parser. """ super().__init__() - - self.act = None - + # Define the namespace mapping self.namespaces = { 'akn': 'http://docs.oasis-open.org/legaldocml/ns/akn/3.0', @@ -111,21 +109,6 @@ def extract_eId(recital): def get_preamble_final(self): return super().get_preamble_final() - ### Act block - def get_act(self) -> None: - """ - Extracts the act element from the document. - - Returns - ------- - None - Updates the instance's act attribute with the found act element. - """ - # Use the namespace-aware find - self.act = self.root.find('.//akn:act', namespaces=self.namespaces) - if self.act is None: - # Fallback: try without namespace - self.act = self.root.find('.//act') def get_body(self): return super().get_body('.//akn:body')