1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
|
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 297028 $ -->
<reference xml:id="ref.sdo-das-xml" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>SDO DAS XML &Functions;</title>
<partintro>
<!-- FIXME: Upgrade to the new-oo-markup -->
<!-- class definition section -->
<section xml:id='sdo-das-xml.classes'><!-- {{{ -->
&reftitle.classes;
<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.
</para>
<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.
</para>
<section xml:id='sdo-das-xml.class.sdo-das-xml'><!-- {{{ -->
<title>
<classname>SDO_DAS_XML</classname>
</title>
<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,
</para>
<section xml:id='sdo-das-xml.class.SDO-DAS-XML.methods'><!-- {{{ -->
&reftitle.methods;
<itemizedlist>
<listitem>
<para>
<link linkend='function.sdo-das-xml-create'>create</link>
This is a static method available in the SDO_DAS_XML class.
Used to construct an SDO_DAS_XML object.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-addtypes'>addTypes</link>
Works in much the same way as <function>create</function> but used
to add the contents of a second or subsequent schema file to
an XML DAS that has already been created.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-createdataobject'>createDataObject</link>
Can be used to construct an SDO data object of a given type.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-createdocument'>createDocument</link>
Can be used to construct an XML Document object from scratch.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-loadfile'>loadFile</link>
Loads the xml instance document from a file.
This file can be at local file system or it can be on a remote host.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-loadstring'>loadString</link>
same as the above method.
Loads the xml instance which is available as string.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-savefile'>saveFile</link>
save SDO_DAS_XML_Document object as a xml file.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-savestring'>saveString</link>
save SDO_DAS_XML_Document object as a xml string.
</para>
</listitem>
</itemizedlist>
</section><!-- }}} -->
</section><!-- }}} -->
<section xml:id='sdo-das-xml.class.sdo-das-xml-document'><!-- {{{ -->
<title>
<classname>SDO_DAS_XML_Document</classname>
</title>
<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.
</para>
<section xml:id='sdo-das-xml.class.SDO-DAS-XML-Document.methods'><!-- {{{ -->
&reftitle.methods;
<itemizedlist>
<listitem>
<para>
<link linkend='function.sdo-das-xml-document-getrootdataobject'>getRootDataObject</link>
gets the root DataObject.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-document-getrootelementname'>getRootElementName</link>
gets the root DataObject's name.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-document-getrootelementuri'>getRootElementURI</link>
gets the root DataObject's URI.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-document-setencoding'>setEncoding</link>
sets the encoding string with the given value.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-document-setxmldeclaration'>setXMLDeclaraion</link>
to set/unset the xml declaration.
</para>
</listitem>
<listitem>
<para>
<link linkend='function.sdo-das-xml-document-setxmlversion'>setXMLVersion</link>
sets the xml version with the given value.
</para>
</listitem>
</itemizedlist>
</section><!-- }}} -->
</section><!-- }}} -->
<section xml:id='sdo-das-xml.class.sdo-das-xml-parserexception'>
<title>
<classname>SDO_DAS_XML_ParserException</classname>
</title>
<para>
Is a subclass of
<classname>SDO_Exception</classname>.
Thrown for any parser errors while loading the xsd/xml file.
</para>
</section>
<section xml:id='sdo-das-xml.class.sdo-das-xml-fileexception'>
<title>
<classname>SDO_DAS_XML_FileException</classname>
</title>
<para>
Is a subclass of
<classname>SDO_Exception</classname>.
Thrown by any of the methods that load data from a file, when the file
cannot be found.
</para>
</section>
</section>
<section xml:id='sdo-das-xml.limitations'>
<title>Limitations compared with SDO 2.0 specification</title>
<para>
The
<link xlink:href='&url.ibm.sdo;'>SDO 2.0 specification</link>
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:
</para>
<procedure xml:id='sdo-das-xml.limitations.simpletypes'>
<title>XML Simple Types</title>
<step>
<para>
Simple Type with sdoJava:instanceClass
- no PHP equivalent provided.
</para>
</step>
<step>
<para>
Simple Type with sdoJava:extendedInstanceClass
- no PHP equivalent provided.
</para>
</step>
<step>
<para>
Simple Type with list of itemType.
</para>
</step>
<step>
<para>
Simple Type with union.
</para>
</step>
</procedure>
<procedure xml:id='sdo-das-xml.limitations.complextypes'>
<title>XML Complex Types</title>
<step>
<para>
Complex Type with sdo:aliasName
- no PHP support for SDO Type aliases.
</para>
</step>
</procedure>
<procedure xml:id='sdo-das-xml.limitations.attribute'>
<title>XSD Attribute</title>
<step>
<para>
Attribute with sdo:aliasName
- no PHP support for SDO property aliases.
</para>
</step>
<step>
<para>
Attribute with default value
- no PHP support for SDO property defaults.
</para>
</step>
<step>
<para>
Attribute with fixed value
- no PHP support for SDO read-only properties or default values.
</para>
</step>
<step>
<para>
Attribute referencing a DataObject with
sdo:propertyType - no support for sdo:propertyType="...".
</para>
</step>
<step>
<para>
Attribute with bi-directional property to a DataObject with
sdo:oppositeProperty and sdo:propertyType
- no PHP support for SDO opposite.
</para>
</step>
</procedure>
<procedure xml:id='sdo-das-xml.limitations.elements'>
<title>XSD Elements</title>
<step>
<para>
Element with sdo:aliasName
- no PHP support for SDO property aliases.
</para>
</step>
<step>
<para>
Element with substitution group.
</para>
</step>
</procedure>
<procedure xml:id='sdo-das-xml.limitations.elementsimpletype'>
<title>XSD Elements with Simple Type</title>
<step>
<para>
Element of SimpleType with default
- no PHP support for SDO defaults
</para>
</step>
<step>
<para>
Element of SimpleType with fixed value
- no PHP support for SDO read-only properties or default values.
</para>
</step>
<step>
<para>
Element of SimpleType with sdo:string
- no support for sdo:string="true".
</para>
</step>
<step>
<para>
Element referencing a DataObject with
sdo:propertyType - no support for sdo:propertyType="..."
</para>
</step>
<step>
<para>
Element with bi-directional reference to a DataObject with
sdo:oppositeProperty and sdo:propertyType
- no PHP support for SDO opposite.
</para>
</step>
</procedure>
</section>
<!-- }}} -->
</partintro>
&reference.sdo-das-xml.entities.functions;
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
|