Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alta
alta
Commits
4352e927
Commit
4352e927
authored
Sep 19, 2013
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor modification, found out why my code wasn't working
parent
b0441993
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
sources/scripts/xml_cmd.py
sources/scripts/xml_cmd.py
+13
-0
No files found.
sources/scripts/xml_cmd.py
0 → 100755
View file @
4352e927
#!/usr/bin/python
from
sys
import
argv
from
xml.etree.ElementTree
import
parse
# Test if file argv[1] exists
# Open the file argv[1] and parse it
tree
=
parse
(
argv
[
1
])
root
=
tree
.
getroot
()
# Command lines creation
for
child
in
root
:
print
child
.
tag
,
child
.
attrib
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment