Skip to main content
Question

Writing ampersand to KML

  • September 5, 2022
  • 2 replies
  • 10 views

bradr
Contributor
Forum|alt.badge.img+8
  • Contributor

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+50

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+8
  • Author
  • Contributor
  • September 12, 2022

Thanks Hans,

I found this exception here

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

Only for <, >, &, " and '


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings