Closed opcfoundation-org closed 2 years ago
UANodeSet.Write(Stream istrm) writes a NodeSet to disk without line breaks.
No response
- OS: - Environment: - Runtime: - Nuget Version: - Component: - Server: - Client:
Fix:
public void Write(Stream istrm) { XmlWriterSettings settings = new XmlWriterSettings() { Indent = true, Encoding = Encoding.UTF8, IndentChars = " " }; var writer = XmlWriter.Create(istrm, settings); try { XmlSerializer serializer = new XmlSerializer(typeof(UANodeSet)); serializer.Serialize(writer, this, null); } finally { writer.Flush(); writer.Dispose(); } }
See https://github.com/dotnet/runtime/issues/64885
Hi @opcfoundation-org, just in time for march roll up... thanks for the info!
Type of issue
Current Behavior
UANodeSet.Write(Stream istrm) writes a NodeSet to disk without line breaks.
Expected Behavior
No response
Steps To Reproduce
No response
Environment
Anything else?
Fix:
See https://github.com/dotnet/runtime/issues/64885