Devam Ediyor

507949 tweak on project you did many months ago.

This works well except for a slight glitch. The xml file contains many field tags such as: <field name="mailingAddressState" value="Maine" />. The value attribute contains the customer supplied data from the form. The glitch occurs whenever the customer types either a & or " character (ampersand or double quote characters) in a text field. When those characters are put in the value attribute string, the resulting xml file is not valid. (Xml does not allow bare ampersands or double quote characters inside attribute strings.) The xml file being invalid causes my XLST processor to quit with an error. What I have been doing at that point is to edit the xml file by hand and then restarting the XSLT processor. Now that I am automating even more of the process, it would be very nice to eliminate this editing by hand step. So ...

Step 3) Can you change the code that generates the xml file from the form data so that:

a) All ampersands in the value attributes are replaced with the escape sequence &

b) All double quotes in the value attributes are replaced with the escape sequence "

Beceriler: Her şey Kabul, Düzenleme, XML

Daha fazlasını görün: xslt xml, escape, did, data editing text file, automating, invalid character error, customer name error, attributes amp, xslt xml project, xslt file, project quotes, valid xml, value double, attribute code change, tweak project, project character, data editing project, project data xml file, xslt code, xlst, project xslt, project quote valid, form value string, xml editing, step quote

İşveren Hakkında:
( 57 değerlendirme ) Winslow, United States

Proje NO: #2253876

Seçilen:

rajeshsonisl

Quick one. Take it NOW! Thanks.

0 gün içinde 15$ USD
(542 Değerlendirme)
7.2