SDO_DAS_XML::createDocument
(^)
SDO_DAS_XML::createDocument — Creates an XML Document object from scratch, without the need to load a document from a file or string.
Description
$document_element_namespace_URI
, string $document_element_name
[, SDO_DataObject $dataobject
] )Creates an XML Document object. This will contain just one empty root element on which none of the properties will have been set. The purpose of this call is to allow an application to create an XML document from scratch without the need to load a document from a file or string. The document that is created will be as if a document had been loaded that contained just a single empty document element with no attributes set or elements within it.
createDocument() may need to be told what the document element is. This will not be necessary in simple cases. When there is no ambiguity then no parameter need be passed to the method. However it is possible to load more than one schema file into the same XML DAS and in this case there may be more than one possible document element defined: furthermore it is even possible that there are two possible document elements that differ only in the namespace. To cope with these cases it is possible to specify either the document element name, or both the document element name and namespace to the method.
Parameters
-
document_element_name
-
The name of the document element. Only needed if there is more than one possibility.
-
document_element_namespace_URI
-
The namespace part of the document element name. Only needed if there is more than one possible document element with the same name.
-
dataobject
-
Return Values
Returns an SDO_XML_DAS_Document object on success.
Errors/Exceptions
-
SDO_UnsupportedOperationException
-
Thrown if an element name or element name and namespace URI is passed, but not found in the underlying model.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Обработка XML
- SDO XML Data Access Service
- Функция SDO_DAS_XML::addTypes() - To load a second or subsequent schema file to a SDO_DAS_XML object
- Функция SDO_DAS_XML::create() - To create SDO_DAS_XML object for a given schema file
- Функция SDO_DAS_XML::createDataObject() - Creates SDO_DataObject for a given namespace URI and type name
- Функция SDO_DAS_XML::createDocument() - Creates an XML Document object from scratch, without the need to load a document from a file or string.
- Функция SDO_DAS_XML::loadFile() - Returns SDO_DAS_XML_Document object for a given path to xml instance document
- Функция SDO_DAS_XML::loadString() - Returns SDO_DAS_XML_Document for a given xml instance string
- Функция SDO_DAS_XML::saveFile() - Saves the SDO_DAS_XML_Document object to a file
- Функция SDO_DAS_XML::saveString() - Saves the SDO_DAS_XML_Document object to a string
- Функция SDO_DAS_XML_Document::getRootDataObject() - Returns the root SDO_DataObject
- Функция SDO_DAS_XML_Document::getRootElementName() - Returns root element's name
- Функция SDO_DAS_XML_Document::getRootElementURI() - Returns root element's URI string
- Функция SDO_DAS_XML_Document::setEncoding() - Sets the given string as encoding
- Функция SDO_DAS_XML_Document::setXMLDeclaration() - Sets the xml declaration
- Функция SDO_DAS_XML_Document::setXMLVersion() - Sets the given string as xml version
Коментарии
404 Not Found