Difference between revisions of "XML Syntax"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
m (Reverted edits by Atekysepiko (Talk); changed back to last version by Admin)
 
Line 19: Line 19:
 
 
 
 
  
>=== Sample XML from Sims 2 Storybook Viewer ===
+
=== Sample XML from Sims 2 Storybook Viewer ===
  
   <nowiki><?xml version="1.0" encoding="UTF-8"?></nowiki>
+
   <nowiki><?xml version="1.0" encoding="UTF-8"?></nowiki>
   &lt;nowiki&gt;&lt;StoryCreator&gt;&lt;/nowiki&gt;
+
   <nowiki><StoryCreator></nowiki>
   &lt;nowiki&gt; &lt;ClientEnvironment&gt;&lt;/nowiki&gt;
+
   <nowiki> <ClientEnvironment></nowiki>
   &lt;nowiki&gt;   &lt;AppVersion&gt;1.0.0.971&lt;/AppVersion&gt;&lt;/nowiki&gt;
+
   <nowiki>   <AppVersion>1.0.0.971</AppVersion></nowiki>
   &lt;nowiki&gt;   &lt;LanguageCode&gt;en-us&lt;/LanguageCode&gt;&lt;/nowiki&gt;
+
   <nowiki>   <LanguageCode>en-us</LanguageCode></nowiki>
   &lt;nowiki&gt;   &lt;LanguageId&gt;1&lt;/LanguageId&gt;&lt;/nowiki&gt;
+
   <nowiki>   <LanguageId>1</LanguageId></nowiki>
   &lt;nowiki&gt;   &lt;SKU&gt;14726&lt;/SKU&gt;&lt;/nowiki&gt;
+
   <nowiki>   <SKU>14726</SKU></nowiki>
   &lt;nowiki&gt;   &lt;GameVersion&gt;2141707388.153.1&lt;/GameVersion&gt;&lt;/nowiki&gt;
+
   <nowiki>   <GameVersion>2141707388.153.1</GameVersion></nowiki>
   &lt;nowiki&gt; &lt;/ClientEnvironment&gt;&lt;/nowiki&gt;
+
   <nowiki> </ClientEnvironment></nowiki>
   &lt;nowiki&gt; &lt;ExchangeMetadata&gt;&lt;/nowiki&gt;
+
   <nowiki> <ExchangeMetadata></nowiki>
   &lt;nowiki&gt;   &lt;Album&gt;&lt;/nowiki&gt;
+
   <nowiki>   <Album></nowiki>
   &lt;nowiki&gt;     &lt;ID&gt;0x00000001&lt;/ID&gt;&lt;/nowiki&gt;
+
   <nowiki>     <ID>0x00000001</ID></nowiki>
   &lt;nowiki&gt;     &lt;FamilyName&gt;&lt;![CDATA[]]&gt;&lt;/FamilyName&gt;&lt;/nowiki&gt;
+
   <nowiki>     <FamilyName><![CDATA[]]></FamilyName></nowiki>
   &lt;nowiki&gt;     &lt;FamilyId&gt;0&lt;/FamilyId&gt;&lt;/nowiki&gt;
+
   <nowiki>     <FamilyId>0</FamilyId></nowiki>
   &lt;nowiki&gt;     &lt;LinkName&gt;&lt;/LinkName&gt;&lt;/nowiki&gt;
+
   <nowiki>     <LinkName></LinkName></nowiki>
   &lt;nowiki&gt;     &lt;NeighborhoodName&gt;&lt;![CDATA[Pleasantview]]&gt;&lt;/NeighborhoodName&gt;&lt;/nowiki&gt;
+
   <nowiki>     <NeighborhoodName><![CDATA[Pleasantview]]></NeighborhoodName></nowiki>
   &lt;nowiki&gt;     &lt;LotID&gt;0x00000000&lt;/LotID&gt;&lt;/nowiki&gt;
+
   <nowiki>     <LotID>0x00000000</LotID></nowiki>
   &lt;nowiki&gt;     &lt;LotName&gt;&lt;![CDATA[]]&gt;&lt;/LotName&gt;&lt;/nowiki&gt;
+
   <nowiki>     <LotName><![CDATA[]]></LotName></nowiki>
   &lt;nowiki&gt;     &lt;Title&gt;&lt;![CDATA[]]&gt;&lt;/Title&gt;&lt;/nowiki&gt;
+
   <nowiki>     <Title><![CDATA[]]></Title></nowiki>
   &lt;nowiki&gt;     &lt;Style&gt;Blog&lt;/Style&gt;&lt;/nowiki&gt;
+
   <nowiki>     <Style>Blog</Style></nowiki>
   &lt;nowiki&gt;     &lt;Entry&gt;&lt;/nowiki&gt;
