Extract Data from XML using python parsing [closed]
up vote
-1
down vote
favorite
I have multiple ".xml" files, each having information about one record/respondent.
I am working on Extracting Data from ".xml" format to prepare a final master Data frame format based on the info from all the ".xml" file. Major problem i am facing is parsing/reading the tree data. Tried with "lxml", "xml",BeautifulSoup, Also referred other questions related to parsing. Couldn't find a possible solution.
Showing below the method which i tried recently but failed.
xml_doc = open("bureauResponse (1).xml","r")
contents = xml_doc.read()
soup = BeautifulSoup(contents,"lxml")
Can anyone please suggest me a python module name, so i can extract data from ".xml" format?
python xml parsing
closed as off-topic by halfelf, Rakesh, usr2564301, Maurice Meyer, guidot Nov 7 at 11:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – halfelf, Rakesh, usr2564301, Maurice Meyer, guidot
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-1
down vote
favorite
I have multiple ".xml" files, each having information about one record/respondent.
I am working on Extracting Data from ".xml" format to prepare a final master Data frame format based on the info from all the ".xml" file. Major problem i am facing is parsing/reading the tree data. Tried with "lxml", "xml",BeautifulSoup, Also referred other questions related to parsing. Couldn't find a possible solution.
Showing below the method which i tried recently but failed.
xml_doc = open("bureauResponse (1).xml","r")
contents = xml_doc.read()
soup = BeautifulSoup(contents,"lxml")
Can anyone please suggest me a python module name, so i can extract data from ".xml" format?
python xml parsing
closed as off-topic by halfelf, Rakesh, usr2564301, Maurice Meyer, guidot Nov 7 at 11:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – halfelf, Rakesh, usr2564301, Maurice Meyer, guidot
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have multiple ".xml" files, each having information about one record/respondent.
I am working on Extracting Data from ".xml" format to prepare a final master Data frame format based on the info from all the ".xml" file. Major problem i am facing is parsing/reading the tree data. Tried with "lxml", "xml",BeautifulSoup, Also referred other questions related to parsing. Couldn't find a possible solution.
Showing below the method which i tried recently but failed.
xml_doc = open("bureauResponse (1).xml","r")
contents = xml_doc.read()
soup = BeautifulSoup(contents,"lxml")
Can anyone please suggest me a python module name, so i can extract data from ".xml" format?
python xml parsing
I have multiple ".xml" files, each having information about one record/respondent.
I am working on Extracting Data from ".xml" format to prepare a final master Data frame format based on the info from all the ".xml" file. Major problem i am facing is parsing/reading the tree data. Tried with "lxml", "xml",BeautifulSoup, Also referred other questions related to parsing. Couldn't find a possible solution.
Showing below the method which i tried recently but failed.
xml_doc = open("bureauResponse (1).xml","r")
contents = xml_doc.read()
soup = BeautifulSoup(contents,"lxml")
Can anyone please suggest me a python module name, so i can extract data from ".xml" format?
python xml parsing
python xml parsing
asked Nov 7 at 9:12
shyamrag cp
143
143
closed as off-topic by halfelf, Rakesh, usr2564301, Maurice Meyer, guidot Nov 7 at 11:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – halfelf, Rakesh, usr2564301, Maurice Meyer, guidot
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by halfelf, Rakesh, usr2564301, Maurice Meyer, guidot Nov 7 at 11:10
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – halfelf, Rakesh, usr2564301, Maurice Meyer, guidot
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I am not a python expert, bu I have used xml.etree.elementtree for a homework. It should do the job. If not, please describe us the problem you are facing using one of this modules.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I am not a python expert, bu I have used xml.etree.elementtree for a homework. It should do the job. If not, please describe us the problem you are facing using one of this modules.
add a comment |
up vote
0
down vote
I am not a python expert, bu I have used xml.etree.elementtree for a homework. It should do the job. If not, please describe us the problem you are facing using one of this modules.
add a comment |
up vote
0
down vote
up vote
0
down vote
I am not a python expert, bu I have used xml.etree.elementtree for a homework. It should do the job. If not, please describe us the problem you are facing using one of this modules.
I am not a python expert, bu I have used xml.etree.elementtree for a homework. It should do the job. If not, please describe us the problem you are facing using one of this modules.
answered Nov 7 at 9:19
Adrian Ivan
1
1
add a comment |
add a comment |