Skip Navigation LinksHome : Feed Publishing : Information For Consumers
  

Skip Navigation Links
Home
RSS ExplainedExpand RSS Explained
CRSSB OverviewExpand CRSSB Overview
Installation/ActivationExpand Installation/Activation
General FeedsExpand General Feeds
Real Estate FeedsExpand Real Estate Feeds
Importing DataExpand Importing Data
Feed PublishingExpand Feed Publishing
Broadcasting Your Feed
Feed File Management
Web Site Integration
Download Latest Version
More Help
 

  Overview Videos

    CRSSB

    CRSSB for Real Estate


 
  Useful Links

    Commtraxx Plaza

    Software for Finance Brokers

    Tangent Create Design

    Webmaster Resources









This page contains information for web sites wishing to consume real estate feeds created with Commtraxx RSS Builder.

Fields are labeled with <a name> tags within the description node of the RSS feed items.
Available Fields
Field Name
(case sensitive)
Field Description
PropertyType House | Apartment | Land | Commercial | Rural | Office Space | Other
ListingType For Sale | For Rent | For Lease | For Auction
ForSaleByOwner By Agent | By Owner
Image1 URL to image file
Image2 URL to image file
Currency $ | £ | € | ¥ | ₱ | ₩ | R | 元 | ₪
AskingPrice Number (2 decimal places)
AskingPriceType Negotiable | Not Negotiable | Reserve | Per Month | Per Week | P.O.A. | Per sqm | Per sqft
Description Text - may contain HTML
Bedrooms Integer between 1 and 10 or "10"
Bathrooms Integer between 1 and 10 or "10"
Parking Integer between 1 and 10 or "10"
FloorAreaType Floor Area (sq.m) | Floor Area (sq.ft)
FloorArea Number
Street Address Text
Suburb Text
State Text - Unabbreviated
PostalCode Text
Country Text - Unabbreviated
ListingID Text
Sample C# Code For Extracting Fields
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Xml;