+
   <nowiki>     <Entry></nowiki>
   &lt;nowiki&gt;       &lt;Title&gt;&lt;![CDATA[]]&gt;&lt;/Title&gt;&lt;/nowiki&gt;
+
   <nowiki>       <Title><![CDATA[]]></Title></nowiki>
   &lt;nowiki&gt;       &lt;ThumbnailFilename&gt;thumbnail_6ef1c7e8_af7830ec.jpg&lt;/ThumbnailFilename&gt;&lt;/nowiki&gt;
+
   <nowiki>       <ThumbnailFilename>thumbnail_6ef1c7e8_af7830ec.jpg</ThumbnailFilename></nowiki>
   &lt;nowiki&gt;       &lt;Snapshot&gt;snapshot_6ef1c7e8_af7830ec.jpg&lt;/Snapshot&gt;&lt;/nowiki&gt;
+
   <nowiki>       <Snapshot>snapshot_6ef1c7e8_af7830ec.jpg</Snapshot></nowiki>
   &lt;nowiki&gt;       &lt;Text&gt;&lt;![CDATA[Little shrimp grows up.  Now will he be able to get Daisy Jane to take him seriously?]]&gt;&lt;/Text&gt;&lt;/nowiki&gt;
+
   <nowiki>       <Text><![CDATA[Little shrimp grows up.  Now will he be able to get Daisy Jane to take him seriously?]]></Text></nowiki>
   &lt;nowiki&gt;       &lt;TextResourceId&gt;0x00000001&lt;/TextResourceId&gt;&lt;/nowiki&gt;
+
   <nowiki>       <TextResourceId>0x00000001</TextResourceId></nowiki>
   &lt;nowiki&gt;       &lt;TimeStamp&gt;4/25/2005 19:37:34&lt;/TimeStamp&gt;&lt;/nowiki&gt;
+
   <nowiki>       <TimeStamp>4/25/2005 19:37:34</TimeStamp></nowiki>
   &lt;nowiki&gt;     &lt;/Entry&gt;&lt;/nowiki&gt;
+
   <nowiki>     </Entry></nowiki>
   &lt;nowiki&gt;     &lt;Entry&gt;&lt;/nowiki&gt;
+
   <nowiki>     <Entry></nowiki>
   &lt;nowiki&gt;       &lt;Title&gt;&lt;![CDATA[]]&gt;&lt;/Title&gt;&lt;/nowiki&gt;
+
   <nowiki>       <Title><![CDATA[]]></Title></nowiki>
   &lt;nowiki&gt;       &lt;ThumbnailFilename&gt;thumbnail_af781efb_2f782402.jpg&lt;/ThumbnailFilename&gt;&lt;/nowiki&gt;
+
   <nowiki>       <ThumbnailFilename>thumbnail_af781efb_2f782402.jpg</ThumbnailFilename></nowiki>
   &lt;nowiki&gt;       &lt;Snapshot&gt;snapshot_af781efb_2f782402.jpg&lt;/Snapshot&gt;&lt;/nowiki&gt;
+
   <nowiki>       <Snapshot>snapshot_af781efb_2f782402.jpg</Snapshot></nowiki>
   &lt;nowiki&gt;       &lt;Text&gt;&lt;![CDATA[The boys were equally upset about the loss of their father. ]]&gt;&lt;/Text&gt;&lt;/nowiki&gt;
+
   <nowiki>       <Text><![CDATA[The boys were equally upset about the loss of their father. ]]></Text></nowiki>
   &lt;nowiki&gt;       &lt;TextResourceId&gt;0x00000001&lt;/TextResourceId&gt;&lt;/nowiki&gt;
+
   <nowiki>       <TextResourceId>0x00000001</TextResourceId></nowiki>
   &lt;nowiki&gt;       &lt;TimeStamp&gt;4/25/2005 19:37:17&lt;/TimeStamp&gt;&lt;/nowiki&gt;
+
   <nowiki>       <TimeStamp>4/25/2005 19:37:17</TimeStamp></nowiki>
   &lt;nowiki&gt;     &lt;/Entry&gt;&lt;/nowiki&gt;
+
   <nowiki>     </Entry></nowiki>
   &lt;nowiki&gt;     &lt;KeywordList&gt;&lt;/nowiki&gt;
+
   <nowiki>     <KeywordList></nowiki>
   &lt;nowiki&gt;       &lt;Keyword&gt;Sims Life Stories&lt;/Keyword&gt;&lt;/nowiki&gt;
+
   <nowiki>       <Keyword>Sims Life Stories</Keyword></nowiki>
   &lt;nowiki&gt;     &lt;/KeywordList&gt;&lt;/nowiki&gt;
