Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:51:06+00:00 2026-06-13T03:51:06+00:00

I have thousands of xml files with title and their description in different xml

  • 0

I have thousands of xml files with title and their description in different xml files.
Example:

<entertainment id="12">

        <title>who is your favorite star?</title>
        <description>
               <male>Brad Pitt</male>
                   <female>Angelina Jolie</female>
            </description>
 </entertainment>

I want to create a web page using minidom in python to list all the titles having links to their answer page.

from xml.dom import minidom

doc = minidom.parse('entertainment.xml')
questions = doc.getElementsByTagName('entertainment')
print "<ul><h1>Star Questions</h1>"
for n in questions:
    print "<li>" + n.toxml() +"</li>";
print "</ul>";

I have tried writing this code, which list the titles. But couldn’t make a link to the title to it’s description page. And in that short description page, for example “Brad Pitt”, i want to create a link and extract data from another xml file which has more information about Brad Pitt.

I am new to python, so not getting idea to make a link.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:51:08+00:00Added an answer on June 13, 2026 at 3:51 am

    The way that you want to achieve to your tag is wrong.
    This is the correct hierarchy:

    doc.getElementsByTagName('entertainment')[0].getElementsByTagName('title')[0].toxml()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to parse a couple of thousands XML-files from a website(I have permission)
I have a thousands of data parsed from huge XML to be inserted into
I have thousands of psd files to save as png. The psd files are
I have thousands of files, maybe hundreds of thousands of files on a Linux
Currently we have thousands of Microsoft Word files, Excel files, PDF's, images etc stored
hey guys, we have a loop that: 1.Loops over several thousand xml files. Altogether
i have a log file which contains hundreds/thousands of seperate XML messages and need
I am working on a system that will have several hundred thousand XML files,
I have developed an application which can create Xml files from Xml schema with
I have thousands of JSP files which are based on JSF1.2 but I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.