You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//<Snippet2> is referenced by a documentation page for XmlDocument (see below for URLs). When the code copied from the documentation is pasted into a Windows Forms app and the namespaces added, the code does not compile. The compilation error is caused because one method is missing, generateXMLString. There is a copy button on documentation page which copies <Snippet2>. I moved generateXMLString from the top of xmlhelpermethods.cs where it is not used into //<Snippet2> so it will be included in the example code for the XmlDocument class.
//<Snippet2> is referenced by
https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmldocument?view=net-6.0https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Xml/XmlDocument.xml
Here is where snippet 2 is referenced
[!code-csharp[XMLProcessingApp#2](~/snippets/csharp/System.Xml/XmlDocument/Overview/xmlhelpermethods.cs#2)]
0 commit comments