+
   <nowiki>     </KeywordList></nowiki>
   &lt;nowiki&gt;     &lt;UploadDescription&gt;&lt;![CDATA[Pleasantview story Chapter I - not just another boring simtail.  Updated Feb 7, 2005.]]&gt;&lt;/UploadDescription&gt;&lt;/nowiki&gt;
+
   <nowiki>     <UploadDescription><![CDATA[Pleasantview story Chapter I - not just another boring simtail.  Updated Feb 7, 2005.]]></UploadDescription></nowiki>
   &lt;nowiki&gt;   &lt;/Album&gt;&lt;/nowiki&gt;
+
   <nowiki>   </Album></nowiki>
   &lt;nowiki&gt; &lt;/ExchangeMetadata&gt;&lt;/nowiki&gt;
+
   <nowiki> </ExchangeMetadata></nowiki>
   &lt;nowiki&gt;&lt;/StoryCreator&gt;&lt;/nowiki&gt;
+
   <nowiki></StoryCreator></nowiki>
  
  
&amp;nbsp;
+
&nbsp;
  
&amp;nbsp;
+
&nbsp;
  
 
[[Category:Computer Technology]]
 
[[Category:Computer Technology]]
 
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ikavyqalyb.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 
----
 
=[http://ikavyqalyb.co.cc CLICK HERE]=
 
----
 
</div>
 

Latest revision as of 12:49, 24 November 2010

Extensible Markup Language (XML) A simple, very flexible text format derived from SGML (ISO 8879).

The XML Document Object Model (DOM) defines a standard set of commands that parsers should expose so you can access HTML and XML document content from your programs. A DOM for XML is an object model that exposes the contents of an XML document. The W3C's Document Object Model (DOM) Level 1 Specification currently defines what a DOM should expose as properties, methods, and events.

Rules:

  • In XML, it is illegal to omit the closing tag.
  • XML tags are case sensitive.
  • Elements must be properly nested.
  • One element per page must be the parent of all other elements, the "root" element.
  • Some characters have a special meaning in XML.
  • An XML element is everything from (including) the element's start tag to (including) the element's end tag.
  • An element can contain other elements, simple text or a mixture of both.
  • Elements can also have attributes.
  • XML Names can contain letters, numbers, and other characters
  • XML Names must not start with a number or punctuation character
  • XML Names must not start with the letters xml (or XML, or Xml, etc)
  • XML Names cannot contain spaces

 

Sample XML from Sims 2 Storybook Viewer

 <?xml version="1.0" encoding="UTF-8"?>
 <StoryCreator>
   <ClientEnvironment>
     <AppVersion>1.0.0.971</AppVersion>
     <LanguageCode>en-us</LanguageCode>
     <LanguageId>1</LanguageId>
     <SKU>14726</SKU>
     <GameVersion>2141707388.153.1</GameVersion>
   </ClientEnvironment>
   <ExchangeMetadata>
     <Album>
       <ID>0x00000001</ID>
       <FamilyName><![CDATA[]]></FamilyName>
       <FamilyId>0</FamilyId>
       <LinkName></LinkName>
       <NeighborhoodName><![CDATA[Pleasantview]]></NeighborhoodName>
       <LotID>0x00000000</LotID>
       <LotName><![CDATA[]]></LotName>
       <Title><![CDATA[]]></Title>
       <Style>Blog</Style>
       <Entry>
         <Title><![CDATA[]]></Title>
         <ThumbnailFilename>thumbnail_6ef1c7e8_af7830ec.jpg</ThumbnailFilename>
         <Snapshot>snapshot_6ef1c7e8_af7830ec.jpg</Snapshot>
         <Text><![CDATA[Little shrimp grows up.  Now will he be able to get Daisy Jane to take him seriously?]]></Text>
         <TextResourceId>0x00000001</TextResourceId>
         <TimeStamp>4/25/2005 19:37:34</TimeStamp>
       </Entry>
       <Entry>
         <Title><![CDATA[]]></Title>
         <ThumbnailFilename>thumbnail_af781efb_2f782402.jpg</ThumbnailFilename>
         <Snapshot>snapshot_af781efb_2f782402.jpg</Snapshot>
         <Text><![CDATA[The boys were equally upset about the loss of their father. ]]></Text>
         <TextResourceId>0x00000001</TextResourceId>
         <TimeStamp>4/25/2005 19:37:17</TimeStamp>
       </Entry>
       <KeywordList>
         <Keyword>Sims Life Stories</Keyword>
       </KeywordList>
       <UploadDescription><![CDATA[Pleasantview story Chapter I - not just another boring simtail.  Updated Feb 7, 2005.]]></UploadDescription>
     </Album>
   </ExchangeMetadata>
 </StoryCreator>