Save Xml

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

    Save Xml

    how can i save xml.

    if i have an xml file on a server, lets say a dvd collection. and i have a
    form that gets information for a new dvd and i append this dvd to the dom.
    This i can do no problem so far using javascript the only thing that i can
    not do is save the changes this is easy in vb.net and c# but seeing as i
    have to work with the server its a whole new world. I dont want to have to
    use asp or anything that requiers expensive software and or ides. If it can
    be done with jscript this would be great. or does this sort of thing depend
    on the server itself?

    Thanks for the help please feel free to email me with any thoughts and or
    suggestions @ papastoreyii@sb cglobal.net

    WStoreyII


  • Lāʻie Techie

    #2
    Re: Save Xml

    On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
    [color=blue]
    > how can i save xml.
    >
    > if i have an xml file on a server, lets say a dvd collection. and i have a
    > form that gets information for a new dvd and i append this dvd to the dom.
    > This i can do no problem so far using javascript the only thing that i can
    > not do is save the changes this is easy in vb.net and c# but seeing as i
    > have to work with the server its a whole new world. I dont want to have
    > to use asp or anything that requiers expensive software and or ides. If
    > it can be done with jscript this would be great. or does this sort of
    > thing depend on the server itself?
    >
    > Thanks for the help please feel free to email me with any thoughts and or
    > suggestions @ papastoreyii@sb cglobal.net
    >
    > WStoreyII[/color]

    You do understand that JavaScript runs on the client? If you want the
    changes to be permanent, they must be stored on the server. PHP, Perl,
    and Java (either as Servlets or JSP) are all free. Check your host to see
    which of these technologies they allow.

    HTH,
    La'ie Techie

    Comment

    • WStoreyII

      #3
      Re: Save Xml

      Yes,
      i do know that it is a client side and that is why i was tyring to figure
      out how i do save it the problem is that i dont right now have a server and
      would like to figure out how to do it so that i can decide which technology
      i am comfortable with and find a server that will use it?

      WStoreyII
      Thanks again

      "La?ie Techie" <laie@win_remov e_get_nospam_so lutions.com> wrote in message
      news:31925baede c14b646de8e86f8 e9c1671@news.te ranews.com...[color=blue]
      > On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
      >[color=green]
      > > how can i save xml.
      > >
      > > if i have an xml file on a server, lets say a dvd collection. and i have[/color][/color]
      a[color=blue][color=green]
      > > form that gets information for a new dvd and i append this dvd to the[/color][/color]
      dom.[color=blue][color=green]
      > > This i can do no problem so far using javascript the only thing that i[/color][/color]
      can[color=blue][color=green]
      > > not do is save the changes this is easy in vb.net and c# but seeing as i
      > > have to work with the server its a whole new world. I dont want to have
      > > to use asp or anything that requiers expensive software and or ides. If
      > > it can be done with jscript this would be great. or does this sort of
      > > thing depend on the server itself?
      > >
      > > Thanks for the help please feel free to email me with any thoughts and[/color][/color]
      or[color=blue][color=green]
      > > suggestions @ papastoreyii@sb cglobal.net
      > >
      > > WStoreyII[/color]
      >
      > You do understand that JavaScript runs on the client? If you want the
      > changes to be permanent, they must be stored on the server. PHP, Perl,
      > and Java (either as Servlets or JSP) are all free. Check your host to see
      > which of these technologies they allow.
      >
      > HTH,
      > La'ie Techie
      >[/color]


      Comment

      • Evertjan.

        #4
        Re: Save Xml

        =?UTF-8?b?TMSByrtpZSB UZWNoaWU=?= wrote on 27 jun 2004 in
        comp.lang.javas cript:[color=blue]
        > On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
        >[color=green]
        >> how can i save xml.
        >> if i have an xml file on a server, lets say a dvd collection. and i
        >> have a form that gets information for a new dvd and i append this dvd
        >> to the dom. This i can do no problem so far using javascript the only
        >> thing that i can not do is save the changes this is easy in vb.net
        >> and c# but seeing as i have to work with the server its a whole new
        >> world. I dont want to have to use asp or anything that requiers
        >> expensive software and or ides. If it can be done with jscript this
        >> would be great. or does this sort of thing depend on the server
        >> itself?
        >>
        >> Thanks for the help please feel free to email me with any thoughts
        >> and or suggestions @ papastoreyii@sb cglobal.net[/color]
        >
        > You do understand that JavaScript runs on the client? If you want the
        > changes to be permanent, they must be stored on the server. PHP,
        > Perl, and Java (either as Servlets or JSP) are all free. Check your
        > host to see which of these technologies they allow.[/color]

        What about serverside javascript on an ASP platdorm, "free" if it is
        includes in your host package.


        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • WStoreyII

          #5
          Re: Save Xml


          "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
          news:Xns95156B7 5C1A04eejj99@19 4.109.133.29...[color=blue]
          > =?UTF-8?b?TMSByrtpZSB UZWNoaWU=?= wrote on 27 jun 2004 in
          > comp.lang.javas cript:[color=green]
          > > On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
          > >[color=darkred]
          > >> how can i save xml.
          > >> if i have an xml file on a server, lets say a dvd collection. and i
          > >> have a form that gets information for a new dvd and i append this dvd
          > >> to the dom. This i can do no problem so far using javascript the only
          > >> thing that i can not do is save the changes this is easy in vb.net
          > >> and c# but seeing as i have to work with the server its a whole new
          > >> world. I dont want to have to use asp or anything that requiers
          > >> expensive software and or ides. If it can be done with jscript this
          > >> would be great. or does this sort of thing depend on the server
          > >> itself?
          > >>
          > >> Thanks for the help please feel free to email me with any thoughts
          > >> and or suggestions @ papastoreyii@sb cglobal.net[/color]
          > >
          > > You do understand that JavaScript runs on the client? If you want the
          > > changes to be permanent, they must be stored on the server. PHP,
          > > Perl, and Java (either as Servlets or JSP) are all free. Check your
          > > host to see which of these technologies they allow.[/color]
          >
          > What about serverside javascript on an ASP platdorm, "free" if it is
          > includes in your host package.
          >[/color]
          i guess it does not really matter how i do it most of the webpage i think
          that i can do on my side with the javascript and html the only thing i cant
          figure out how to do is to save the xml so how is this done? despite what
          media i end up using i still do not know how to do it .
          thanks again
          WStorey[color=blue]
          >
          > --
          > Evertjan.
          > The Netherlands.
          > (Please change the x'es to dots in my emailaddress)
          >[/color]


          Comment

          • Dag Sunde

            #6
            Re: Save Xml

            "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
            news:4QKDc.3981 $TG7.3127@newss vr27.news.prodi gy.com...[color=blue]
            >
            > "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
            > news:Xns95156B7 5C1A04eejj99@19 4.109.133.29...[color=green]
            > > =?UTF-8?b?TMSByrtpZSB UZWNoaWU=?= wrote on 27 jun 2004 in
            > > comp.lang.javas cript:[color=darkred]
            > > > On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
            > > >
            > > >> how can i save xml.
            > > >> if i have an xml file on a server, lets say a dvd collection. and i
            > > >> have a form that gets information for a new dvd and i append this dvd
            > > >> to the dom. This i can do no problem so far using javascript the only
            > > >> thing that i can not do is save the changes this is easy in vb.net
            > > >> and c# but seeing as i have to work with the server its a whole new
            > > >> world. I dont want to have to use asp or anything that requiers
            > > >> expensive software and or ides. If it can be done with jscript this
            > > >> would be great. or does this sort of thing depend on the server
            > > >> itself?
            > > >>
            > > >> Thanks for the help please feel free to email me with any thoughts
            > > >> and or suggestions @ papastoreyii@sb cglobal.net
            > > >
            > > > You do understand that JavaScript runs on the client? If you want the
            > > > changes to be permanent, they must be stored on the server. PHP,
            > > > Perl, and Java (either as Servlets or JSP) are all free. Check your
            > > > host to see which of these technologies they allow.[/color]
            > >
            > > What about serverside javascript on an ASP platdorm, "free" if it is
            > > includes in your host package.
            > >[/color]
            > i guess it does not really matter how i do it most of the webpage i think
            > that i can do on my side with the javascript and html the only thing i[/color]
            cant[color=blue]
            > figure out how to do is to save the xml so how is this done? despite what
            > media i end up using i still do not know how to do it .
            > thanks again
            > WStorey[/color]

            Put the resulting xml-string in a hidden form field on your page, and post
            it
            to the server. On the server side you must have a cgi-script that receives
            the
            xml, and save it. As others have said before; What kind of cgi you use on
            the
            server side doesn't matter. Python is free, Php is free, Tomcat w/Java is
            free...

            --
            Dag
            58°26'15.9" N 008°46'45.5" E


            Comment

            • WStoreyII

              #7
              Re: Save Xml


              "Dag Sunde" <ds@orion.no-way> wrote in message
              news:cFQDc.751$ 89.255769@julie tt.dax.net...[color=blue]
              > "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
              > news:4QKDc.3981 $TG7.3127@newss vr27.news.prodi gy.com...[color=green]
              > >
              > > "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
              > > news:Xns95156B7 5C1A04eejj99@19 4.109.133.29...[color=darkred]
              > > > =?UTF-8?b?TMSByrtpZSB UZWNoaWU=?= wrote on 27 jun 2004 in
              > > > comp.lang.javas cript:
              > > > > On Sun, 27 Jun 2004 06:04:11 +0000, WStoreyII wrote:
              > > > >
              > > > >> how can i save xml.
              > > > >> if i have an xml file on a server, lets say a dvd collection. and i
              > > > >> have a form that gets information for a new dvd and i append this[/color][/color][/color]
              dvd[color=blue][color=green][color=darkred]
              > > > >> to the dom. This i can do no problem so far using javascript the[/color][/color][/color]
              only[color=blue][color=green][color=darkred]
              > > > >> thing that i can not do is save the changes this is easy in vb.net
              > > > >> and c# but seeing as i have to work with the server its a whole new
              > > > >> world. I dont want to have to use asp or anything that requiers
              > > > >> expensive software and or ides. If it can be done with jscript[/color][/color][/color]
              this[color=blue][color=green][color=darkred]
              > > > >> would be great. or does this sort of thing depend on the server
              > > > >> itself?
              > > > >>
              > > > >> Thanks for the help please feel free to email me with any thoughts
              > > > >> and or suggestions @ papastoreyii@sb cglobal.net
              > > > >
              > > > > You do understand that JavaScript runs on the client? If you want[/color][/color][/color]
              the[color=blue][color=green][color=darkred]
              > > > > changes to be permanent, they must be stored on the server. PHP,
              > > > > Perl, and Java (either as Servlets or JSP) are all free. Check your
              > > > > host to see which of these technologies they allow.
              > > >
              > > > What about serverside javascript on an ASP platdorm, "free" if it is
              > > > includes in your host package.
              > > >[/color]
              > > i guess it does not really matter how i do it most of the webpage i[/color][/color]
              think[color=blue][color=green]
              > > that i can do on my side with the javascript and html the only thing i[/color]
              > cant[color=green]
              > > figure out how to do is to save the xml so how is this done? despite[/color][/color]
              what[color=blue][color=green]
              > > media i end up using i still do not know how to do it .
              > > thanks again
              > > WStorey[/color]
              >
              > Put the resulting xml-string in a hidden form field on your page, and post
              > it
              > to the server. On the server side you must have a cgi-script that receives
              > the
              > xml, and save it. As others have said before; What kind of cgi you use on
              > the
              > server side doesn't matter. Python is free, Php is free, Tomcat w/Java is
              > free...
              >[/color]
              where can a newbie like my self find a good tutorial that will teach me how
              to do this?
              thanks[color=blue]
              > --
              > Dag
              > 58°26'15.9" N 008°46'45.5" E
              >
              >[/color]


              Comment

              • Dag Sunde

                #8
                Re: Save Xml

                "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
                news:k3SDc.7891 2$Xx3.24948@new ssvr29.news.pro digy.com...[color=blue]
                >
                > "Dag Sunde" <ds@orion.no-way> wrote in message
                > news:cFQDc.751$ 89.255769@julie tt.dax.net...[color=green]
                > > "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
                > > news:4QKDc.3981 $TG7.3127@newss vr27.news.prodi gy.com...[color=darkred]
                > > >[/color][/color][/color]

                <snipped />
                [color=blue][color=green]
                > > Put the resulting xml-string in a hidden form field on your page, and[/color][/color]
                post[color=blue][color=green]
                > > it
                > > to the server. On the server side you must have a cgi-script that[/color][/color]
                receives[color=blue][color=green]
                > > the
                > > xml, and save it. As others have said before; What kind of cgi you use[/color][/color]
                on[color=blue][color=green]
                > > the
                > > server side doesn't matter. Python is free, Php is free, Tomcat w/Java[/color][/color]
                is[color=blue][color=green]
                > > free...
                > >[/color]
                > where can a newbie like my self find a good tutorial that will teach me[/color]
                how[color=blue]
                > to do this?
                > thanks[/color]


                Well that depends on where you are...

                * What (programming)la nguages do you know?
                * What OS are your server running on?
                * What kind of web-server are you running?
                * Do you have full access to the server, or
                is it hosted by someone else?

                The snippet under is taken from one of my .ASP
                pages written in VbScript:

                ...
                Dim xmlData
                xmlData = Request.Form("x mlData")

                Dim oDom
                oDom = Server.CreateOb ject("MSXML2.DO MDocument")
                if not oDom.loadXML( xmlData ) Then
                errorString = oDom.parseError .reason
                Else
                oDom.save("data/incoming/orders/temp.xml")
                end if
                ...

                --
                Dag
                58°26'15.9" N 008°46'45.5" E



                Comment

                Working...