Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stan on May 14, 2007 20:59
open dhtmlx forum
Handling ampersand chacrater in data XML

Hi!

Is there a way to load data with ampersand charcater in it.
We have clinets with ampersand as part of the client name field.
The grid.loadXML("file.XML") method failes with the following message:

Error type: LoadXML
Description: Incorrect XML

When ampersand is removed the file loads fine.

If this character needs to be escaped what is the correct escape syntax?

Thank you!

Stan.
Answer posted on May 15, 2007 10:29
The XML which you load must have valid syntax.
By XML rules the & char is depricated, it must be replaced with

& => &

Also please beware that HTML based column types ( all except rotxt and edtxt ) will threat ampersand by HTML rules, so you may need to do double escaping

& =>&
Answer posted by Darya (Support) on Dec 08, 2014 23:03

Not much can be said in addition to the reply above, but you also can check dhtml xgrid and dhtml components and find out what we have probably missed in our explanation.