Latest Register Log In

+ Advanced Search

XML Imports

XML Imports
By
07/27/06 (Edited 03/11/14)

If you wish, you can import an XML file of topics to WSN at Admin Panel -> Topics -> Add Topics -> 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 forum with the specified name or if none exists that the forum be created so the link can be placed in it.

If you want to specify secondary forums for the link, use
<secondarycatids>1,2,3,4</secondarycatids>
(where 1,2,3,4 is the list of the secondary forums 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 1591 views. Averaging 0 views per day.