PageRenderTime 63ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/php/ref.sdo-das-xml.html

https://bitbucket.org/stillzhl/manuals
HTML | 436 lines | 310 code | 126 blank | 0 comment | 0 complexity | 099c9007a6cb4540d6311de977f61320 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <title>SDO DAS XML 函数</title>
  6. </head>
  7. <body><div class="manualnavbar" style="text-align: center;">
  8. <div class="prev" style="text-align: left; float: left;"><a href="sdo-das-xml.examples.html">范例</a></div>
  9. <div class="next" style="text-align: right; float: right;"><a href="sdo-das-xml.addtypes.html">SDO_DAS_XML::addTypes</a></div>
  10. <div class="up"><a href="book.sdo-das-xml.html">SDO DAS XML</a></div>
  11. <div class="home"><a href="index.html">PHP Manual</a></div>
  12. </div><hr /><div id="ref.sdo-das-xml" class="reference">
  13. <h1 class="title">SDO DAS XML 函数</h1>
  14. <div class="partintro">
  15. <div class="section" id="sdo-das-xml.classes">
  16. <h2 class="title">预定义类</h2>
  17. <p class="para">
  18. The XML DAS provides two main classes.
  19. The first is SDO_DAS_XML which is the main class used to fetch the
  20. data from the XML source and used to write the data back.
  21. The second is the SDO_DAS_XML_Document class,
  22. which represents the data in the XML document.
  23. </p>
  24. <p class="para">
  25. There are also some exception classes which can be thrown
  26. if errors are found when looking for or parsing the xsd or
  27. xml files.
  28. </p>
  29. <div class="section" id="class.sdo-das-xml">
  30. <h2 class="title">
  31. <strong class="classname">SDO_DAS_XML</strong>
  32. </h2>
  33. <p class="para">
  34. This is the main class of the XML DAS,
  35. which is used fetch the data from the xml source
  36. and also used to write the data back.
  37. Other than the methods to load and save xml files,
  38. </p>
  39. <div class="section">
  40. <h2 class="title">方法</h2>
  41. <ul class="itemizedlist">
  42. <li class="listitem">
  43. <p class="para">
  44. <a href="sdo-das-xml.create.html" class="link">create</a>
  45. This is a static method available in the SDO_DAS_XML class.
  46. Used to construct an SDO_DAS_XML object.
  47. </p>
  48. </li>
  49. <li class="listitem">
  50. <p class="para">
  51. <a href="sdo-das-xml.addtypes.html" class="link">addTypes</a>
  52. Works in much the same way as <span class="function"><strong>create()</strong></span> but used
  53. to add the contents of a second or subsequent schema file to
  54. an XML DAS that has already been created.
  55. </p>
  56. </li>
  57. <li class="listitem">
  58. <p class="para">
  59. <a href="sdo-das-xml.createdataobject.html" class="link">createDataObject</a>
  60. Can be used to construct an SDO data object of a given type.
  61. </p>
  62. </li>
  63. <li class="listitem">
  64. <p class="para">
  65. <a href="sdo-das-xml.createdocument.html" class="link">createDocument</a>
  66. Can be used to construct an XML Document object from scratch.
  67. </p>
  68. </li>
  69. <li class="listitem">
  70. <p class="para">
  71. <a href="sdo-das-xml.loadfile.html" class="link">loadFile</a>
  72. Loads the xml instance document from a file.
  73. This file can be at local file system or it can be on a remote host.
  74. </p>
  75. </li>
  76. <li class="listitem">
  77. <p class="para">
  78. <a href="sdo-das-xml.loadstring.html" class="link">loadString</a>
  79. same as the above method.
  80. Loads the xml instance which is available as string.
  81. </p>
  82. </li>
  83. <li class="listitem">
  84. <p class="para">
  85. <a href="sdo-das-xml.savefile.html" class="link">saveFile</a>
  86. save SDO_DAS_XML_Document object as a xml file.
  87. </p>
  88. </li>
  89. <li class="listitem">
  90. <p class="para">
  91. <a href="sdo-das-xml.savestring.html" class="link">saveString</a>
  92. save SDO_DAS_XML_Document object as a xml string.
  93. </p>
  94. </li>
  95. </ul>
  96. </div>
  97. </div>
  98. <div class="section" id="class.sdo-das-xml-document">
  99. <h2 class="title">
  100. <strong class="classname">SDO_DAS_XML_Document</strong>
  101. </h2>
  102. <p class="para">
  103. This class can be used to get to the name and namespace of the document element,
  104. and to get to the root data object of the document.
  105. Lastly, it can also be used to set the XML version and encoding
  106. of a document on output.
  107. </p>
  108. <div class="section">
  109. <h2 class="title">方法</h2>
  110. <ul class="itemizedlist">
  111. <li class="listitem">
  112. <p class="para">
  113. <a href="sdo-das-xml-document.getrootdataobject.html" class="link">getRootDataObject</a>
  114. gets the root DataObject.
  115. </p>
  116. </li>
  117. <li class="listitem">
  118. <p class="para">
  119. <a href="sdo-das-xml-document.getrootelementname.html" class="link">getRootElementName</a>
  120. gets the root DataObject&#039;s name.
  121. </p>
  122. </li>
  123. <li class="listitem">
  124. <p class="para">
  125. <a href="sdo-das-xml-document.getrootelementuri.html" class="link">getRootElementURI</a>
  126. gets the root DataObject&#039;s URI.
  127. </p>
  128. </li>
  129. <li class="listitem">
  130. <p class="para">
  131. <a href="sdo-das-xml-document.setencoding.html" class="link">setEncoding</a>
  132. sets the encoding string with the given value.
  133. </p>
  134. </li>
  135. <li class="listitem">
  136. <p class="para">
  137. <a href="sdo-das-xml-document.setxmldeclaration.html" class="link">setXMLDeclaraion</a>
  138. to set/unset the xml declaration.
  139. </p>
  140. </li>
  141. <li class="listitem">
  142. <p class="para">
  143. <a href="sdo-das-xml-document.setxmlversion.html" class="link">setXMLVersion</a>
  144. sets the xml version with the given value.
  145. </p>
  146. </li>
  147. </ul>
  148. </div>
  149. </div>
  150. <div class="section" id="class.sdo-das-xml-parserexception">
  151. <h2 class="title">
  152. <strong class="classname">SDO_DAS_XML_ParserException</strong>
  153. </h2>
  154. <p class="para">
  155. Is a subclass of
  156. <strong class="classname">SDO_Exception</strong>.
  157. Thrown for any parser errors while loading the xsd/xml file.
  158. </p>
  159. </div>
  160. <div class="section" id="class.sdo-das-xml-fileexception">
  161. <h2 class="title">
  162. <strong class="classname">SDO_DAS_XML_FileException</strong>
  163. </h2>
  164. <p class="para">
  165. Is a subclass of
  166. <strong class="classname">SDO_Exception</strong>.
  167. Thrown by any of the methods that load data from a file, when the file
  168. cannot be found.
  169. </p>
  170. </div>
  171. </div>
  172. <div class="section" id="sdo-das-xml.limitations">
  173. <h2 class="title">Limitations compared with SDO 2.0 specification</h2>
  174. <p class="para">
  175. The
  176. <a href="http://www.ibm.com/developerworks/webservices/library/specification/ws-sdo/" class="link external">&raquo;&nbsp;SDO 2.0 specification</a>
  177. defines the mapping between XML types and SDO types.
  178. With Java SDO, this mapping is implemented by the XMLHelper.
  179. With SDO for PHP, this mapping is implemented by the
  180. XML Data Access Service.
  181. The XML DAS implements the mapping described in the
  182. SDO 2.0 specification with some restrictions.
  183. A detailed list is of the limitations is:
  184. </p>
  185. <div class="procedure">
  186. <strong class="title">XML Simple Types</strong>
  187. <ol type="1"><li>
  188. <p class="para">
  189. Simple Type with sdoJava:instanceClass
  190. - no PHP equivalent provided.
  191. </p>
  192. </li>
  193. <li>
  194. <p class="para">
  195. Simple Type with sdoJava:extendedInstanceClass
  196. - no PHP equivalent provided.
  197. </p>
  198. </li>
  199. <li>
  200. <p class="para">
  201. Simple Type with list of itemType.
  202. </p>
  203. </li>
  204. <li>
  205. <p class="para">
  206. Simple Type with union.
  207. </p>
  208. </li>
  209. </ol></div>
  210. <div class="procedure">
  211. <strong class="title">XML Complex Types</strong>
  212. <ol type="1"><li>
  213. <p class="para">
  214. Complex Type with sdo:aliasName
  215. - no PHP support for SDO Type aliases.
  216. </p>
  217. </li>
  218. </ol></div>
  219. <div class="procedure">
  220. <strong class="title">XSD Attribute</strong>
  221. <ol type="1"><li>
  222. <p class="para">
  223. Attribute with sdo:aliasName
  224. - no PHP support for SDO property aliases.
  225. </p>
  226. </li>
  227. <li>
  228. <p class="para">
  229. Attribute with default value
  230. - no PHP support for SDO property defaults.
  231. </p>
  232. </li>
  233. <li>
  234. <p class="para">
  235. Attribute with fixed value
  236. - no PHP support for SDO read-only properties or default values.
  237. </p>
  238. </li>
  239. <li>
  240. <p class="para">
  241. Attribute referencing a DataObject with
  242. sdo:propertyType - no support for sdo:propertyType=&quot;...&quot;.
  243. </p>
  244. </li>
  245. <li>
  246. <p class="para">
  247. Attribute with bi-directional property to a DataObject with
  248. sdo:oppositeProperty and sdo:propertyType
  249. - no PHP support for SDO opposite.
  250. </p>
  251. </li>
  252. </ol></div>
  253. <div class="procedure">
  254. <strong class="title">XSD Elements</strong>
  255. <ol type="1"><li>
  256. <p class="para">
  257. Element with sdo:aliasName
  258. - no PHP support for SDO property aliases.
  259. </p>
  260. </li>
  261. <li>
  262. <p class="para">
  263. Element with substitution group.
  264. </p>
  265. </li>
  266. </ol></div>
  267. <div class="procedure">
  268. <strong class="title">XSD Elements with Simple Type</strong>
  269. <ol type="1"><li>
  270. <p class="para">
  271. Element of SimpleType with default
  272. - no PHP support for SDO defaults
  273. </p>
  274. </li>
  275. <li>
  276. <p class="para">
  277. Element of SimpleType with fixed value
  278. - no PHP support for SDO read-only properties or default values.
  279. </p>
  280. </li>
  281. <li>
  282. <p class="para">
  283. Element of SimpleType with sdo:string
  284. - no support for sdo:string=&quot;true&quot;.
  285. </p>
  286. </li>
  287. <li>
  288. <p class="para">
  289. Element referencing a DataObject with
  290. sdo:propertyType - no support for sdo:propertyType=&quot;...&quot;
  291. </p>
  292. </li>
  293. <li>
  294. <p class="para">
  295. Element with bi-directional reference to a DataObject with
  296. sdo:oppositeProperty and sdo:propertyType
  297. - no PHP support for SDO opposite.
  298. </p>
  299. </li>
  300. </ol></div>
  301. </div>
  302. </div>
  303. <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="sdo-das-xml.addtypes.html">SDO_DAS_XML::addTypes</a> To load a second or subsequent schema file to a SDO_DAS_XML object</li><li><a href="sdo-das-xml.create.html">SDO_DAS_XML::create</a> To create SDO_DAS_XML object for a given schema file</li><li><a href="sdo-das-xml.createdataobject.html">SDO_DAS_XML::createDataObject</a> Creates SDO_DataObject for a given namespace URI and type name</li><li><a href="sdo-das-xml.createdocument.html">SDO_DAS_XML::createDocument</a> Creates an XML Document object from scratch, without the need to load a document from a file or string.</li><li><a href="sdo-das-xml.loadfile.html">SDO_DAS_XML::loadFile</a> Returns SDO_DAS_XML_Document object for a given path to xml instance document</li><li><a href="sdo-das-xml.loadstring.html">SDO_DAS_XML::loadString</a> Returns SDO_DAS_XML_Document for a given xml instance string</li><li><a href="sdo-das-xml.savefile.html">SDO_DAS_XML::saveFile</a> Saves the SDO_DAS_XML_Document object to a file</li><li><a href="sdo-das-xml.savestring.html">SDO_DAS_XML::saveString</a> Saves the SDO_DAS_XML_Document object to a string</li><li><a href="sdo-das-xml-document.getrootdataobject.html">SDO_DAS_XML_Document::getRootDataObject</a> Returns the root SDO_DataObject</li><li><a href="sdo-das-xml-document.getrootelementname.html">SDO_DAS_XML_Document::getRootElementName</a> Returns root element's name</li><li><a href="sdo-das-xml-document.getrootelementuri.html">SDO_DAS_XML_Document::getRootElementURI</a> — Returns root element's URI string</li><li><a href="sdo-das-xml-document.setencoding.html">SDO_DAS_XML_Document::setEncoding</a> Sets the given string as encoding</li><li><a href="sdo-das-xml-document.setxmldeclaration.html">SDO_DAS_XML_Document::setXMLDeclaration</a> Sets the xml declaration</li><li><a href="sdo-das-xml-document.setxmlversion.html">SDO_DAS_XML_Document::setXMLVersion</a> Sets the given string as xml version</li></ul>
  304. </div>
  305. <hr /><div class="manualnavbar" style="text-align: center;">
  306. <div class="prev" style="text-align: left; float: left;"><a href="sdo-das-xml.examples.html">范例</a></div>
  307. <div class="next" style="text-align: right; float: right;"><a href="sdo-das-xml.addtypes.html">SDO_DAS_XML::addTypes</a></div>
  308. <div class="up"><a href="book.sdo-das-xml.html">SDO DAS XML</a></div>
  309. <div class="home"><a href="index.html">PHP Manual</a></div>
  310. </div></body></html>