processing xml file

A

Asper Faner

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

Asper Faner

Asper said:
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.
 
K

Kerrie M. Meyers

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,.
 
D

David Dorward

Kerrie said:
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.
 
D

David Dorward

Asper said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,007
Messages
2,570,266
Members
46,864
Latest member
DaniEbswor

Latest Threads

Top