IBM Support

About XML Syntax

Question & Answer


Question

About XML Syntax

Answer


About XML Syntax

XML syntaxrules are very simple and very strict. For this reason creating softwarethat can read and manipulate XML is very easy to do.

The following is an example of an XML document:

<?xml version= ?1.0? encoding=?ISO-8859-1??><note><to>Dick</to><from>Jane</from><heading>Notice</heading><body>See Spot run!</body></note>

The first line in the document is the XML declaration. It definesthe XML version and the character encoding used in the document. Inthis case the document conforms to the 1.0 specification of XML anduses the ISO-8859-1 (Latin-1/West European) character set. The XMLdeclaration is not a part of the XML document itself and thereforedoes not require a closing tag.

The next line describes the root element of the document. In thisexample it is saying ?This document is a note.?

The next four lines describe the four child elements of the root:to from heading and body (each of which has start and end tags).

The last line defines the end of the root element: </note>.

Writing Comments in XML

Use the followingsyntax for writing comments in XML:

<!-- Thisis a comment -->

"
[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

More support for:
Sterling Total Payments for Financial Services

Software version:
All Versions

Document number:
758455

Modified date:
08 December 2018

UID

ibm10758455

Manage My Notification Subscriptions