Write file in xml-format

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ReidarT

    #1

    Write file in xml-format

    I have a webform where I am sending emails with attachments.
    The attachments are formfields.text and the file is saved as an xml-file.
    The problem is when I am opening the xml-file I get the "" from the code in
    the file
    Here is my code:

    FileOpen(1, "C:\vb\WebBrows er\WebBrowserCo ntrol\TESTFILE. XML",
    OpenMode.Output )

    WriteLine(1, "<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>")

    WriteLine(1, "<XMLForsendels e>")

    WriteLine(1, "<PasientFornav n>" & txtFornavn.Text & "</PasientFornavn> ")

    WriteLine(1, "<PasientEttern avn>" & txtEtternavn.Te xt &
    "</PasientEtternav n>")

    WriteLine(1, "</XMLForsendelse> ")

    FileClose(1)



    regards

    reidarT


  • Armin Zingler

    #2
    Re: Write file in xml-format

    "ReidarT" <reidar@eivon.n o> schrieb[color=blue]
    >I have a webform where I am sending emails with attachments.
    > The attachments are formfields.text and the file is saved as an
    > xml-file. The problem is when I am opening the xml-file I get the ""
    > from the code in the file
    > Here is my code:
    >
    > [...][/color]


    Have a look at the XML documentation and on how to write an XML file.

    for example.
    http://msdn.microsoft.com/library/en...hxmlwriter.asp

    Armin

    Comment

    Working...