XML question

Hey

I’m posting here for once with a problem regarding an XML definition i need for a college course. Generally, i just needed a specific definition for what " well made document" is with regards to XML syntax. Easily need to small my question down any, then merely say so.

And also, just link my home to EarthwormJim’s line.: cheeky:

Handful of pointers from online world. w3schools. com which tell you what should be done to produce a document well-formed:

– XML elements have to be properly nested
– All XML documents need to have a root element
– Attribute values should always be quoted
– Tag names have to be in lowercase
– All XML elements have to be closed

Reviews and corrections welcome

XML element could be closed on the same line:

Code:
< feature /> 

Well formed doesn’t mean legible. Data structures spanning 2 heirarchical levels own issues:

Code:
< stuff>
< home>
< kitchen>
< cell phone />
< /kitchen>
< /home>
< car>
< cell phone />
< /car>
< /stuff>

Phone presents some an issue.

you two from the same class

http: //www. webdesignforums. net/thread11252. html code

ASCII have to be specified with entities;
Markup characters such as ‘& ‘ can’t be used as element names or properties;

ampersand, above, and quote, specifically. Use & rev; amp; & rev; gt; and & rev; quot; instead

Additional generally, you ought to follow basic HTML CODE rules when composing XML (notice that trend of quoting characteristics, using entities, etc… all are contained in HTML and, needless to say, XHTML).

That isn’t quite true, filb. HTML CODE was created in advance of XML. It is usually a markup language, however , not bound by each of the rules that XML must conform to strictly.

XHTML is usually an attempt to make a version of HTML PAGE that conforms to be able to XML standards it is still usable by browsers.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *