Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Carlos-Francisco Méndez-Cruz
/
automatic-extraction-growth-conditions
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Carlos-Francisco Méndez-Cruz
2018-09-06 12:10:29 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
baffab60cd820de87371c1c9ee68dd0564b5ed94
baffab60
1 parent
f6ec0d99
Transform soft to xml
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
preprocessing-data/soft-2-xml.py
preprocessing-data/soft-2-xml.py
View file @
baffab6
...
...
@@ -56,6 +56,10 @@ if __name__ == "__main__":
oFile
.
write
(
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
\n\n
<gse xmlns:xsi=
\"
http://www.w3.org/2001/XMLSchema-instance
\"\n
xsi:noNamespaceSchemaLocation=
\"
esquema-gcs.xsd
\"
>
\n\n
"
)
for
line
in
iFile
:
line
=
line
.
replace
(
"&"
,
"&"
)
line
=
line
.
replace
(
"<"
,
"<"
)
# line = line.replace(">", ">")
# line = line.replace("\"", """)
# line = line.replace("\'", "'")
oFile
.
write
(
line
)
oFile
.
write
(
"
\n
</gse>
\n
"
)
...
...
Please
register
or
login
to post a comment