How to Use the <, >, &, ", ' Symbols in BTXML <TextData>
I found the
How to Use the <, >, &, ", ' Symbols in BTXML
description but it is not working with my BTXML <TextData> tag
<?xml version='1.0' encoding='utf-8'?><XMLScript Version='2.0'><Command Name='SMT-NEU_04_2008.btw20240813113204'><Print ReturnPrintData='true'><Format>lib://\NEU_04_2008.btw</Format><PrintSetup><Printer>1036</Printer><NumberSerializedLabels>1</NumberSerializedLabels><IdenticalCopiesOfLabel>1</IdenticalCopiesOfLabel></PrintSetup><RecordSet Name='textData' Type='btTextFile' AddIfNone='true'><Delimitation>btDelimQuoteAndComma</Delimitation><UseFieldNamesFromFirstRecord>true</UseFieldNamesFromFirstRecord><TextData><![CDATA["V01","V02","V03","V04","V05","V06","V07","V08","V29","V30",
"","123123","000001","0000","MURAT10124","C-KER 10% X8R 100n 50V 0603/G8","","000001","33","24"
]]></TextData></RecordSet></Print></Command></XMLScript>
For example if you want to print the text "C-KER 10% X8R 100n 50V 0603/G8" with 10% in quots: "C-KER "10%" X8R 100n 50V 0603/G8".
You have to write it this way:
"C-KER ""10%"" X8R 100n 50V 0603/G8"
with double quotes.
I've tried it with "10%" because I found the post
How to Use the <, >, &, ", ' Symbols in BTXML
https://support.seagullscientific.com/hc/en-us/articles/360025685574-How-to-Use-the-Symbols-in-BTXML
or \"10%\" (C# escape) but it does not work.
The issue I had, was that a college changed the description text in SAP for a component, he added quotes, and then the labe came out mangled.
Kind Regards
Simon
-
Peter Thane
★ BarTender Hero ★
The %quot; works for me in a test XML I have been using for a project
<NomCurrent>"C-KER "10%" X8R 100n 50V 0603/G8"</NomCurrent>
0 -
Simon Rothwangl
★ BarTender Hero ★
Hi did you add the <NomCurrent> tag to your <TextData> tag?
Can you edit my example?
<TextData><![CDATA["V01","V02","V03","V04","V05","V06","V07","V08","V29","V30",
"","123123","000001","0000","MURAT10124","C-KER 10% X8R 100n 50V 0603/G8","","000001","33","24"
]]></TextData>V01-V30 are "Named Data Sources" in the BarTender file.
Best Regards, Simon
0 -
Peter Thane
★ BarTender Hero ★
NomCurrent is not a named field in my label but the field that prints this is linked to the NomCurrent "database" field
0
Iniciar sesión para dejar un comentario.
Comentarios
3 comentarios