Extract data from xml web page

Thirty_Noodles

New Member
Joined
Jan 14, 2025
Messages
2
Office Version
  1. 2024
Platform
  1. Windows
Hello all,

So I thought that this should be relatively straightforward, but unfortunately I appear to be stuck. I've had a quick search through existing posts on this forum, yet no joy either... I'll say from the start that my knowledge of PowerQuery or data extraction is quite limited, so apologies for anything that should be obvious.

Issue 1:
In a nutshell, I'm trying to use a web query to extract data from this website:


The query works fine, however there are multiple pages of table data that I need, yet the URL remains identical regardless of which page you're on, so I can't seem to grab the data from the subsequent pages.

Issue 2:
I've tried to work out a way to resolve this, but I then realised there is however a separate page on this website that contains all the data I need, which could be easier... However, this is in a .xml format, so when I try to extract the data it doesn't seem to work (I'd be happy simply with the full list of text)


Question:
Is there an easy way to extract all the text on the .xml page, or if this won't work, a way to get the data from the other pages in the original issue if that's easier?

Just thought I'd ask rather than drive myself nuts on something that I thought should be simple enough.

Thanks in advance.

Noodles.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Power Query:
let
    Source = Xml.Tables(Web.Contents("https://ntm.pla.co.uk/rss/notices_to_mariners.xml")),
    channel = Source{0}[channel],
    item = channel{0}[item]
in
    item
 
Upvote 0
Solution

Forum statistics

Threads
1,225,684
Messages
6,186,424
Members
453,354
Latest member
Ubermensch22

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top