---
title: "Discussion on \"List<string> to XML\" | Hashnode"
description: "Discussion on \"List<string> to XML\". // Example 1\nList<string> items = new List<String>();\nitems.Add(\"sample1\");\nitems.Add(\"sample2\");\nstring str = \"<no>\" + String.Join(\"</no><no>\", items) + \"</no>\";\n\n// Example 2\nList<string> countries = dc.SupplierCountries.Select(p=>p.CountryName).To..."
url: "https://hashnode.com/posts/liststring-to-xml/6437999db36e88f908e19b3f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [List<string> to XML](https://karatas.dev/liststring-to-xml?utm_source=hashnode&utm_medium=feed)

// Example 1 List<string> items = new List<String>(); items.Add("sample1"); items.Add("sample2"); string str = "<no>" + String.Join("</no><no>", items) + "</no>"; // Example 2 List<string> countries = dc.SupplierCountries.Select(p=>p.CountryName).To...

Apr 13, 2023 · 1 min read · karatas.dev  
Read the article

-   [#xml](https://hashnode.com/tag/xml)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Ferhat Karataş](https://hashnode.com/@karatas)

@karatas · Turkey

  
[View profile](https://hashnode.com/@karatas)

Software Developer

Performance freak

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
