XML - Escaping Characters

I’ve a form with rendered as html where i place all my fields surrounded with xml tags.

The fields are computed for display and default formula is @ReplaceSubstring(@ReplaceSubstring(@ReplaceSubstring(@ReplaceSubString(@ReplaceSubString(Tag1;

“&”; “&”); “<”; “<”); “>”; “>”); “"”;“"”); “'”;

“'”)

I use an url to sent this form together with a stylesheet (page) to a servlet that creates a pdf file from the document. The problem is that when one of the fields contains a char like ë, ö, é the servlet crash on the welformness of the xml file.

Question ! How can i create above mentioned notes form that will contains only these characters that are allowed in an xml file ?

Must i make use of a DTD file ? Please an example ?

Subject: XML - Escaping Characters

Two things:

  1. You do realise that @ReplaceSubString works with lists e.g.

@Replacesubstring(Tag1;“&”:“<”:“>”;“&”:“<”:“>”) etc.

  1. Is there a possibility of using a more friendly codepage that contains these characters i.e. at the top of your form:
<?xml version="1.0" encoding="ISO-8859-1"?>

If changing the encoding isn’t an option, then would @ASCII get you most of the way there?

HTH - Rufus.

Subject: RE: XML - Escaping Characters

  1. Yep, i know the syntax of @replacesubstring

  2. great thanks, finally a solution. Give that man a pint.

regards