Here's an example of what a program will receive in its standard input stream: & lt; ?xml version="1.0 "encoding="ISO-8859-1"? > & lt; message subject= "" route="outbound "importance="1" formattedTimestamp="11:06:46 am "timestamp="Sat Dec 1 11:06:46 2007" type="normal "mainContactId="spacemonkey1234" time="11:06 am "> & lt; from > & lt; contact contactId="tdurden" protocolIcon="aim_protocol "userPhoto="/ home/ kde-devel/. kde4/ share/ apps/ kopete/ oscarpictures/ tdurden. jpg" > & lt; contactDisplayName dir="ltr "text="tdurden" / > & lt; metaContactDisplayName dir="ltr "text="Tyler" / > & lt; /contact > & lt; /from > & lt; to > & lt; contact contactId="spacemonkey1234 "protocolIcon="aim_protocol" userPhoto="/ home/ kde-devel/. kde4/ share/ apps/ kopete/ avatars/ User/ 7e542903e0ac7519a7496e85f5a5b99d. png "> & lt; contactDisplayName dir="ltr" text="spacemonkey1234 "/ > & lt; metaContactDisplayName dir="ltr" text="Robert Paulson "/ > & lt; /contact > & lt; /to > & lt; body dir="ltr" bgcolor="#000000 "color="#000000" > & lt; span style= "color: #000000;" > heyamp; lt; /span > lt; /body > & lt; /message > This & xml; is loosely based on the XSD used for chatstyles found at the Kopete website. This code represents one message. There are a few things to note:
Aquest és un exemple de quina mena de programa rebrà en el seu flux d' introducció estàndard: & lt;? xml version=" 1. 0 "encoding=" ISO- 8859- 1"? > & lt; message subject= ""route=" outbound "importance=" 1" formattedTimestamp=" 11: 06: 46 am "timestamp=" Sat Dec 1 11: 06: 46 2007" type=" normal "mainContactId=" spacemonkey1234" time=" 11: 06 am "> & lt; from > & lt; contact contactId=" tdurden" protocolIcon=" aim_ protocol "userPhoto=" / home/ kde- devel /. kde4/ share/ apps/ kopete/ oscarpictures/ tdurden. jpg "> & lt; contactDisplayName dir=" ltr" text=" tdurden "/ > & lt; metaContactDisplayName dir=" ltr" text=" Tyler "/ > & lt; / contact > & lt; / from > & lt; to > & lt; contact contactId=" spacemonkey1234" protocolIcon=" aim_ protocol "userPhoto=" / home/ kde- devel /. kde4/ share/ apps/ kopete/ avatars/ User/ 7e542903e0ac7519a7496e85f5a5b99d. png "> & lt; contactDisplayName dir=" ltr" text=" spacemonkey1234 "/ > & lt; metaContactDisplayName dir=" ltr" text=" Robert Paulson "/ > & lt; / contact > & lt; / to > & lt; body dir=" ltr" bgcolor= "# 000000" color= "# 000000" > & lt; span style= "color: # 000000;" > heyamp; lt; / span > lt; / body > & lt; / message > Aquest & xml; està basat en l' XSD usat per als estils de xat trobat al web del Kopete. Aquest codi representa un missatge. Hi ha unes poques coses a tenir en compte: