Dashboards & Visualizations

xml use Comparison "<"

crazyeva
Contributor


xxx afield<$value$
....
then i get:
"StartTag: invalid element name" with an unexpected "<"
How could i fix this?

Tags (2)
0 Karma
1 Solution

ShaneNewman
Motivator

The way to reference the less than sign inside of XML is & l t ; without the spaces between.

View solution in original post

0 Karma

ShaneNewman
Motivator

The way to reference the less than sign inside of XML is & l t ; without the spaces between.

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

You also have the option to wrap it in a CDATA tag:

<![CDATA[xxx afield<$value$]]>

ShaneNewman
Motivator

= is not a special charactor, so & l t ;= should work.

0 Karma

ShaneNewman
Motivator

& l t ; < less than
& g t ; > greater than
& a m p ; & ampersand
& a po s ; ' apostrophe
& q u o t ; " quotation mark

0 Karma

crazyeva
Contributor

how about "<=" ">=" "ge" "le" return error

0 Karma

crazyeva
Contributor

thanks then gt ge le?

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...