PDA

Click to See Complete Forum and Search --> : xml types


PT Exorcist
Apr 30th, 2003, 07:36 AM
i noticed there are (at least) 2 types of xml files..the ones like hellwraith's post format:
<title>
<name>pt</name>
</title>

and the ones like
<title>
name="pt"
</title>

what are their differences? and their names? which to use when and where?

Lethal
Apr 30th, 2003, 09:42 AM
Both examples are using the xml markup language. The difference is that in your first example, you are using elements and in your second, you are using attributes. The second example is actually not well-formed. An attribute is not a stand alone entity, it is part of an element.


<appSettings id='MyCoolApp'>
</appSettings>

Pirate
Apr 30th, 2003, 01:40 PM
I think there are more than XML file type according to this link :

*.xml, *.xsl, *.xsd, *.conf and *.dtd file types
http://www.modelworks.com/editors/xml.html

this must be confusing ...lol