title: How to create xmlns:xsi and xsd information in an XML document
body: <p>I have a Delphi XE application that reads a validated XML file, modifies it and then saves it.  The saved version can be validated.  I use SML Spy to create the file and to validate it.</p>
  
  <p>Now I need to create a document in memory and save it. The problem is that I cannot figure out how to generate the xmlns and xsd information attributes to the document so that it can be validated.</p>