<hwsapi version="1.0"> <ErrorCode>...</ErrorCode> <ErrorMsg>...</ErrorMsg> <Data> <Profile> <FName>...</FName> <LName>...</LName> <SkypeId>...</SkypeId> <RssFeed>...</RssFeed> <Phone>...</Phone> <Location>...</Location> <Photo>...</Photo> <Snapshot>...</Snapshot> <Bio>...</Bio> <Nts>...</Nts> <Visible>0 or 1</Visible> <Admin>0 or 1</Admin> <Haystack name=”” id=””> <Category name=””> <Tag name=””> ... </Category> ... </Haystack> <!-- Other haystacks come here if needed. -> ... </Profile> <Profile> ... </Profile> <!-- Some other profiles may go here if needed --> ... </Data> <Time>...</Time> </hwsapi>
Usually each <Profile> section will have only one <Haystack> subsection and this will be the haystack from which you export the profiles. But if you are not a haystack admin but a single user and you export your own profile, you will have a list of all haystacks into which you are participating.
In the Export Profile(s) Wizard you can specify which profile information you actually want to export. Based on this information not all of the XML tags may be present in your export file.
You can search google for the general CSV file format or you can have a look at Wikipedia here
If you would like to import the information for your profiles into an Excel like application you can directly export into the CSV format.
When you export into CSV file, the first line of the file we call a header and it contains keywords for the data exported.
The following keywords can be found in the header:
skypeid, rssfeed, email, phone, location, photo, snapshot, bio and nts. They are analogous to the tags in the XML file.This is how a typical CSV file looks like:
haystack,fname,lname,email,visible,"Organization","Enterprises","Favourite Gun" Beast Hunters,Chris,The Master,chris@beast.org,1,"Save The Planet",Consulting;Social Networking,
In this example the first row is the header row. All items there which are different from any of the keywords are haystack categories. The second row contains the actual information. You can see that the haystack is called 'Beast Hunters'. You should pay more attention to the 7-th field in this row since it represents the tags under the "Enterprises" category. Each tag is separated from the next with a semicolon (;) character.
If this example was to be exported in XML format it would have looked like this:
<hwsapi version="1.0"> <Data> <Profile> <FName>Chris</FName> <LName>The Master</LName> <Email>chris@beast.org</Email> <Visible>1</Visible> <Haystack name="Beast Hunters"> <Category name="Organization"> <Tag name="Save The Planet" /> </Category> <Category name="Enterprises"> <Tag name="Consulting" /> <Tag name="Social Networking" /> </Category> <Category name="Favourite Gun" /> </Category> </Haystack> </Profile> </Data> </hwsapi>
If you import the example CSV file into Excel it will look similar to this:
| haystack | fname | lname | visible | Organization | Enterprises | Favourite Gun | |
| Beast Hunters | Chris | The Master | chris@beast.org | 1 | Save The Planet | Consulting;Social Networking |
Importing has the following limitations:
bio or rssfeed it will be ignored.In the XML file if your specify xml tags which cannot be recognized, they are silently ignored. The system will import only those tags which it recognizes. XML parsing erros though (e.g.: not preprly closed tags or invalid XML symbols) will be reported.
In the CSV file the first line is considered a header which identifies the information in the subsequent lines. Any field in the header which is different from the header keywords defined in the CSV section is considered to be a category name. Be careful what you write in the header.
1.4.7