Hello All,

I am just getting into vb.net and XML, a daunting task.

I am creating an XML file from a recordset, but need to include references to XML schemas at the very beginning of the XML file.......how do I do that.

I used the following as a test, but need to include the references to the schemas somehow.

VB Code:
  1. mywriter = New System.Xml.XmlTextWriter(Server.MapPath("myfoo666.xml"), System.Text.Encoding.UTF8)
  2. With mywriter
  3. 'NEED SOMETHING IN HERE TO REFERENCE THE SCHEMA(.XSD) FILES...?????.....
  4. .WriteStartElement("MyBooks")
  5.             .WriteStartElement("Book")
  6.             .WriteAttributeString("ISBN", "1861005652")
  7.             .WriteAttributeString("Title", "How to make XML Work")
  8.             .WriteElementString("Author", "A. N. Other")
  9.             .WriteEndElement() 'For Book
  10.             .WriteEndElement()
  11. End With
  12.         mywriter.Flush()
  13.         mywriter.Close()

Please, has anyone any ideas, I am struggling a bit.

Many Thanks,

Al...