private void ExtractDataFeildsFromCRSSBFeed(string sFeedURL)

      System.Net.WebRequest myRequest = System.Net.WebRequest.Create(""+ sFeedURL +""); 
      System.Net.WebResponse myResponse = myRequest.GetResponse();
      System.IO.Stream rssStream = myResponse.GetResponseStream();
      System.Xml.XmlDocument rssDoc = new System.Xml.XmlDocument(); 
      rssDoc.Load(rssStream);

      System.Xml.XmlNodeList rssProperties = rssDoc.SelectNodes("rss/channel"); 

      string sFeedTitle = ""; 
      string sSiteURL = "";
      string sWebmasterEmail = "";
      string sCopyright = ""; 
      string sDescription = "";
      string sImageURL = "";
      string sImageCaption = "";
      string sImageHyperlink = ""; 

      for (int i = 0; i < rssProperties.Count; i++) 
      { 
            System.Xml.XmlNode rssProp; 
            sFeedTitle =rssProperties.Item(i).SelectSingleNode("title"); 
            rssProp = rssProperties.Item(i).SelectSingleNode("link"); 
            sSiteURL = rssProp.InnerText; 
            rssProp = rssProperties.Item(i).SelectSingleNode("description"); 
            sDescription = rssProp.InnerText; 
            rssProp = rssProperties.Item(i).SelectSingleNode("copyright"); 
            sCopyright = rssProp.InnerText; 
            rssProp = rssProperties.Item(i).SelectSingleNode("webMaster"); 
            sWebmasterEmail = rssProp.InnerText;
       } 

      System.Xml.XmlNodeList rssImage = rssDoc.SelectNodes("rss/channel/image"); 
      for (int j = 0; j < rssImage.Count; j++) 
      { 
            System.Xml.XmlNode rssImg; 
            rssImg = rssImage.Item(j).SelectSingleNode("url"); 
            sImageURL = rssImg.InnerText; rssImg = rssImage.Item(j).SelectSingleNode("title");
            sImageCaption = rssImg.InnerText; 
            rssImg = rssImage.Item(j).SelectSingleNode("link"); 
            sImageHyperlink = rssImg.InnerText; 
      }

      System.Xml.XmlNodeList rssItems = rssDoc.SelectNodes("rss/channel/item"); 
      string sItemTitle = ""; 
      string sItemLink = ""; 
      string sItemDescription = ""; 
      string sPubDate = ""; 

      for (int k = 0; k < rssItems.Count; k++) 
      {
            System.Xml.XmlNode rssDetail; 
            rssDetail = rssItems.Item(k).SelectSingleNode("title"); 
            sItemTitle = rssDetail.InnerText; 

            try 
            { 
                  int iEPos = 0; 
                  iEPos = sItemTitle.IndexOf(" | "); 
                  sItemTitle = sItemTitle.Substring(0, iEPos);
             }
            catch { }

            rssDetail = rssItems.Item(k).SelectSingleNode("link"); 
            sItemLink = rssDetail.InnerText;
            rssDetail = rssItems.Item(k).SelectSingleNode("description"); 
            sItemDescription = rssDetail.InnerText; 
            rssDetail = rssItems.Item(k).SelectSingleNode("pubDate"); 
            sPubDate = rssDetail.InnerText; 

            int iStartPos = 0; 
            int iEndPos = 0; 

            string sGetPropertyType = ""; 
            try 
            {
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 21, sItemDescription.Length - iStartPos - 21).IndexOf("
"); 
                        sGetPropertyType = sItemDescription.Substring(iStartPos + 21, iEndPos); 
                  }
             } 
            catch { }

             string sGetListingType = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 20, sItemDescription.Length - iStartPos - 20).IndexOf("
"); 
                        sGetListingType = sItemDescription.Substring(iStartPos + 20, iEndPos); 
                  } 
            } 
            catch { }

            char cCurrency = Convert.ToChar("$"); 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 17, sItemDescription.Length - iStartPos - 17).IndexOf("
"); 
                        cCurrency = Convert.ToChar(sItemDescription.Substring(iStartPos + 17, iEndPos)); 
                  } 
            } 
            catch { } 

            string sAskingPrice = ""; 

            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 20, sItemDescription.Length - iStartPos - 20).IndexOf("
"); 
                        sAskingPrice = sItemDescription.Substring(iStartPos + 20, iEndPos); 
                  } 
            } 
            catch { } 

            string sAskingPriceType = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 24, sItemDescription.Length - iStartPos - 24).IndexOf("
"); 
                        sAskingPriceType = sItemDescription.Substring(iStartPos + 24, iEndPos); 
                  } 
            } 
            catch { } 

            string sDescriptionItem = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0)
                  { 
                         iEndPos = sItemDescription.Substring(iStartPos + 20, sItemDescription.Length - iStartPos - 20).IndexOf("
"); 
                        sDescriptionItem = sItemDescription.Substring(iStartPos + 20, iEndPos);
                   }
             } 
            catch { } 

            string sBedrooms = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 17, sItemDescription.Length - iStartPos - 17).IndexOf("
"); 
                        sBedrooms = sItemDescription.Substring(iStartPos + 17, iEndPos); 
                  }
             } 
            catch { } 

            string sBathrooms = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 18, sItemDescription.Length - iStartPos - 18).IndexOf("
"); 
                        sBathrooms = sItemDescription.Substring(iStartPos + 18, iEndPos); 
                  }
            } 
            catch { } 

            string sParking = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 16, sItemDescription.Length - iStartPos - 16).IndexOf("
"); 
                        sParking = sItemDescription.Substring(iStartPos + 16, iEndPos); 
                  }
             } 
            catch { } 

            string sFloorArea = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 18, sItemDescription.Length - iStartPos - 18).IndexOf("
"); 
                        sFloorArea = sItemDescription.Substring(iStartPos + 18, iEndPos); 
                  } 
            } 
            catch { } 

            string sFloorAreaType = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 22, sItemDescription.Length - iStartPos - 22).IndexOf("
"); 
                        sFloorAreaType = sItemDescription.Substring(iStartPos + 22, iEndPos); 
                  } 
            } 
            catch { } 

            string sCountry = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 16, sItemDescription.Length - iStartPos - 16).IndexOf("
"); 
                        sCountry = sItemDescription.Substring(iStartPos + 16, iEndPos); 
                  } 
            } 
            catch { } 

            string sState = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 14, sItemDescription.Length - iStartPos - 14).IndexOf("
"); 
                        sState = sItemDescription.Substring(iStartPos + 14, iEndPos); 
                  } 
            } 
            catch { } 

            string sStreet = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 22, sItemDescription.Length - iStartPos - 22).IndexOf("
"); 
                        sStreet = sItemDescription.Substring(iStartPos + 22, iEndPos); 
                  } 
            } 
            catch { } 

            string sSuburb = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 15, sItemDescription.Length - iStartPos - 15).IndexOf("
"); 
                        sSuburb = sItemDescription.Substring(iStartPos + 15, iEndPos); 
                  } 
            } 
            catch { } 

            string sPostCode = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 19, sItemDescription.Length - iStartPos - 19).IndexOf("
"); 
                        sPostCode = sItemDescription.Substring(iStartPos + 19, iEndPos); 
                  } 
            } 
            catch { } 

            string sSaleByOwner = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 23, sItemDescription.Length - iStartPos - 23).IndexOf("
"); 
                        sSaleByOwner = sItemDescription.Substring(iStartPos + 23, iEndPos); 
                  } 
                  if (sSaleByOwner.ToString().ToUpper() == "BY OWNER") 
                  { 
                        sSaleByOwner = "true"; 
                  } 
                  else 
                  { 
                        sSaleByOwner = "false"; 
                  } 
            } 
            catch { } 

            string sGetImage1 = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  {
                        iEndPos = sItemDescription.Substring(iStartPos + 15, sItemDescription.Length - iStartPos - 15).IndexOf("
"); 
                        sGetImage1 = sItemDescription.Substring(iStartPos + 15, iEndPos); 
                        iEndPos = 0; 
                        iStartPos = 0; 
                        iStartPos = sGetImage1.IndexOf("src="); 
                        if (iStartPos > 0) 
                        { 
                              iEndPos = sGetImage1.IndexOf(" width="); 
                        } 
                        if (iEndPos > 0) 
                              sGetImage1 = sGetImage1.Substring(iStartPos + 5, iEndPos - iStartPos - 6); 
                  }
             } 
            catch { }

            string sGetImage2 = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 15, sItemDescription.Length - iStartPos - 15).IndexOf("
"); 
                        sGetImage2 = sItemDescription.Substring(iStartPos + 15, iEndPos); 
                        iEndPos = 0; 
                        iStartPos = 0; 
                        iStartPos = sGetImage2.IndexOf("src="); 
                        if (iStartPos > 0) 
                        { 
                              iEndPos = sGetImage2.IndexOf(" width="); 
                        } 
                        if (iEndPos > 0) 
                              sGetImage2 = sGetImage2.Substring(iStartPos + 5, iEndPos - iStartPos - 6); 
                  } 
            } 
            catch { } 

            string sListingID = ""; 
            try 
            { 
                  iStartPos = sItemDescription.IndexOf("
"); 
                  if (iStartPos > 0) 
                  { 
                        iEndPos = sItemDescription.Substring(iStartPos + 18, sItemDescription.Length - iStartPos - 18).IndexOf("
"); 
                        sListingID = sItemDescription.Substring(iStartPos + 18, iEndPos); 
                  } 
            } 
            catch { } 

      //Feed Item Variables     
      // The following variables will now contain the corresponding data field values
     
       //sItemTitle
      //sGetListingType 
      //sGetPropertyType 
      //cCurrency
      //sAskingPrice, 
      //sAskingPriceType
      //sDescriptionItem
      //sBedrooms
      //sBathrooms
      //sParking
      //sFloorArea
      //sFloorAreaType
      //sCountry
      //sState
      //sStreet
      //sSuburb
      //sPostCode
      //sSaleByOwner
      //sGetImage1
      //sGetImage2
      //sItemLink
      //sPubDate
      //sListingID

      } 

//Feed Header Variables
// The following variables will now contain the corresponding data field values

//sFeedTitle = ""; 
//sSiteURL = "";
//sWebmasterEmail = "";
//sCopyright = ""; 
//sDescription = "";
//sImageURL = "";
//sImageCaption = "";
//sImageHyperlink

}

 © Copyright 2007 Commtraxx Pty Limited. All rights reserved.