xml feed

9 posts by 3 authors in: Forums > CMS Builder
Last Post: November 2, 2009   (RSS)

By (Deleted User) - October 28, 2009 - edited: October 28, 2009

Hi,

I am trying to make an xml feed (or dump) for 2 real estate listing sites (trulia and streeteasy), so they can automatically download my sites listings on a regular basis.

I have created 2 links:
(removed)

I keep getting these kinds of errors:
This page contains the following errors:
error on line 1 at column 527: Document is empty

Can you please look at attached files and let me know what to do?

Re: [randyprod] xml feed

By Dave - October 28, 2009

Also, I removed your attachments and links as they had database passwords in them.
Dave Edis - Senior Developer
interactivetools.com

Re: [ross] xml feed

By (Deleted User) - October 28, 2009 - edited: October 29, 2009

Hi Ross,

Nice to work with you again.

I did what you sugguested and added .php to end of file- linkname and this is the error message I get now:

Parse error: syntax error, unexpected T_STRING in /home/f/a/2/20156/20156/public_html/cmsAdmin/streeteasy.xml.php on line 6

Hmmm?

Update: Removed Attachments (Dave)

Re: [randyprod] xml feed

By Dave - October 29, 2009

Hi Randy,

There's some PHP errors in the code:
- this die("Could not connect: ' should be die("Could not connect: "
- You need to close your PHP tag before <?xml like this ?> <?xml
- and there's just a lot more PHP code that needs to be written.

Also, please be careful not to post PHP files with your database passwords as this is a public forum and you don't want everyone to know those.
(I've removed your attachments)

I'd recommend starting with the RSS feed example here:
http://www.interactivetools.com/docs/cmsbuilder/rss_feeds.html

Or having us doing this as a custom job for you.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] xml feed

By (Deleted User) - October 29, 2009

Hi Dave,

Thanks for getting back to me. I actually do have an rss feed up and running:

feed://www.hamptonhomesre.com/cmsAdmin/rss.xml.php

The problem is the RE agencies said they couldn't take that they wanted a XML feed.

Re: [randyprod] xml feed

By Dave - November 2, 2009

Hi Randy,

Well that would make a good starting point. RSS is actually XML as well. XML is just the data format where you have <tags>around things</tags> like that.

We'd done some feeds like that before, you just need to make your tags match theirs.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] xml feed

By (Deleted User) - November 2, 2009 - edited: November 2, 2009

I am confused. I made the rss feed and it works I sent you the link and the link of the xml feed that I have that doesn't work which includes their tags like you mentioned.

can you help me figure out what I am doing wrong or can I hire you to fix it?

feed://www.hamptonhomesre.com/cmsAdmin/rss.xml.php
(link with passwords removed - Dave)

Feed tags below:

<?xml version="1.0" encoding="UTF-8"?>
<?php header('Content-type: application/xml; charset=utf-8'); ?>
<?php echo('<?xml version="1.0" encoding="utf-8"?>'); ?>
<properties>
<property>
<location>
<street-address/>
<city-name/>
<zipcode/>
<state-code/>
</location>
<details>
<listing-title/>
<price/>
<year-built/>
<num-bedrooms/>
<num-bathrooms/>
<lot-size/>
<square-feet/>
<property-type/>
<description/>
<landing-page/>
<lp-url/>
<listing-type/>
<status/>
<site/>
<site-url/>
<site-name/>
<pictures/>
<picture/>
<picture-url/>
<picture-caption/>
<picture-description/>
<picture-seq-number/>
<agent/>
<agent-name/>
<agent-phone/>
<agent-email/>
<agent-picture-url/>
<broker/>
<broker-name/>
<broker-phone/>
<broker-email/>
<broker-website/>
<broker-logo-url/>
<broker-address/>
<broker-street-address/>
<broker-city-name/>
<broker-zipcode/>
<broker-state-code/>
<office/>
<office-name/>
<office-phone/>
<office-email/>
<office-website/>
<tax/>
<tax-type/>
<tax-year/>
<tax-amount/>
<detailed-characteristics/>
<cooling-systems/>
<cooling-system/>
<heating-systems/>
<heating-system/>
<heating-fuel/>
<architecture-style/>
<exterior-type/>
<room-count/>
<num-floors/>
<has-basement/>
<has-dock/>
<has-fireplace/>
<has-hot-tub-spa/>
<has-lawn/>
<has-pool/>
<has-sportscourt/>
<is-waterfront/>
</details>
</property>
</properties>

Re: [randyprod] xml feed

By Dave - November 2, 2009

Hi Randy,

Sure, we can do it for you. I'll try and give you a call right now. If I don't get through feel free to email me at dave@interactivetools.com and we can sort out the details.

Thanks!
Dave Edis - Senior Developer
interactivetools.com