Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Everything inside a CDATA section is ignored by the parser.
  • If your text contains a lot of "<" or "&" characters - as program code often does - the XML element can be defined as a CDATA section.
  • A CDATA section starts with "<![CDATA[" and ends with "]]>":
  • take a look at CDATA http://www.w3schools.com/xml/xml_cdata.asp

eg

Code Block

<?xml version="1.0" encoding="ISO-8859-1"?> 
<!DOCTYPE DOCUMENT SYSTEM "http://localhost:8080/gateway/msg_core.dtd"> 
<DOCUMENT mode="NORMAL"> 
  <SENDER password="xxx"> <ADDRESS type="EMAIL" role="FROM" value="networkmonitoring@fasttrack.net.au"></ADDRESS> </SENDER>
  <REPLYTO> <ADDRESS type="EMAIL" role="REPLYTO" value="ls@fasttrack.net.au"></ADDRESS> </REPLYTO>
  <MESSAGE> 
  <ADDRESS type="SMS" role="TO" value="0410507753" status="INITIATOR" priority="1"></ADDRESS> 
  <BODY type="TEXT"> 
    <PAYLOAD type="TEXT" encoding="ASCII"> <![CDATA[" and ends with "]]> 
    </PAYLOAD> 
  </BODY>
</MESSAGE> </DOCUMENT>

Examples:

Single SMS

The following is an example of sending one message to a single person

...