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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...