vondip
vondip

Reputation: 14029

linqtoxml - insert string literal into xml file

I am using LINQ-to-XML. I am building a small program that helps parse HTML. I'd like to save the HTML tags into an XML file, but I don't want the XML file to check the validity of the entered HTML elements.

How can I just entere a simple string literal (a pretty long one)?

Upvotes: 0

Views: 393

Answers (1)

Anders Zommarin
Anders Zommarin

Reputation: 7274

Maybe using a CDATA construct could help you out, see w3schools.com

Upvotes: 1

Related Questions