Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Getting started with XML

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a sparse knowledge of XML. I do know a bit about XML, SAXParser, and DTD.

How much time it will take to finish & grasp the contents of book?

Thanks,
Pratik
[Added meaningful subject - Dave]
[ July 12, 2006: Message edited by: David O'Meara ]
 
Author
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pratik

The book doesn't require any pre-existing knowledge of XML or related technologies. You could judge the time by determining how long it is likely to take you to finish and absorb a book of similar length.

Cheers

Sas Jacobs
 
Pratik Mutha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sas, Thanks much for the info . I am eager to read about XML and more importantly AJAX
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear sas
the more i read abouth schema, the more i get confused abt what it actually is.
Can you explain in easy words as what schema is?
Thanks in advance
-Nitin
 
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is an XML Schema?
The purpose of an XML Schema is to define the legal building blocks of an XML document, just like a DTD.

An XML Schema:

defines elements that can appear in a document
defines attributes that can appear in a document
defines which elements are child elements
defines the order of child elements
defines the number of child elements
defines whether an element is empty or can include text
defines data types for elements and attributes
defines default and fixed values for elements and attributes
 
Nitin Nigam
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rajan,
thanks for the reply.
Just one more thing...as u described about Schema, the same is the duty of DTD. Then what is the differencec between them? When we use schema and when we use DTD?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Nitin Nigam:
Hi rajan,
thanks for the reply.
Just one more thing...as u described about Schema, the same is the duty of DTD. Then what is the differencec between them? When we use schema and when we use DTD?


Hello,
As far as I know, XML Schema is super set of DTD. And XML Schema use XML syntax for its logic.
 
Sas Jacobs
Author
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term schema is a generic term for anything that describes an XML vocabulary. In broad terms, the schema explains the structure of elements and their attributes in the XML documents. A validating parser can use it to check that an XML document is valid.

There are several way to describe a schema - one of the oldest is a DTD (Document Type Definition). Another is using the XML Schema Language (XSD). The two aren't related to each other.

The main differences are that:
DTD's don't use an XML structure whilst XML Schemas do.
A DTD allows entities to be defined, an XML Schema does not.
XML schemas allow data types to be assigned to character data.
XML schemas allow you to define custom data types.
XML schemas have good support for namespaces, while a DTD has none.
XML schemas allow for including and importing other schema documents.
A DTD uses a more concise syntax than XML Schema, resulting in smaller documents.
The XML Schema language is newer than the DTD specification, and so has addressed some of the weaknesses of DTDs.

I hope that helps.

Sas Jacobs
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To add more XML schemas
1. Have a standard way to represent NULL elements.
2. Have support for inheritance, restriction, abstraction etc
3. Can define Enumeration for attributes while DTD one can define it only for attributes.
4. supports about 44 datatypes
5. More elegant to say that an element can occur from 20 to 300 times. Imagine doing this using DTD.
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A DTD is the XML Document Type Declaration contains or points to markup declarations that provide a grammar for a class of documents. This grammar is known as a document type definition or DTD.
The DTD can point to an external subset containing markup declarations, or can contain the markup declarations directly in an internal subset, or can even do both.

A Schema is XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents.

In summary, schemas are a richer and more powerful of describing information than what is possible with DTDs.
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic