URGENT! XML data feed integration

Assistance required with XML data feed integration from another site into my website. Can this be done? I have databases already established for my Wix site, but need to work out how XML data can be fed into it.

I’ve designed a site for my client, but was not told until the project was almost complete that they want data they are entering into another site to be displayed on their site. Long story cut short, they are a marine/boat dealer who use a popular sales site that has the ability to feed other sales websites, as well as their own. Iframes look like crap when displaying the data, so I’m hoping to find another way.

I initially created a database for the client to enter their sales info, however I’m now hoping there is a way to get the external XML data to feed into my Wix database. Is this possible?

I’m also relatively new to coding, so please be gentle!

1 Like

Hi,
You can use HTTP functions to post or get information from you DB collection. Click here and here to learn more about it.

Best,
Tal.

Hi Cath! We have the same question! Do you mind sharing how you figured out how to integrate the XML code?

2 Likes

any news on how to complete this task? need to connect external XML feed into wix database.

1 Like

I have the same question, the suggested links are how to share data collections from Wix site not how to feed Wix data collection from another live data source.

1 Like

Wix promised me at the London meeting that they were developing an app to allow pages to pull information from other sites as an XML feed. That was over a year ago I think.
They also said they were developing an app specifically for Real Estate Agents, as ALL Agents need to display their portfolio on generic sites first in order to sell a house… So basically Wix is still a waste of time if you want to have real estate clients…
I have more of a problem with how to the big Wix boys lied in front of everybody when asked a direct question. Just say you still can’t do it, which closes Wix off to anybody in Real Estate, and closes that industry off to me as a Designer…

Have look at using the XML-JS NodeJS as mentioned here.
https://www.wix.com/corvid/forum/community-discussion/exporting-syncing-wix-store-xml-feed-to-another-website

Workaround:
With a little coding experience, you can integrate IDX from an external serve r using Corvid by Wix. You can find more information about using Corvid here .

https://support.idxbroker.com/support/s/article/integrating-idx-with-a-wix-site
https://theinsider.idxcentral.com/idx-for-weebly-wix-squarespace-real-estate-websites/
https://kb.ihomefinder.com/s/article/add-idx-to-a-wix-com-website
Of course, other companies provide their own service…

https://www.wix.com/website/templates/html/business/real-estate
https://support.wix.com/en/article/third-party-app-simple-real-estate

@_cath , @dominic67571 Did you obtain a solution for importing xml feed into your Wix site datasource?
Thanks.

I’m attempting to build a job that imports external xml feed (RSS) into a WIX datasource. The first step of retrieving the xml file using fetch() has yielded errors that I need help interpreting.

When I specify the xml as a literal string in the backend jsw, I can retrieve the content to the front end, but if I substitute the fetch() results for the literal xml, I get an error. Here is the simplistic prototyping backend code which successfully passes the literal text to the front end:

export function showXML(URL) {
var xml =
'<?xml version="1.0" encoding="utf-8"?>' +
'<note importance="high" logged="true">' +
'    <title>Happy</title>' +
'    <todo>Work</todo>' +
'    <todo>Play</todo>' +
'</note>';
return xml;

Below is attempt to use fetch() to retrieve the xml. It results in the error: “converting circular structure to JSON”

import {fetch} from 'wix-fetch'; 
export function showXML(URL) {
     let sourceURL='https://digitaltrends.com/feed/';
     let xml= fetch (sourceURL, {
         method: 'get'});
return xml; 
}

I tried adding the “body: ‘text’” option to fetch(), but that did not eliminate the error.
Is it not possible to retrieve an xml file with fetch()?

My expectation was that the xml could be obtained with fetch() and then converted to json with xml-js utilities to then be inserted into a datasource.

Any guidance with this will be greatly appreciated!
Thanks.

Instead of commenting on old posts. Please consider creating a fresh post while clearly explaining your issue. This helps you get quicker solution and keeps the Community Forum clean.

Read out Community Guidelines for posting guidelines.

I’m closing this thread because it has been bumped numerous times without adding any solution or value to the problem in context.