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

  • Home
  • SEARCH
  • 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 8907317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:53:06+00:00 2026-06-15T02:53:06+00:00

How to extract table data <table bgcolor=#004e8e width=100% align=center cellpadding=3 cellspacing=0 id=borda_bai> site http://www.orientcinemas.com.br/programacao/cinema.php?cod=5

  • 0

How to extract table data <table bgcolor="#004e8e" width="100%" align="center" cellpadding="3" cellspacing="0" id="borda_bai"> site http://www.orientcinemas.com.br/programacao/cinema.php?cod=5 with php?

And another question is how to put each data table in a xml?

Ex: a table of the same site

C1 C2 C3 C4 C5

L1
L2
L4
L5

And in xml
C1L1 =>

<C1>
                 <L1> </ L1>
                 <L2> </ L2>
               
</ C1>

Facilitate the handling / use of data: (

  • 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-15T02:53:07+00:00Added an answer on June 15, 2026 at 2:53 am

    You can use XPathSelector:

    $xs = XPathSelector\Document::loadHTMLFile('http://www.orientcinemas.com.br/programacao/cinema.php?cod=5');
    $table = $xs->select('//*[@id="borda_bai"][1]');
    $result = array();
    $row = 0;
    foreach ($table->select('tr[position()>1]') as $tr) {
        $row++;
        $column = 0;
        foreach ($tr->select('td') as $td) {
            $column++;
            $result[$row][$column] = $td->extract();
        }
    }
    

    And the $result will be

    Array
    (
        [1] => Array
            (
                [1] => 1
                [2] => 243
                [3] => A Saga Crep├║sculo: Amanhecer - Parte 2
                [4] => 12a.
                [5] => Dub. - 13h30, 16h00, 18h30, 21h00
            )
        etc......
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jsoup to extract data from a table in a website. http://www.moneycontrol.com/stocks/marketstats/gainerloser.php?optex=BSE&opttopic=topgainers&index=-1
I have following data in my table. alt text http://img26.imageshack.us/img26/3746/productfield.png I want to extract
I want to extract the text from the table http://www.amiriconstruction.co.uk/goodwoodgolf/scoretable.htm into a textile in
I need to extract a table of data on a collection of pages. I
I have simple SSIS data flow which extract records from table A and load
I have a data.table and I need to extract equal length segments starting at
Using data organised as dtl <- replicate(10,data.table(id=sample(letters,10),val=sample(10)), simplify=F) lapply(dtl, function(x){setkey(x,'id')}) I need to extract
I am trying to extract the first and third columns of this data table
I have a table that I need to extract data from, and wish to
I'm traying to extract info from a table made in xml, here is an

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.