tmf: bug 494698 Add per-event fields to custom parsers
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core.tests / testfiles / xml / testDefinition.xml
index f2ac3a6e537ccf7e7fc83a1735ae0502973a8210..2ecd6968c986829461a65f53c0fbc4eb22d92556 100644 (file)
@@ -1,29 +1,72 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <CustomXMLTraceDefinitionList>
 <Definition name="myxml">
-<TimeStampOutputFormat>HH:mm:ss:SSS</TimeStampOutputFormat>
+<TimeStampOutputFormat>Tn</TimeStampOutputFormat>
 <InputElement name="trace">
 <InputElement logentry="true" name="element">
-<InputData action="0" format="" name="Message"/>
+<InputData action="0" name="Message" tag="MESSAGE"/>
 <Attribute name="time">
-<InputData action="0" format="dd/MM/yyyy HH:mm:ss:SSS" name="Time Stamp"/>
+<InputData action="0" format="dd/MM/yyyy HH:mm:ss:SSS" name="Timestamp" tag="TIMESTAMP"/>
 </Attribute>
 </InputElement>
 </InputElement>
-<OutputColumn name="Time Stamp"/>
-<OutputColumn name="Message"/>
+<OutputColumn name="Timestamp" tag="TIMESTAMP"/>
+<OutputColumn name="Message" tag="MESSAGE"/>
 </Definition>
 <Definition name="xmlevname">
-<TimeStampOutputFormat>HH:mm:ss:SSS</TimeStampOutputFormat>
 <InputElement name="trace">
-<InputElement logentry="true" name="element">
-<InputData action="0" format="" name="Event type"/>
+<InputElement eventtype="DefaultName" logentry="true" name="element">
+<InputData action="0" name="Ignore" tag="IGNORE"/>
 <Attribute name="time">
-<InputData action="0" format="Tn" name="Time Stamp"/>
+<InputData action="0" format="Tn" name="Timestamp" tag="TIMESTAMP"/>
+</Attribute>
+<Attribute name="type">
+<InputData action="0" name="Event type" tag="EVENT_TYPE"/>
+</Attribute>
+<InputElement name="type">
+<InputData action="0" name="Event type" tag="EVENT_TYPE"/>
+</InputElement>
+</InputElement>
+</InputElement>
+<OutputColumn name="Timestamp" tag="TIMESTAMP"/>
+<OutputColumn name="Event type" tag="EVENT_TYPE"/>
+</Definition>
+<Definition category="Custom XML" name="xmleventfields">
+<TimeStampOutputFormat>Tn</TimeStampOutputFormat>
+<InputElement name="trace">
+<InputElement logentry="true" name="event">
+<InputData action="0" name="Ignore" tag="IGNORE"/>
+<Attribute name="name">
+<InputData action="0" name="Message" tag="MESSAGE"/>
 </Attribute>
+<Attribute name="timestamp">
+<InputData action="0" format="Tn" name="Timestamp" tag="TIMESTAMP"/>
+</Attribute>
+<InputElement name="field">
+<InputData action="0" name="Ignore" tag="IGNORE"/>
+<Attribute name="name">
+<InputData action="2" name="Extra field name" tag="EXTRA_FIELD_NAME"/>
+</Attribute>
+<Attribute name="value">
+<InputData action="2" name="Extra field value" tag="EXTRA_FIELD_VALUE"/>
+</Attribute>
+</InputElement>
+<InputElement name="fieldName">
+<InputData action="0" name="Ignore" tag="IGNORE"/>
+<Attribute name="value">
+<InputData action="0" name="Extra field name" tag="EXTRA_FIELD_NAME"/>
+</Attribute>
+</InputElement>
+<InputElement name="fieldValue">
+<InputData action="0" name="Ignore" tag="IGNORE"/>
+<Attribute name="value">
+<InputData action="0" name="Extra field value" tag="EXTRA_FIELD_VALUE"/>
+</Attribute>
+</InputElement>
 </InputElement>
 </InputElement>
-<OutputColumn name="Time Stamp"/>
-<OutputColumn name="Event type"/>
+<OutputColumn name="Message" tag="MESSAGE"/>
+<OutputColumn name="Timestamp" tag="TIMESTAMP"/>
+<OutputColumn name="Extra fields" tag="EXTRA_FIELDS"/>
 </Definition>
 </CustomXMLTraceDefinitionList>
This page took 0.02585 seconds and 5 git commands to generate.