[Pro] Auto XML file generation

Hi all,

I am trying to find a way of extracting just the page titles and urls of a website to an xml file in a similar way to how sitemap.xml files are generated via various online sources - but I can’t find anything.

Has anybody done such a thing to create an xml file as below? Thanks in advance.

[code]

Page Title 1 >http://www.mysite.co.uk/page1.html< Page Title 2 >http://www.mysite.co.uk/page2.html< [/code]

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Jonathan,
We introduced the Site Mapper Action in Freeway 5.5 that automatically creates XML site maps like this. See page 25 of the PDF guide - http://www.softpress.com/images/uploads/Whats_New_In_FW55.pdf

The completed XML files follow the site map specification and contain (in addition to the page name and url) the modification date as well as a priority setting. Would this format help at all with your task?
Thanks,
Tim.

On 20 Jul 2011, at 11:31, Jonathan Riddle wrote:

I am trying to find a way of extracting just the page titles and urls of a website to an xml file in a similar way to how sitemap.xml files are generated via various online sources - but I can’t find anything.

Has anybody done such a thing to create an xml file as below? Thanks in advance.

[code]

Page Title 1 >http://www.mysite.co.uk/page1.html< Page Title 2 >http://www.mysite.co.uk/page2.html< [/code]

Tim Plumb
Creative Director
Softpress Systems

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: Redirecting...
Looking for a webhost? We love these guys: Softpress » Web Hosting Partners


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim. I had a feeling I would be missing something simple somewhere. However, it appears that also having Relative Page Layout applied to my site folder is stopping me seeing the full settings for the Site Mapper action.

Should this be so? I am also seeing two actions:
Site Mapper File Location
Site Mapper Page Options

Jonathan


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Jonathan,
I’ve just tried the Action with the RPL Action applied to the home folder and all appears to be well here. What issues are you experiencing exactly?
The Site Mapper File Location Action simply tells Freeway to save and upload the site map XML file at this point in the publishing/upload process. The Page Options Action allows you to set individual settings for specific pages in your site rather than using the general settings in the folder Action.
Regards,
Tim.

On 20 Jul 2011, at 12:14, Jonathan Riddle wrote:

I had a feeling I would be missing something simple somewhere. However, it appears that also having Relative Page Layout applied to my site folder is stopping me seeing the full settings for the Site Mapper action.

Should this be so? I am also seeing two actions:
Site Mapper File Location
Site Mapper Page Options


Tim Plumb
Creative Director
Softpress Systems

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: Redirecting...
Looking for a webhost? We love these guys: Softpress » Web Hosting Partners


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim. If I apply the Site Mapper File Location page action to my Site Folder, I don’t see that the action is applied in the actions palette, and I don’t get to adjust any settings. I can see that the Relative Page Layout action is applied to the folder. I was just expecting to see both the Page Actions in the palette. The action is ticked under the Page Actions list, though.

If I then click on a page within the folder, the Site Mapper File Location action shows in the actions palette, but with the exclamation message Cannot Use This Action: Apply it to the Site Folder, which I assume is normal.

If I then apply the Site Mapper Page Options action, all I see is the Change Frequency and Priority settings, and not the choices seen on the pdf.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Jonathan,
I see. That is expected as the page Action only contains the settings related to the page and not any of the settings for compression or submitting your site map.
I hope that helps.
Regards,
Tim.

On 20 Jul 2011, at 15:51, Jonathan Riddle wrote:

If I then apply the Site Mapper Page Options action, all I see is the Change Frequency and Priority settings, and not the choices seen on the pdf.


Tim Plumb
Creative Director
Softpress Systems

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: Redirecting...
Looking for a webhost? We love these guys: Softpress » Web Hosting Partners


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Tim. That’s fine.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you ever have a need to generate these on the server, here’s a little script that can build such a file for you:

To use, make sure that your server (or desktop, if you’re doing this on your Mac) has the Ruby gem Nokogiri installed (in Terminal, type):

sudo gem install nokogir

or if you are using RVM, just leave off the sudo.

Then drop the report.rb file above into the folder where you want to generate a report, and edit line 10 to reflect your actual domain name. Back in Terminal, cd into the folder with your site files, and issue the command

ruby report.rb

A moment later, you will have a file named report.xml in the same folder and all of your pages will be listed there in XML format.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

wow Walter. For some reason my iPhone didn’t receive the Ping email that this thread had received a reply.

Thanks so much for that post. I will give this ago in a few days.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, typo:

sudo gem install nokogiri

Not sure why you didn’t get a ping, either. Hope this helps!

Walter

On Jul 21, 2011, at 10:45 AM, waltd wrote:

sudo gem install nokogir


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options