Remove head and tail for xml

I am trying to break one xml file into multiple event.
I use <PMSetup as pattern to splite
pattern => "<PMSetup"
How can I remove the beginning 2 lines (<?xml version="1.0"?>) and the last line?

or, how can I use multiple to splite message between <PMSetup and

<?xml version="1.0"?> ...............................................................

What does the data look like?

<?xml version="1.0"?>

2019-02-22_170353

I find discuss always remove my xml post :grin:
thanks

It is interpreting the XML as HTML. You can either precede and follow the XML with lines containing three backticks (```) or else in the edit pane, select the XML and then click on </> in the toolbar above the pane, which will blockquote it.

Are you consuming the entire file as a single event?

I think splite by PMSetup is better, because each PMSetup would have 1000+ field

I choose to use python to phase and fixed this issue. thanks for helping

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.