WP-Property: Importer - Available XPath Functions For WP Importer Schedules

Free Text (free_text). 

Free text is used to specify a common attribute value instead of executing an XPath rule on every individual item. For example, to you could set the Imported From attribute to be the same for all listings like so:

free_text: Imported from Some List

Function: uppercase

To convert all alphabetic characters to uppercase, use the uppercase command, like so:

uppercase: {xpath}.

Concatenation (concat).

Concatenation will combine values from several values in the feed into a single value. For example you, if your feed does not provide you with ready-to-use Titles, you could create your Property Titles from several XML attributes:

concat:'bedrooms' bedroom house in 'location/city'

List Value Concatenation (concat_list).

This function is most commonly used for Taxonomy values - attributes that do not need to have a unique label for every value.  For instance, if the listings in your feed are for homes, and each home has several features, you could use this function to get all the values and import them as individual attributes. (More on this function below). Example: 

[concat_list root_path="property_features/option" label_path="label" value_path="value" concat_character=":" ] 

The concat_list function is used for combining child elements of another element into one (for example, displaying city and state, or street number and street, together).  But this function can be even more useful than that. Let's say your XML looks like this:

2011-08-19_1124

Extracting "Bedrooms" and "Bathrooms" is relatively easy; corresponding WP-Property attributes likely already exist, so mapping them over is a simple affair.  However, let's say that you do not want to create an attribute for every single item under "Options", but still want to display the "Options" information on your site.

In this situation, you can tell the XML Importer to simply combine all data under "options" into label-value pairs.  The code would look like this:

[concat_list root_path="options/option" label_path="/label" value_path="/value" concat_character=":" ]

And would result in something like this:

2011-08-19_1130

The variables you are allowed to use are:

  • root_path Which is the relative XML xPath to the parent attribute, in this case it's options/option
  • label_path The relative path (in relation to the root_path) to the label field, when concatenated, the value of this will be on the left.
  • value_path Same as label_path, and the value imported will be to the right of the label_path
  • concat_character This is the character used to separate the label and path, can be anything you want.

WP-Property: Importer

  1. Images are not Importing in WP-Property Importer
  2. XML and RETS Setup Services for WP-Property Importer
  3. Properties not published or Pending Images Download for WP-Property Importer
  4. WP-Property: Importer - Home
  5. Error No listings are found when running the WP-Property Importer Check your Query
  6. Could not connect to RETS server HTTP in WP-Property Importer
  7. Could not load XML Object from raw data in WP-Property Importer
  8. RETS DMQL basics for WP-Property Importer
  9. Issues Connecting to RETS Server for WP-Property Importer
  10. New Google Spreadsheet format in WP-Property Importer
  11. Google Spreadsheet errors in WP-Property Importer
  12. WP-Property: Importer - Useful XPath Rules To Use In Schedules
  13. WP-Property: Importer - There Was An Issue Doing The RETS Search In WP-Property Importer
  14. WP-Property: Importer - Translating
  15. Installing WP-Property: Importer
  16. WP-Property: Importer - Running The Import For WP-Property Importer
  17. WP-Property: Importer - Recommended Values For Server Configuration Options For WP-Property Importer
  18. WP-Property: Importer - MySQL Server Has Gone Away
  19. WP-Property-Importer-Introduction To RETS
  20. WP-Property: Importer - Integration Of WP Importer With Agents Add On
  21. WP-Property: Importer - Importing CSV
  22. WP-Property: Importer - Google Spreadsheet Format Error. Authentication With Google Failed. Reason Is Bad Authentication In WP-Property Importer
  23. WP-Property: Importer - DMQL Queries
  24. WP-Property: Importer - Could Not Load XML Object From Raw Data. Looks Like The Data Has Errors And Can Not Be Converted To XML Object In WP-Property Importer
  25. WP-Property: Importer - Could Not Connect To RETS Server, PHRETS 1 Cookie File \"\" Cannot Be Written To. Must Be An Absolute Path And Must Be Writable Within WP-Property Importer
  26. WP-Property: Importer - Basic XML Import Step By Step For WP-Property Importer
  27. WP-Property: Importer - Basic RETS Import Step By Step For WP-Property Importer
  28. WP-Property: Importer - Available XPath Functions For WP Importer Schedules
  29. WP-Property: Importer - Attribute Matches In Schedule Settings For WP-Property Importer
  30. WP-Property: Importer - Advanced Schedule Options For WP-Property Importer

Feedback and Knowledge Base