WEB开发网
开发学院WEB开发Xml 在 Android 上使用 XML 和 JSON,第 1 部分: 在 A... 阅读

在 Android 上使用 XML 和 JSON,第 1 部分: 在 Android 应用程序上研究 JSON 和 XML 益处

 2010-10-22 17:19:13 来源:WEB开发网   
核心提示: 工作空间中的 XML今天,XML 是默认的、预定数据格式,在 Android 上使用 XML 和 JSON,第 1 部分: 在 Android 应用程序上研究 JSON 和 XML 益处(4),尽管同一数据的其他格式也可用,但基于 XML 结构的可用性进行计划是一种最安全的方式,含有多个 XML

工作空间中的 XML

今天,XML 是默认的、预定数据格式。尽管同一数据的其他格式也可用,但基于 XML 结构的可用性进行计划是一种最安全的方式。

Enterprise Resource Planning (ERP) 包频繁使用 XML 进行数据到任务的导入和导出。Internet 新闻网站经常将数据提供为 Really Simple Syndication (RSS) — 具有新闻阅读软件可以处理的预定义格式的 XML 文档。甚至文字处理应用程序(例如 OpenOffice.org 和 Microsoft® Office)也使用 XML。

现在的 Microsoft Office 文件是 PKZIP 兼容的,含有多个 XML 文档。 每个 XML 在第一行都有这个常见声明。正如您在 清单 2 所看到的,阅读这些属性可能有点难:

清单 2. 每个文件第一行的常见声明

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 <w:document xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" 
 xmlns:o="urn:schemas-microsoft-com:office:office" 
 xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" 
 xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" 
 xmlns:v="urn:schemas-microsoft-com:vml" 
 xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" 
 xmlns:w10="urn:schemas-microsoft-com:office:word" 
 xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" 
 xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml"> 
 <w:body><w:p w:rsidR="00B6337C" w:rsidRDefault="00663F0E"><w:r> 
 <w:t xml:space="preserve">This is a sample </w:t></w:r><w:r 
 w:rsidRPr="006906EA"><w:rPr><w:i/></w:rPr><w:t>Microsoft 
 Word document</w:t></w:r><w:r><w:t xml:space="preserve"> used 
 to </w:t></w:r><w:r w:rsidRPr="006906EA"><w:rPr><w:b/> 
 <w:u w:val="single"/></w:rPr><w:t>demonstrate</w:t></w:r> 
 <w:r><w:t xml:space="preserve"> some XML topics.</w:t></w:r> 
 </w:p><w:p w:rsidR="00B14B2A" w:rsidRDefault="00B14B2A"/><w:p 
 w:rsidR="00B14B2A"w:rsidRDefault="00B14B2A"><w:r><w:rPr> 
 <w:noProof/></w:rPr><w:drawing><wp:inline distT="0" distB="0" 
 distL="0" distR="0"><wp:extent cx="3276600" cy="3838575"/><wp:effectExtent 
 l="19050" t="0" r="0" b="0"/><wp:docPr id="1" name="Picture 0" 
 descr="frankableson.jpg"/><wp:cNvGraphicFramePr><a:graphicFrameLocks 
 xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" 
 noChangeAspect="1"/></wp:cNvGraphicFramePr><a:graphic 
 xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:graphicData 
 uri="http://schemas.openxmlformats.org/drawingml/2006/picture"><pic:pic 
 xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"> 
 <pic:nvPicPr><pic:cNvPrid="0"name="frankableson.jpg"/><pic:cNvPicPr/> 
 </pic:nvPicPr><pic:blipFill><a:blip r:embed="rId4" 
 cstate="print"/><a:stretch><a:fillRect/></a:stretch> 
 </pic:blipFill><pic:spPr><a:xfrm><a:off x="0" y="0"/> 
 <a:ext cx="3276600" cy="3838575"/></a:xfrm><a:prstGeom 
 prst="rect"><a:avLst/></a:prstGeom></pic:spPr></pic:pic> 
 </a:graphicData></a:graphic></wp:inline></w:drawing> 
 </w:r></w:p><w:p w:rsidR="00663F0E" w:rsidRDefault="00663F0E"/> 
 <w:p w:rsidR="00CC16CE" w:rsidRDefault="00CC16CE"/><w:sectPr 
 w:rsidR="00CC16CE" w:rsidSect="00B6337C"><w:pgSz w:w="12240" w:h="15840"/> 
 <w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" 
 w:footer="720" w:gutter="0"/><w:cols w:space="720"/><w:docGrid 
 w:linePitch="360"/></w:sectPr></w:body></w:document> 

上一页  1 2 3 4 5 6 7 8 9  下一页

Tags:Android 使用 XML

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接