IBM FileNet P8, 버전 5.2.1            

XML 함수

이 절에는 XML 함수 목록과 각 함수의 간단한 설명이 포함되어 있습니다.

표 1. XML 함수 및 설명 표
함수 기능
is_wellformed 문자열 표현식을 사용하고 해당 표현식이 올바른 형식의 XML인지 확인합니다.
xmlencode XML 필드를 문자열 표현식으로 변환합니다.
xmldecode 문자열 표현식을 XML로 변환합니다.

is_wellformed

문자열 표현식이 올바른 구문의 XML인지 확인합니다. 결과 문자열이 올바른 형식의 XML인 경우 true(부울)를 리턴합니다. XML 필드는 문자열 표현식을 작성하는 데 사용할 수 없습니다.

다음 구문을 사용하십시오.
is_wellformed (string_expr)
여기서 string_expr은 문자열 표현식 또는 XML 필드입니다.

xmlencode

모든 XML 특수 문자를 인코드하여 XML을 표준 문자열 형식으로 변환합니다. 결과 문자열을 XML 메시지의 문자열로 사용할 수 있습니다.

다음 구문을 사용하십시오.
xmlencode (string_expr)
여기서 string_expr은 문자열 표현식 또는 XML 필드입니다.

아래 예제에서 string_expr은 XML 형식으로 표시되는 값을 포함하는 XML 데이터 필드입니다. 문자열 형식은 결과입니다.

표 2. XML 형식 및 결과 문자열 형식 표
XML 형식 문자열 형식
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 U 
(http://www.xmlspy.com) by FileNET Corp. 
(FileNET Corp.) -->
<xs:schema xmlns:xs="http://www.w3.org
/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
		<xs:element name="VehicleReply">
				<xs:annotation>
						<xs:documentation>Root</xs:documentation>
	    </xs:annotation>
				<xs:complexType>
						<xs:sequence>
								<xs:element name="Owner_reply" 
type="xs:string"/>
								<xs:element name="VIN_reply" 
type="xs:string"/>
								<xs:element name="RegNumber_reply" 
type="xs:string"/>
								<xs:element name="RegFee_reply" 
type="xs:float"/>
						</xs:sequence>
				</xs:complexType>
		</xs:element>
</xs:schema>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by FileNET Corp. (FileNET Corp.) --&gt;&#10;&lt;xs:schema attributeFormDefault=&quot;unqualified&quot;&#10; elementFormDefault=&quot;qualified&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;&#10; &lt;xs:element name=&quot;VehicleReply&quot;&gt;&#10; &lt;xs:annotation&gt;&#10; &lt;xs:documentation&gt;Root&lt;/xs:documentation&gt;&#10; &lt;/xs:annotation&gt;&#10; &lt;xs:complexType&gt;&#10; &lt;xs:sequence&gt;&#10; &lt;xs:element name=&quot;Owner_reply&quot; type=&quot;xs:string&quot;/&gt;&#10; &lt;xs:element name=&quot;VIN_reply&quot; type=&quot;xs:string&quot;/&gt;&#10; &lt;xs:element name=&quot;RegNumber_reply&quot; type=&quot;xs:string&quot;/&gt;&#10; &lt;xs:element name=&quot;RegFee_reply&quot; type=&quot;xs:float&quot;/&gt;&#10; &lt;/xs:sequence&gt;&#10; &lt;/xs:complexType&gt;&#10; &lt;/xs:element&gt;&#10;&lt;/xs:schema&gt;

xmldecode

문자열 형식을 XML 형식으로 변환합니다.

다음 구문을 사용하십시오.
xmldecode (string_expr)
여기서 string_expr은 문자열 표현식 또는 XML 필드입니다.


마지막 업데이트 날짜: 2016년 3월
bpfe014.htm

© Copyright IBM Corp. 2016.