Special Chars In Xml Datasource S’abonner
I'm developing a software that produces an XML used by BarTender as datasource.
I did some unlucky tests to find out how to write special characters in field values.
As for HTML i've always used html entities, but it seems that BarTender doesn't understand them.
I need to pass symbols like ">", "<", and also accented vowes but, for accented vowes there is not problem using UTF-8 charset, for the grater than and less than symbols i need a solution, otherwise XML structure will be invalid.
My XML is something like this (here i paste only one variable):
[code]<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels _FORMAT="C:\BarTender\test.btw" _JOBNAME="test1" _QUANTITY="1" _PRINTERNAME="Datamax I-4206_1">
Value for "EFFICIENCY" variable in some cases contains ">" and/or "<". Then i tryed the following syntax (html entities):
But BarTender prints exactly the entity (i.e. ">" is not [i]converted[/i] in > but is printed as is).
Also with the entity number nothing changes:
[code]<variable name="EFFICIENCY">&# 49;80</variable>[/code]
[b]***[/b] Posting the code above I had to add a space between &# and 49; because otherwise the forum converts it with the greater than symbol. The test was done without the space!
Is there a way to resolve this problem maintaining the XML datasource?
I don't know other ways to pass html entities, here is the document i used as reference: http:// www.w3schools.com/tags/ref_entities.asp
Thanks in advance and sorry if my english is not the best.
Vous devez vous connecter pour laisser un commentaire.