티스토리 뷰

데이터관리

[오라클] XMLType()

앙망 2011. 5. 13. 13:18
XMLType is a system-defined opaque type for handling XML data. It as predefined member functions on it to extract XML nodes and fragments.
XMLType 은 시스템에서 정의한 (불투명한?) 타입으로 XML 데이타를 다룬다. 이것은 미리 정의된 멤버함수로 그 위에서 XML 노드나 조각들을 추출한다. 

You can create columns of XMLType and insert XML documents into it. You can also generate XML documents as XMLType instances dynamically using the SYS_XMLGEN and SYS_XMLAGG SQL functions.
XMLType 의 컬럼을 생성하고 그곳에 XML 문서를 삽입할 수 있다. 또한 XML 문서를 XMLType 인스턴스로 동적으로 만들수 있는데  SYS_XMLGEN 와  SYS_XMLAGG SQL 함수를 사용한다. 


XMLType()

constructor function XMLType(
xmlData IN [clob varchar2,"<ADT_1>", SYS_REFCURSOR],
schema IN varchar2 := NULL,
validated IN number := 0,
wellformed IN Number := 0) return self as result

Parameter

IN / OUT

Description

xmlData

(IN)

The actual data in the form of a CLOB, REF cursor, VARCHAR2 or object type.

schema

(IN)

Optional Schema URL to be used to make the input conform to the given schema.

validated

(IN)

Flag to indicate that the instance is valid according to the given XMLSchema. (default 0)

wellformed

(IN)

Flag to indicate that the input is wellformed. If set, then the database would not do well formed check on the input instance. (default 0)

element

(IN)

Optional element name in the case of the ADT_1 or REF CURSOR constructors. (default null)



참고
 
댓글