To solve my problem, I read XML Data from a stream:
Where the code is:
'xmldata.xml is stored in the bin/Debug directory docNav = New XPathDocument("xmldata.xml")
Change it to this:
Dim stream As System.IO.StringReader stream = New StringReader(My.Resources.xmldata) docNav = New XPathDocument(stream)