Taxonomies and XML Output
-
I’m getting ready to build a RV site that needs to generate an XML output file to go to RVTrader. RVTrader has a specific set of requirements for the XML output. According to them, nobody has built anything using WordPress to work w/ their API. That is what I’m wanting to do.
Looking at the core functionality, it seems that using custom taxonomies to populate the data into the DB would be the easiest for the end user. This would allow a simple match between the tables and the XML entities.
Here’s a sample output of what they need…
<Inventory>
<Rv>
<Awnings>0</Awnings>
<Class>Fifth Wheel</Class>
<DealerIdentifyer>McMahons Colton</DealerIdentifyer>
<Description>2002 FLEETWOOD Sea Breeze 2331 Triple Slide 5th Wheel, Focused on aerodynamic and tasteful design throughout and fashioned with lighter interiors for the fresh look of today,
</Description>
<EngineMake />
<EngineType />
<FuelType>DIESEL</FuelType>
<Length>33</Length>
<LevelingJacks>Y</LevelingJacks>
<MakeName>Fleetwood</MakeName>
<Mileage />
<ModelName>Sea Breeze 2331 Triple Slide 5th Wheel</ModelName>
<Condition>U</Condition>
<NumAirConditioners />
<Phone>4067527683</Phone>
<Price>29900</Price>
<SelfContained>Y</SelfContained>
<SleepingCapacity />
<Slideouts />
<StockNumber>US04208</StockNumber>
<WaterCapacity />
<MfrSerialNumber />
<Year>2002</Year>
<ExteriorColor />
<InteriorColor />
<Status>I</Status>
<UniqueID>b1ffc3bd23871f5e8824b12ceebd4082</UniqueID>
<ItemUrl>https://somesite.com</ItemUrl>
<City>Kalispell</City>
<StateCode>MT</StateCode>
<ZipCode>59903</ZipCode>
<CountryCode>US</CountryCode>
<Photo1>https://www.gardnerrv.com/image_1.jpg </Photo1>
<Photo2>https://www.gardnerrv.com/image_1.jpg </Photo2>
<Photo3>https://www.gardnerrv.com/image_1.jpg </Photo3>
<Photo4>https://www.gardnerrv.com/image_1.jpg </Photo4>
</Rv>
</Inventory>I’m thinking custom taxonomies is the best approach for matching up the data. From there, I can create a custom script to generate the XML output.
My questions are….
Am I on the right track?
Is there something already available that can do something like this?
If not, is there something that might save me some time?
Are there any special considerations I should keep in mind?
- The topic ‘Taxonomies and XML Output’ is closed to new replies.