ref.sdo-das-xml.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 427 行

HTML
427
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>SDO DAS XML Functions</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.sdo-das-xml.html">SDO DAS XML</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sdo-das-xml-document-getrootdataobject.html">SDO_DAS_XML_Document::getRootDataObject</a></div> <div class="up"><a href="book.sdo-das-xml.html">SDO DAS XML</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1 class="title">SDO DAS XML Functions</h1> <div class="partintro">      <div id="sdo-das-xml.classes" class="section">  <h2 class="title">Predefined Classes</h2>   <p class="para">    The XML DAS provides two main classes.    The first is SDO_DAS_XML which is the main class used to fetch the    data from the XML source and used to write the data back.    The second is the SDO_DAS_XML_Document class,    which represents the data in the XML document.   </p>   <p class="para">    There are also some exception classes which can be thrown    if errors are found when looking for or parsing the xsd or     xml files.    </p>   <div id="sdo-das-xml.class.sdo_das_xml" class="section">    <h2 class="title">     <b class="classname">SDO_DAS_XML</b>    </h2>    <p class="para">     This is the main class of the XML DAS,     which is used fetch the data from the xml source     and also used to write the data back.     Other than the methods to load and save xml files,    </p>    <div id="sdo-das-xml.class.SDO_DAS_XML.methods" class="section">     <h2 class="title">Methods</h2>     <ul class="itemizedlist">      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-create.html" class="link">create</a>        This is a static method available in the SDO_DAS_XML class.        Used to construct an SDO_DAS_XML object.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-addtypes.html" class="link">addTypes</a>        Works in much the same way as <b>create()</b> but used        to add the contents of a second or subsequent schema file to         an XML DAS that has already been created.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-createdataobject.html" class="link">createDataObject</a>        Can be used to construct an SDO data object of a given type.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-createdocument.html" class="link">createDocument</a>        Can be used to construct an XML Document object from scratch.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-loadfile.html" class="link">loadFile</a>        Loads the xml instance document from a file.        This file can be at local file system or it can be on a remote host.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-loadstring.html" class="link">loadString</a>        same as the above method.        Loads the xml instance which is available as string.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-savefile.html" class="link">saveFile</a>        save SDO_DAS_XML_Document object as a xml file.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-savestring.html" class="link">saveString</a>        save SDO_DAS_XML_Document object as a xml string.       </p>      </li>     </ul>    </div>   </div>   <div id="sdo-das-xml.class.sdo_das_xml_document" class="section">    <h2 class="title">     <b class="classname">SDO_DAS_XML_Document</b>    </h2>    <p class="para">     This class can be used to get to the name and namespace of the document element,     and to get to the root data object of the document.      Lastly, it can also be used to set the XML version and encoding     of a document on output.    </p>    <div id="sdo-das-xml.class.SDO_DAS_XML_Document.methods" class="section">     <h2 class="title">Methods</h2>     <ul class="itemizedlist">      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-document-getrootdataobject.html" class="link">getRootDataObject</a>        gets the root DataObject.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-document-getrootelementname.html" class="link">getRootElementName</a>        gets the root DataObject&#039;s name.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-document-getrootelementuri.html" class="link">getRootElementURI</a>        gets the root DataObject&#039;s URI.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-document-setencoding.html" class="link">setEncoding</a>        sets the encoding string with the given value.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-document-setxmldeclaration.html" class="link">setXMLDeclaraion</a>        to set/unset the xml declaration.       </p>      </li>      <li class="listitem">       <p class="para">        <a href="function.sdo-das-xml-document-setxmlversion.html" class="link">setXMLVersion</a>        sets the xml version with the given value.       </p>      </li>     </ul>    </div>   </div>   <div id="sdo-das-xml.class.sdo_das_xml_parserexception" class="section">    <h2 class="title">     <b class="classname">SDO_DAS_XML_ParserException</b>    </h2>    <p class="para">     Is a subclass of     <b class="classname">SDO_Exception</b>.     Thrown for any parser errors while loading the xsd/xml file.    </p>   </div>   <div id="sdo-das-xml.class.sdo_das_xml_fileexception" class="section">    <h2 class="title">     <b class="classname">SDO_DAS_XML_FileException</b>    </h2>    <p class="para">     Is a subclass of     <b class="classname">SDO_Exception</b>.     Thrown by any of the methods that load data from a file, when the file     cannot be found.     </p>   </div>  </div>  <div id="sdo-das-xml.limitations" class="section">   <h2 class="title">Limitations compared with SDO 2.0 specification</h2>   <p class="para">    The     <a href="http://www.ibm.com/developerworks/webservices/library/specification/ws-sdo/" class="link external">&raquo; SDO 2.0 specification</a>    defines the mapping between XML types and SDO types.    With Java SDO, this mapping is implemented by the XMLHelper.    With SDO for PHP, this mapping is implemented by the    XML Data Access Service.    The XML DAS implements the mapping described in the    SDO 2.0 specification with some restrictions.     A detailed list is of the limitations is:   </p>   <div class="procedure">    <b class="title">XML Simple Types</b>    <ol type="1"><li>     <p class="para">      Simple Type with sdoJava:instanceClass      - no PHP equivalent provided.     </p>    </li>    <li>     <p class="para">      Simple Type with sdoJava:extendedInstanceClass      - no PHP equivalent provided.     </p>    </li>    <li>     <p class="para">      Simple Type with list of itemType.     </p>    </li>    <li>     <p class="para">      Simple Type with union.     </p>    </li>   </ol></div>   <div class="procedure">    <b class="title">XML Complex Types</b>    <ol type="1"><li>     <p class="para">      Complex Type with sdo:aliasName      - no PHP support for SDO Type aliases.     </p>    </li>   </ol></div>   <div class="procedure">    <b class="title">XSD Attribute</b>    <ol type="1"><li>     <p class="para">      Attribute with sdo:aliasName      - no PHP support for SDO property aliases.     </p>    </li>    <li>     <p class="para">      Attribute with default value      - no PHP support for SDO property defaults.     </p>    </li>    <li>     <p class="para">      Attribute with fixed value      - no PHP support for SDO read-only properties or default values.     </p>    </li>    <li>     <p class="para">      Attribute referencing a DataObject with      sdo:propertyType - no support for sdo:propertyType=&quot;...&quot;.     </p>    </li>    <li>     <p class="para">      Attribute with bi-directional property to a DataObject with      sdo:oppositeProperty and sdo:propertyType      - no PHP support for SDO opposite.     </p>    </li>   </ol></div>   <div class="procedure">    <b class="title">XSD Elements</b>    <ol type="1"><li>     <p class="para">      Element with sdo:aliasName      - no PHP support for SDO property aliases.     </p>    </li>    <li>     <p class="para">      Element with substitution group.     </p>    </li>   </ol></div>   <div class="procedure">    <b class="title">XSD Elements with Simple Type</b>    <ol type="1"><li>     <p class="para">      Element of SimpleType with default      - no PHP support for SDO defaults     </p>    </li>    <li>     <p class="para">      Element of SimpleType with fixed value      - no PHP support for SDO read-only properties or default values.     </p>    </li>    <li>     <p class="para">      Element of SimpleType with sdo:string      - no support for sdo:string=&quot;true&quot;.     </p>    </li>    <li>     <p class="para">      Element referencing a DataObject with      sdo:propertyType  - no support for sdo:propertyType=&quot;...&quot;     </p>    </li>    <li>     <p class="para">      Element with bi-directional reference to a DataObject with      sdo:oppositeProperty and sdo:propertyType      - no PHP support for SDO opposite.     </p>    </li>   </ol></div>  </div>   </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.sdo-das-xml-document-getrootdataobject.html">SDO_DAS_XML_Document::getRootDataObject</a> 鈥

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?