I have this handler to translate some special XML characters:

FUNCTION getXMLFixed p
    replace "&" WITH "&" in p
    replace "&lt;" WITH "<" in p
    replace "&gt;" WITH ">" in p
    replace "&apos;" WITH "'" in p
    replace "&quot;&" WITH quote in p
    replace "&#xA9;" WITH "©" in p
    replace "&#x2117;" WITH "®" in p
    replace "&#x2122;" WITH "™" in p
    replace "&#226;" WITH "a" in p
    replace "(C)" WITH "©" in p
    return p
END getXMLFixed


On Apr 18, 2008, at 1:42 PM, jbv wrote:

Hi list,

How do you guys handle the "&" character in xml ?
Actually I need to pass html links as node values in xml (from a rev cgi

script to the browser) and those links contain "&"...
I managed to solve the problem with "&" inside names (smith & weston)
but as for html links, no luck... it just scares the parser...

Thanks,
JB

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to