Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

very urgent

Can anybody please tell me that why do we need xml ?

xml reduces performance of my application because i have to prepare a
bulkly xml string or i have to load it in domdocument.(Wastage of my
resources)
and very important is use of xml increases my proceesing on client as well
as on server.

Why can't i use a comma( or any other delimiter )separated string(Which
doesn't have bulkly tags)

Please do reply.

Manish Jain.
[486 byte] By [manish jain] at [2007-11-9 14:54:41]
# 1 Re: very urgent
Manish,

This topic has been addressed many in many places. With a delimited file --

1. It is easy to represent hierarchical data?

2. Can it be sorted, filtered, linked, or transformed to html, etc with a
language independent syntax (xsl)?

3. Do standards exist similar to standards like SOAP, OASIS's work, BizTalk,
etc?

4. Can schemas and/or DTD's exist to describe and/or validate it's content?

5. Are database vendors working on returning delimited formats natively?

6. Can it be manipulated with the DOM (again, language independent) like
html or xml?

Simply put, one can write code to accomplish most or all of these items.
Will that code be language independent? How flexible is it to data
dictionary changes? Most delimited formats really on an ordered structure,
nothing is tagged, its position defines its 'column type'. Obviously, one
could make regular delimited data self describing, but most people don't
want to spend time coding that. Many apps using xml will not break if an
extra attribute or element is added. Obviously, they may not make use of
the extra data, but they won't break.

Everyone agrees that proprietary formats have a place in closely coupled
systems. Given the power of most current systems, the trade-offs for using
XML are worth the benefits.

Greg Longtin

"manish jain" <manishj@obvision.com> wrote in message
news:38f5e583@news.dev-archive.com...
> Can anybody please tell me that why do we need xml ?
>
> xml reduces performance of my application because i have to prepare a
> bulkly xml string or i have to load it in domdocument.(Wastage of my
> resources)
> and very important is use of xml increases my proceesing on client as
well
> as on server.
>
> Why can't i use a comma( or any other delimiter )separated string(Which
> doesn't have bulkly tags)
>
> Please do reply.
>
> Manish Jain.
Greg Longtin at 2007-11-11 23:33:58 >
# 2 Re: very urgent
"manish jain" <manishj@obvision.com> wrote:
>Can anybody please tell me that why do we need xml ?
>
>xml reduces performance of my application because i have to prepare a
>bulkly xml string or i have to load it in domdocument.(Wastage of my
>resources)
>and very important is use of xml increases my proceesing on client as well
>as on server.
>
>Why can't i use a comma( or any other delimiter )separated string(Which
>doesn't have bulkly tags)
>
>Please do reply.
>
>Manish Jain.
>
>

I think no technology says - "cumpulsory" to be used.
XML has benifits (which might come with tradeoffs in complexity at programmers
end and/or initial calculations while generating
XML document)

I think you are using XML in a non-Microsoft environment, where Browsers
don't have ready support for XML docs.
But anyways, XML comes with:
-<Data> being sent to client, which he/she can query/filter etc.
-More readability of Data. People can "know" what you are saying.
-In B2B scenarios, if suported by proper vocabulary, It is a boon for the
industry.

Rohit
Rohit Wason at 2007-11-11 23:35:04 >