Latest Register Log In

+ Advanced Search

XML Imports

XML Imports
By
Jul 27, 2006 (Edited Mar 11, 2014)

If you wish, you can import an XML file of listings to WSN at Admin Panel -> Listings -> Add Listings -> XML Import. The format should be like this, specifying the value for each field as an XML element:
<?xml version="1.0" encoding="utf-8"?>
<linkset>
<link>
<title>Google</title>
<url>http://www.google.com</url>
<description>A search engine.</description>
<catid>1</catid>
</link>
<link>
<title>Yahoo</title>
<url>http://www.yahoo.com</url>
<description>A search engine and portal.</description>
<catid>5</catid>
</link>
</linkset>


The above is an example for WSN Links. You can use any fields, including custom fields you've added. All fields are optional (at least in theory). You can use <catname> in place of <catid> to request the file be placed in a category with the specified name or if none exists that the category be created so the link can be placed in it.

If you want to specify secondary categories for the link, use
<secondarycatids>1,2,3,4</secondarycatids>
(where 1,2,3,4 is the list of the secondary categories you want).

Please note that using the & character in a url will break XML validation (as it does HTML validation) and cause the import to not work properly. Use &amp; in urls.




Description Importing XML data.
Rating
Views 1,598 views. Averaging 0 views per day.
Similar Listings