On 5/20/06 3:14 PM, "Craig A. Finseth" <[EMAIL PROTECTED]> wrote:

> By hitting my head against the wall many times, I've been able to
> figure out how to load an XML document from a file.
> 
> I'm now stuck trying to create and save one.  I couldn't find anything
> on "how to create XML documents" on the RS site.  Does anyone know
> where there is a tutorial or example that I can take a look at?
> 
> RB 5.5.5.
> 
> Craig

There is a very basic example in the language reference. Its the first
example on the "XMLDocument" page:

Dim xml as XmlDocument
Dim root, person, firstname, lastname as XMLNode
  
xml = New XmlDocument
root = xml.AppendChild(xml.CreateElement("root"))
person = root.AppendChild(xml.CreateElement("person"))
firstname = person.AppendChild(xml.CreateElement("firstname"))
firstname.AppendChild(xml.CreateTextNode("John"))
lastname = person.AppendChild(xml.CreateElement("lastname"))
lastname.AppendChild(xml.CreateTextNode("Doe"))
//create_output is a muti-line EditField
create_output.text = xml.ToString

-Seth
--
<http://realopen.org>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to