Closed immesys closed 5 years ago
Line 1475 of SubscriberConnection.cpp
calls the function which creates the XML:
metadata->WriteXml(serializationBuffer);
The function being called defines a default parameter for the schema name:
void WriteXml(std::vector<uint8_t>& buffer, const std::string& dataSetName = "DataSet") const;
To control this, we would need to add a property to DataPublisher
to set the desired value - however, this makes it even more likely that a user would change this just because they could. My first suggestion would be to have to the external program not depend on the schema name.
Thanks, Ritchie
Ok, I can alter the external program, assuming the actual schema is the same and only the name is the difference
I'm using code based on TimeSeriesPlatformLibrary/Samples/AdvancedPublish.cpp which constructs the metadata in the code rather than using an external XML file. When I subscribe I am getting an XML document that looks like this:
Rather than the metadata I expect and get from OpenPDC which looks like this:
Notice
DataSet
vsNewDataSet
. How can I alter the AdvancedPublish example to generate metadata following the NewDataSet schema? I have an external program which is expecting aNewDataSet