My Sourceforge - Project "SMS Forwarder" started ... at least i started thinking about the features
here is my first MindMap (created with mindmeister.com)
Read more...
My Sourceforge - Project "SMS Forwarder" started ... at least i started thinking about the features
here is my first MindMap (created with mindmeister.com)
Hi,
i just stumbled upon this very NICE rom for my htc diamond (which is still vodafone branded).
This Multilanguage Rom Supports:
For some reason (i guess i was way too lazy) I messed up an exam at university. So this post will help me to know about the topics mentioned above.
XML is not just a standard for data-exchange. It's more like the root of a whole family of IT Standards f.e.
Document Type Definition (DTD) is one of several SGML and XML schema languages, and is also the term used to describe a document or portion thereof that is authored in the DTD language. A DTD is primarily used for the expression of a schema via a set of declarations that conform to a particular markup syntax and that describe a class, or type, of document, in terms of constraints on the structure of that document. A DTD may also declare constructs that are not always required to establish document structure, but that may affect the interpretation of some documents. XML documents are described using a subset of DTD which imposes a number of restrictions on the document's structure, as required per the XML standard (XML is in itself an application of SGML optimized for automated parsing).We all know how a standard XML-File looks like...
To validate this XML we create a DTD and link the XML File to this DTD File. To create those Files I use the Freeware called XMLPad.Basic bread Flour Yeast Water Salt Mix all ingredients together. Knead thoroughly. Cover with a cloth, and leave for one hour in warm room. Knead again. Place in a bread baking tin. Cover with a cloth, and leave for one hour in warm room. Bake in the oven at 180(degrees)C for 30 minutes.
That's it - now we can start to create rules to validate the DTD ...
So we have 3 Attributes for the Element recipe (name, prep_time, cook_time). CDATA defines the type of the attributes (Character Data). That way any XML-Parser knows that there is just text folowing (nothing to do). #IMPLIED tells us if the attribute has to be stated or not (in our case none of the attributes are required / #REQUIRED).
This time we force the parser to check if all of the mandatory attributes (amount, unit) are stated - otherwise we'll get an error.
that's it - we don't have to do something else. The DTD File checks if every Element is in the XML File and if every mandatory attribute is stated.XML Schema, published as a W3C recommendation in May 2001, is one of several XML schema languages. It was the first separate schema language for XML to achieve Recommendation status by the W3C. Like all XML schema languages, XML Schema can be used to express a schema: a set of rules to which an XML document must conform in order to be considered 'valid' according to that schema. However, unlike most other schema languages, XML Schema was also designed with the intent that determination of a document's validity would produce a collection of information adhering to specific data types. Such a post-validation infoset can be useful in the development of XML document processing software, but the schema language's dependence on specific data types has provoked criticism.
the next thing you'll realize is, that you link the XML-File to the schema file in a different way (look at the root element recipe)
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///E:/Daten/XmlPad%20Projects/XML%20via%20DTD/recipe-schema.xsd"Another interesting point is the sequence of the tags. For me it's just important to know that you have to define a element as a complex type with a sequence to add sub-elements.
Image via CrunchBase









