RE: Question about XML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sudhaker,
	if I can add my thoughts also.

In simple terms, XML is the same as HTML, but you can say what the tags are.
You don't have to be limited to <input>, <table>, <title>, etc, etc. You can
use any tags that you want.

For instance, say you wanted to describe your pets. The XML might look
something like this :-

<pets>
  <animal>
    <cat gender="male" color="black">
      <name>My name is Fido</name>
      <breed>persian</breed>
    </cat>
  </animal>
  <animal>
    <dog gender="female" color="white">
      <name>My name is Pixy</name>
      <breed>poodle</breed>
    </dog>
  </animal>
<pets>

As you can see, the information is structured, and contains attributes that
give additional information.

Of course, having the information available is no good if you don't
understand what it all means. So, you create a DTD (Document Type
Definition). This tells the reader of the document what each of the elements
(nodes) and attributes are, and what values can be held in them.

XML is better than CSV or flat text, because it is much more flexible. You
don't have to have 20 columns of data, with every column filled in. If you
want a 'color' attribute, you can - you are not always force into giving all
the data.

I hope this helps explain why XML is so useful if trying to communicate
between two computer systems.

Robert.

-----Original Message-----
From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On
Behalf Of Sudhakar
Sent: 03 November 2007 07:28
To: php-objects@xxxxxxxxxxxxxxx
Subject:  Question about XML

I am new to xml. After creating an xml file if i open the xml file in 
the browser, the code is displayed.

my question is where does the functionality of xml come in, for 
example in case of php,asp,jsp they are server side scripts which 
processes details that are entered in a form. Does xml have the same 
functionality or is it different. 

please advice the 

1. functionality of using an xml document.
2. how to execute the xml document in the browser
3. do i need to install any xml software to execute xml documents.

Thanks.



PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux