High Performance OPC UA Server SDK  1.2.0.193
xml_string Struct Reference

Minimalistic string class for referencing strings in the XML document. More...

#include <xml_string.h>

Data Fields

const char * ptr
 
size_t len
 

Detailed Description

Minimalistic string class for referencing strings in the XML document.

This parser is a non-extractive parser, so we don't copy strings. This also means that these strings are NOT zero terminated. For creating zero terminated strings you can use ua_string:

struct xml_string *xml = xml_node_name(n);
struct ua_string string;
ua_string_setn(&string, xml_string_data(xml), xml_string_length(xml));

The documentation for this struct was generated from the following file: