Skip to main content
Question

Writing ampersand to KML

  • September 5, 2022
  • 2 replies
  • 21 views

bradr
Contributor
Forum|alt.badge.img+9

When writing a KML-file all characters with '&' are written as '& '

This also happens with '<' and '>' which will be exported as '&lt;' and '&gt;'

 

This is the result

<SimpleData name="sign">Electrical &amp; hydrogene</SimpleData>

But i need

<SimpleData name="sign">Electrical & hydrogene</SimpleData>

Is that possible?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

Not within the KML file itself as those are special characters (so they're HTML encoded). However, Google Earth should render that properly.


bradr
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • September 12, 2022

Thanks Hans,

I found this exception here

https://www.w3.org/standards/xml/core

Only for <, >, &, " and '