How to get IFragmentCapableXmlDictionaryWriter example to work?

Nicholas Piazza 531 Reputation points
2023-01-13T23:12:31.12+00:00

I've tried getting the example shown for System.Xml.IFragmentCapableXmlDictionaryWriter as shown in link [https://learn.microsoft.com/en-us/dotnet/api/system.xml.ifragmentcapablexmldictionarywriter.writefragment?view=net-7.0#examples

but the fragmentWriter always comes up null, causing the output: "This writer doesn't support fragments". How can I get this example to work?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more