WSN Gallery
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
XML Imports
XML Imports
By Paul

Starting with WSN Links 4 / WSN Gallery 3 / WSN KB 2 / WSN Forum 2, you can import an XML file. The format should be like this, specifying the value for each field as an XML element:

<?xml version="1.0" encoding="ISO-8859-1"?>
<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.

Rating:


4.67/5 based on 3 votes. The median rating is 5.

Submitted: 07/27/06 (Edited 02/16/07)

Description: Importing XML data.

Views: 831 views. Averaging 1 per day.
In the most recent 30 day period, there've been 7 views.

Previous Article | Next Article

Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support