Back to Serial Studio

XML Data

app/rcc/scripts/native/xml_data.md

4.0.1746 B
Original Source

XML Data

Extracts the text content of simple XML elements into a fixed channel order. Values latch between frames.

Wire Format

xml
<data><temperature>25.5</temperature><humidity>60</humidity></data>

Parameters

ParameterTypeDefaultDescription
Tags (in channel order)texttemperature,humidity,pressure,voltage,current,altitude,speedComma-separated tag names. The position of each tag sets its channel index.

Output Channels

One channel per configured tag. The first <tag>value</tag> occurrence in the frame is used; values are trimmed. Tags with attributes or self-closing tags are not matched.

Pipeline Notes

Works with the Plain Text decoder.