processing xml file

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

    processing xml file

    Processing it by php and javascript, which one might be more preferable
    ? Thanks

  • Asper Faner

    #2
    Re: processing xml file


    Asper Faner wrote:
    Processing it by php and javascript, which one might be more preferable
    ? Thanks
    I think php does better since it is more functional whereas javascript
    still lacks many aspects including its pretty awkward manipulation and
    creation of nodes.

    Comment

    • Kerrie M. Meyers

      #3
      Re: processing xml file

      I like to SAX more ? it's better with multiple interfaces and funcions
      to process a xml file.
      with jscript you go nowhere outof java, so why not SAX then ? not
      including it is completely microsoft specific, you will never be able
      to use jscript in linux or macos. With SAX you can handle nodes tree in
      many ways, i don't know about PHP, but it seems unable to compare with
      SAX, and only works in some platforms. Such limitations should be
      considered. I have been in java field for over 20 years, and done many
      industrial applications,.

      Asper Faner wrote:
      Processing it by php and javascript, which one might be more preferable
      ? Thanks

      Comment

      • David Dorward

        #4
        Re: processing xml file

        Kerrie M. Meyers wrote:
        I like to SAX more ? it's better with multiple interfaces and funcions
        to process a xml file.
        You like SAX more than ... what? (and there are SAX implementations
        available for PHP and for some JavaScript implementations ).
        with jscript you go nowhere outof java, so why not SAX then ?
        Now I'm confused.

        First - why bring JScript into this? If you mean JavaScript then please note
        that JScript refers to the Microsoft implementation of the language.

        Second - Java? Nobody has mentioned anything relating to Java yet. The
        closest that the thread has come so far is JavaScript (which has four
        things in common with Java - the first four letters of its name).
        not including it is completely microsoft specific, you will never be able
        to use jscript in linux or macos.
        No, but you can use JavaScript. The differences aren't really all that
        significant.
        With SAX you can handle nodes tree in many ways, i don't know about PHP,
        but it seems unable to compare with SAX, and only works in some platforms.
        You can use SAX parsers from PHP.
        Such limitations should be considered. I have been in java field for over
        20 years, and done many industrial applications,.
        Java has been around for slightly more then a decade. It isn't possible to
        have been in the Java field for 20 years.

        --
        David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
        Home is where the ~/.bashrc is

        Comment

        • David Dorward

          #5
          Re: processing xml file

          Asper Faner wrote:
          Processing it by php and javascript, which one might be more preferable
          ? Thanks
          Processing it to do what? Where?

          As a rule of thumb, if you can do it on the server, then do it on the
          server. (PHP /usually/ runs on the server, and JavaScript /usually/ runs on
          the client).

          In more general terms, my language of choice for processing XML is Perl,
          although I'm starting to do some things with XSLT and it looks useful.

          --
          David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
          Home is where the ~/.bashrc is

          Comment

          Working...