Industrial Internet 56-7
56.3.2.2 eXtensible Markup Language
HTML
.has.limitations.concerning.its.mixture.of.presentation-related.and.content-related.markup..In.
order.to.separate.the.content.from.its.presentation,.the.XML.has.been.specied.[TBR98]..XML.was.
developed.and.established.as.a.markup.language.for.generic.purpose..XML.is.oen.treated.as.a.Meta.
language.suitable.for.development.of.customized,.specic.languages.
XML
.expands.the.description.language.HTML.with.user-dened.tags,.data.types,.and.structures..
Furthermore,.it.addresses.one.of.the.limitations.in.HTML—it.introduces.a.clear.separation.between.the.
data.descriptions,.the.data.themselves,.and.their.representation.(Figure.56.6)..For.declaring.syntactical.
information,.a.separate.denition.le.XML.Schema.Denition.Language.(XSD).[XSD01].or.Document.
Type.Denition.(DTD).is.used..is.allows.reusing.the.description.structure.in.dierent.contexts..is.
provides.a.number.of.benets.when.using.the.same.XML.description.le.for.dierent.tasks..In.combi-
nation
.with.Namespace.denitions.semantics.can.be.dened..Namespaces.allow.establishing.a.clear.
relation.between.tags.dened.in.a.schema.and.their.usage.context.
e
.availability. of. a. wide.range. of.soware. tools. allows.creating.eective.XML-based. solutions..
Publicly.available.solutions.for.parsers.and.development.frameworks.supporting.dierent.platforms.and.
dierent.operating.systems.contribute.to.the.actual.hype.of.using.XML.as.a.general-purpose.descrip-
tion
.language..e.XML.data.can.be.ltered.and.associated.to.soware..e.selection.of.the.necessary.
information.and.the.denition.of.their.presentation.details.can.be.performed.by.means.of.scripts.and.
style.sheets..e.style.sheets.[FBO98].are.part.of.the.development.of.XML..In.most.cases,.they.are.
implemented.using.the.eXtensible.Style.Language.for.Transformation.(XSLT)..An.XML.document.can.
be.related.to.dierent.style.sheets.for.dierent.presentation.or.conversion.functions,.so.that.only.the.
XSLT.references.have.to.be.changed..Since.style.sheets.in.XSLT.can.contain.script.elements,.a.Document.
Object.Model.(DOM).[DOM98].has.been.developed.to.support.scripting..is.DOM.is.used.to.access.
the.XML.le.and.its.elements.from.a.script..e.DOM.programming.objects.provide.interfaces.to.the.
original.XML.le,.representing.its.structure.as.a.tree.of.objects..e.output.data.of.the.DOM.functions.
can.be.used.to.generate.any.textual.or.binary.les,.including.new.XML.les.with.a.dierent.structure..
e.major.benet.of.this.solution.is.a.unique,.reusable.description.with.an.excellent.consistency.and.
reduced.eorts.of.the.description.process.
Applications
.of.XML.in.the.industrial.domain.have.developed.with.increasing.speed..ey.cover.
static.descriptions.for.multiple.purposes,.for.example,.device.descriptions,.data.exchange.descriptions,.
and.protocol.descriptions.using.SOAP.and.WSDL.(e.g.,.OPC.and.XML.specication.[OPC04]).
A
.special.importance.for.visualization.tasks.is.assigned.to.Scalable.Vector.Graphics.(SVG).[SVG01],.
an.XML. format.for.presentation.of.two-dimensional.vector-based.graphics.including. functions. for.
<root>
<element>
<child_element attribute=“attr-value”>
</child_element>
<child_element>
<next_generation>
Value
</next_generation>
</child_element>
</element>
<element>
<child_element>
</child_element>
</element>
</root>
Style-sheet
(Formatting
instructions)
Document type
denition—DTD
Schema
(Syntax, Semantics)
XML-le
Output les
(Description
content)
FIGURE 56.6 Structure.of.an.XML.le.(le).and.the.XML.environment.
© 2011 by Taylor and Francis Group, LLC