Skip to content

Commit

Permalink
fixing some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shirazos7 committed Dec 12, 2024
1 parent 5f487dd commit f3bb869
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/swmath2swh/staging_deposit_v2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from swmath2swh.restApi_software_Json import process_metadata
from swmath2swh.convertSoftware_from_json_toXml import convert_json_to_xml
import defusedxml.ElementTree as DET # Using defusedxml for safe XML parsing
import lxml.etree as ET # Using lxml for XSLT transformations
from defusedxml.lxml import fromstring
import lxml.etree as ET
import pandas as pd
import subprocess
import time
Expand All @@ -26,7 +27,7 @@
dom_str = DET.tostring(dom, encoding='unicode')

# Use lxml to parse the XML string for XSLT transformation
lxml_dom = ET.fromstring(dom_str)
lxml_dom = fromstring(dom_str)

# Perform XSLT transformation using lxml
xslt = ET.parse(xsl_filename)
Expand Down

0 comments on commit f3bb869

Please sign in to comment.