AnsweredAssumed Answered

GetAsSVG does not produce valid XML let alone valid SVG

Question asked by disabled_mrw-old-account-do-not-use on Dec 29, 2013
Latest reply on Jan 9, 2014 by TSGal

Summary

GetAsSVG does not produce valid XML let alone valid SVG

Product

FileMaker Pro

Version

all

Operating system version

all

Description of the issue

In the TEXT that GetAsSVG( Text ) returns the Style elements have illegal '#' characters in them, so that the start and end tags do not match ( )

Steps to reproduce the problem

1. create a field "TextField"
2. input formatted text into field 'TextField'
3. create a calculated field that returns GetAsSVG( TextField )
4. look at the returned result

Expected result

legal XML

Actual result







Export Field Contents was written by
Todd Duell
.

Exact text of any error message(s) that appear

Error from TextMate XML Tidy command:
Errors:
-:3: parser error : error parsing attribute name
-:3: parser error : attributes construct error
-:3: Couldn't find end of Start Tag Style line 3

      ^
-:3: parser error : Opening and ending Tag mismatch : Stylelist line 2 and Style ...

Configuration information

-

Workaround

use text functions to change the text into real xml

Outcomes