how do I correctly paste multi-line xml snippet to github wiki when using markdown

not 100% sure if this is the same thing or not, but I just setup some xml snippets in my readme.md and used the

<myxml>
   <someElement />  
</myxml>

notation.


Replace all the less-than < and greater-than > symbols with &lt; and &gt; respectively, then wrap in <pre> and <code> as before.


An old question, however, the solution has changed in the interim. Simply use the ```xml tag on modern mark-down implementations.

```xml
<your XML here>
.```

Example:

<one>
  <two>
  </two>
</one>

It's that simple and it works far better than embedding the XML as described above.