PHP: SDO_DAS_XML::createDocument - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SDO_DAS_XML::loadFile SDO_DAS_XML::createDataObject

Last updated: Fri, 26 Jan 2007

view this page in

# SDO_DAS_XML::createDocument

(no version information, might be only in CVS)

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_Document SDO_DAS_XML::createDocument ( [string document_element_name] )
SDO_DAS_XML_Document SDO_DAS_XML::createDocument ( string document_element_namespace_URI, string document_element_name )

Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

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.

## Список параметров

`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.

## Возвращаемые значения

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.

add a note User Contributed Notes
SDO_DAS_XML::createDocument
There are no user contributed notes for this page.
SDO_DAS_XML::loadFile SDO_DAS_XML::createDataObject

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST