Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > XML Dialog Boxes


Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old March 29th, 2018, 03:58 AM
macfan55 macfan55 is offline
Junior Community Member
Join Date: Apr 2011
Location: Netherlands - Emmen
Posts: 37
Unhappy error in xml file: Expected an attribute value...

Hi everyone;
I am trying to build my first xml rule to be used in FusionPro as a rule for every new job to choose. But I got stuck on the following error code:
Fatal error: Expected an attribute value; line 2, column 21

I hereby past te xml-code in this thread:

<?xml version="1.0" encoding="UTF-16" ?>
<template_rule name=“Postcode spatie” version="1.0" type="text" taggedtext="false">
<Comment language="en-US">Deze rule plaatst een spate in de postcode waar die ontbreekt.</Comment>
<Description language="en-US">Please select the appropriate values.</Description>
<Description language="de">Wählen Sie die entsprechenden Werte.</Description>
<Description language="fr">Veuillez sélectionner les valeurs appropriées.</Description>
<Description language="es">Seleccione los valores que correspondan.</Description>
<Description language="it">Selezionare i valori appropriati.</Description>
<Description language="zh-CN">请选择相应的值。</Description>
<Description language="zh-TW">請選取適當的值。</Description>
<Description language="ja">該当する値を選択してください。</Description>
<field type="FIELDLIST" required="true">
<prompt language="en-US">Kies het Postcode veld.</prompt>
<prompt language="de">Wählen Sie ein Feld für die Konvertierung in die richtige Buchstabengröße aus.</prompt>
<prompt language="fr">Choisissez un champ pour la conversion dans la casse appropriée.</prompt>
<prompt language="es">Elija un campo para convertir al estilo de mayúsculas y minúsculas deseado.</prompt>
<prompt language="it">Scegliere un campo per la conversione di maiuscole/minuscole.</prompt>
<prompt language="zh-CN">选择用于转换为适当大小写的字段。</prompt>
<prompt language="zh-TW">選擇要轉換成適當大小寫的欄位。</prompt>
<prompt language="ja">該当する大文字/小文字に変換するフィールドを選択します。</prompt>


if (Len(Trim(Field(Var1))) == 6)
x = Left(Field(Var1), 4);
y = Right(Field(Var1), 2);
return x + " " + y;
else if (Len(Trim(Field(Var1))) == 2)
return FormatNumber("00000", Field(Var1));

return Field(Var1);

Reply With Quote

xml template rule

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 04:44 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.