Hi, i was trying too, but i had very much problem...what do i do?... to use serialization (looking for serialization in google and MSDN) ... this was the only way...

The following is the header that I used to get the attribute you mention (Visual Basic 2005):
vb.net Code:
  1. <System.Xml.Serialization.XmlAttribute("schemaLocation", [Namespace]:="http://www.w3.org/2001/XMLSchema-instance")> _
  2.     Public SchemaLocation As String = "http://www.example.gob.mx/ http://www.example.gob.mx/sitio_internet/cxxx2.xsd"
Check this links with other answers...

http://bytes.com/forum/thread539595.html
http://forums.microsoft.com/msdn/Sho...14893&SiteID=1

Saludos desde México

Freebyte