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?










share|improve this 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.

















    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?










    share|improve this 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.















      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?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      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.
























          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.






          share|improve this answer




























            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.






            share|improve this answer

























              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.






              share|improve this answer























                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 7 at 9:19









                Adrian Ivan

                1




                1















                    這個網誌中的熱門文章

                    Xamarin.form Move up view when keyboard appear

                    Post-Redirect-Get with Spring WebFlux and Thymeleaf

                    Anylogic : not able to use stopDelay()