<?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>
<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 & in urls.