Docsity

XML - Clouds and Power-Aware Computing - Lecture Slides, Slides of Computer-Aided Power System Analysis

Partial preview of the text

Download XML - Clouds and Power-Aware Computing - Lecture Slides and more Slides Computer-Aided Power System Analysis in PDF only on Docsity!

How does this work? What other things can we do with it? So far, we've discussed the use of XML in creating web services. XML and web services Docsity.com

Business process can be described in XML… Which is defined by Xschemas… And utilizes queries called XPATHs… Which are both understood by Eclipse… And can be used to model business process and predict business value… Where we're going… Where we're going… Docsity.com

…

Every XML document contains a single element that can contain sub-elements. Beer Elements can have attributes, e.g., element 'bar' attribute name has value'Marvin' content 'Beer' has Basics of XML => All elements must be closed: => or All attributes must be quoted strings (with " or ') XML and HTML: new rules: means A shorthand Basics of XML Docsity.com

Generalization of Document Type Definitions (DTDs) Describe allowable contents of an XML element... … in XML itself! Xschemas Can think of an Xschema as a "type". A type in a programming language is a set of limitations. Likewise, an Xschema is a set of limitations for an XML document. Really strange: Xschemas Docsity.com

  • xs:anyURI: A Uniform Resource Identifier
  • xs:base64Binary: Base64-encoded binary data
  • xs:boolean: true or false, 0 or 1
  • xs:byte: integer >= - 128 and <= 127
  • xs:dateTime: date and time
  • xs:duration: length of time in some units. xs:ID: a unique identifier for an element. From dynamic HTML ID's
  • xs:IDREF: a reference to a unique ID. Cross-reference.
  • xs:IDREFS: a list of references.
  • xs:ENTITY: the name of an XML entity.
  • xs:ENTITIES: a list of names of XML entities.
  • xs:integer: positive or negative integer
  • xs:decimal: signed number
  • xs:language: same values as xml:lang
  • xs:Name: an XML name
  • xs:string: a text string. Pasted from SimpleType : something that contains no other elements. ComplexType: contains other elements, defined by nesting. Kinds of Xschema declarations: Kinds of Xschema declarations Docsity.com

If you declare an IDREF, then it must refer to a unique object. (with a matching id). If it doesn't, the document fails to match the schema. Key idea: your program on the document depends upon certain assumptions about the document , and should not be run if the document doesn't comply. What's the big deal? Docsity.com

Alva An Xschema either "matches" or "does not match" a candidate XML file. In the preceding example: Couch matches, while does not. Matching is syntactic , not semantic. Matching Matching Docsity.com