ZebroidDocumentationImportXML import profiles

XML import profiles

Documentation is not ready yet! If you have any questions - please contact with us using contact form
In program: Project → Import → XML import profiles
To have possibility correctly to import XML files, the program needs to explain what values and whence it needs to take. For this purpose it is necessary to create a profile of import XML.

Profiles of import XML (tab «Article (main)»)

Profiles of import XML (tab «Article (main)»)

In the top part of a window there are names of profiles. At double to a clique on a profile it is activated for editing.

The editor consists of 4 parts:

  1. Articles (main) — rules formation of the basic fields for article — the name and the text;
  2. Article (add.) — rules formation of other fields for article;
  3. Categories — rules formation of categories;
  4. Comments — rules formation of comments.

To create a profile at you necessarily should be XML a file with the necessary structure (it is desirable that it there was a small file as the analysis of the big files can occupy some time). First of all, after creation of a new profile, it is necessary to analyze a file that the program knew what structure at it. After the analysis it is possible to be engaged in filling of necessary fields.




Ready profiles


Import profiles created by us arrive to you together with updates but if for any reasons at you they are absent or files have been damaged — you can download them on this page. If you want to change one of standard profiles it is recommended to create a profile copy under other name, differently there is a chance during program updating to jam your changes.

DataLife Engine.binSize: 1,41 Kb
phpBB3.binSize: 1,09 Kb
Wiki.binSize: 458 byte
WordPress.binSize: 3,33 Kb





Articles (main)


Repeated тег — тег or the way to тегу in which articles (repeated it are described is called because if in a file more than 1 article for each article this тег it will be identical to be called, will cause a stir there will be only its contents). Simply choose necessary тег in the dropping out list.

Example for XML with such structure:

<shop>

<name> Internet shop OZON.ru </name>

<company> Open Company "Decision Internet" </company>

<url> http://www.ozon.ru / </url>

<currencies>

<currency id = "RUR" rate = "1"> </currency>

</currencies>

<categories>

...

</categories>

<offers>

<offer id = "83181" type = "book" available = "true">

...

</offer>

...

</offers>

</shop> 

It is necessary to choose тег: shop => offers => offer (тег offer so much time repeats in a file, how many in it is articles)

the Name — corrected formation of the name of article. Теги in this field are specified in double braces. For example: {{name}} — {{author}} . On right in the field тег you can choose a clique necessary тег and the program itself will insert it in the necessary format.

article Text — formation тегов articles corrected. Simply place necessary теги in proper places. As well as in the previous case теги are specified in double braces (the editor will illuminate them dark blue).

In the text and the name of article тегов it is necessary for a choice it is supervised by a following rule: the name tags or parametre should be always concluded in double braces. As there is a possibility to extend value тегов on a condition. The condition can be 2 types — value of parametre or value тега. For example, at us is such XML a code:

...

<param name = "Colour"> 2х dark grey, 2х berry </param>

<param name = "Size"> 40/42 </param>

... 

In both cases a name tags param , but they in themselves have the information different in value. To pull out colour, it is necessary to write such code {{param [attr_name=Цвет]}} , and that the size, such {{param [attr_name=Размер]}} . As you already probably have guessed, syntax following:

{{ИМЯ_tags [attr_ИМЯ_АТРИБУТА=ЗНАЧЕНИЕ_АТРИБУТА]}} 

If we need to receive value tags depending on what value at it (I understand that sounds silly, but also such it is necessary happens), then a record format following:

{{ИМЯ_tags [value=ЗНАЧЕНИЕ_ТЕГА]}} 

These designs can be used and on the others tabх windows, the only thing that necessity for double figured handles is not present. To set such value, it is necessary to cause the contextual menu and to choose point «to Set тег manually»




Articles (add.)


Profiles of import XML (tab «Article (add.)»)

Profiles of import XML (tab «Article (add.)»)

Here the table in which are set an accessory defined

тегов to article fields is presented. It consists of 2 basic columns:
Parameter — a field in which value tags will be brought. The list of accessible parametres:

  • the Category (identifier)
  • the Category (name)
  • Labels
  • the Label (a repeated field)
  • Date (виндовс a format)
  • Date (юникс a format)
  • Dop. A field (name)
  • Dop. A field (value)
  • the Sign of static page
  • alt_name
  • description
  • keywords
  • Any value — if to enter in this field the value then Zebroid contained tags of a file will add in доп. The field, which name will be this value
  • Tag — a name tags from which value will undertake.

  • Categories

    Profiles of import XML (tab «Category»)

    Profiles of import XML (tab «Category»)

    It is necessary to fill this bookmark, if in a file the structure of categories (so for example in WordPress XML) is separately described. Anything new on this tab is not present, unless the list of parametres for categories differs a little:
    • the Name
    • the Identifier
    • Alt_name
    • the Parent (name)
    • the Parent (identifier)
    the Parent (identifier) — this field on which it is possible to define a parental category, for example in such file:
    <category id = "1082707" parentid = "5735"> Bio-energetics </category> 
    The parametre parentid — is the identifier of a parental category but that there was a possibility of its (parent) to identify, parametre the Identifier as should be correctly filled.

    Comments

    Profiles of import XML (tab «Comments»)

    Profiles of import XML (tab « Comments »)

    Similarly previous tab it is necessary for you to choose repeating тег and to fill the list with steams of parametres and тегов with values.