# Path: packtools/normalizer.py
# def extract_number_and_supplment_from_issue_element(issue):
# 
# Path: packtools/sps/utils/xml_utils.py
# def formatted_text(title_node):
# def fix_xml(xml_str):
# def fix_namespace_prefix_w(content):
# def _get_xml_content(xml):
# def get_xml_tree(content):
# def tostring(node, doctype=None, pretty_print=False):
# def node_text(node):
# def get_year_month_day(node):
# def create_alternatives(node, assets_data):
# def parse_value(value):
# def parse_issue(issue):
# def is_allowed_to_update(xml_sps, attr_name, attr_new_value):
# def match_pubdate(node, pubdate_xpaths):


import logging
import os
from lxml import etree
from packtools import normalizer
from packtools.sps.utils import xml_utils



logger = logging.getLogger(__name__)


class SPS_Package:
    def __init__(self, xml, original_filename=None):

# Path: packtools/normalizer.py
# def extract_number_and_supplment_from_issue_element(issue):
# 
# Path: packtools/sps/utils/xml_utils.py
# def formatted_text(title_node):
# def fix_xml(xml_str):
# def fix_namespace_prefix_w(content):
# def _get_xml_content(xml):
# def get_xml_tree(content):
# def tostring(node, doctype=None, pretty_print=False):
# def node_text(node):
# def get_year_month_day(node):
# def create_alternatives(node, assets_data):
# def parse_value(value):
# def parse_issue(issue):
# def is_allowed_to_update(xml_sps, attr_name, attr_new_value):
# def match_pubdate(node, pubdate_xpaths):


# Path: packtools/sps/models/sps_package.py
import logging
import os
from lxml import etree
from packtools import normalizer
from packtools.sps.utils import xml_utils




logger = logging.getLogger(__name__)


class SPS_Package:
    def __init__(self, xml, original_filename=None):

        self.xmltree = xml_utils.get_xml_tree(xml)