DB2®DataReader.GetXmlReader Method
Returns an XmlReader from a character, binary, or DB2Type.XML column.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Function GetXmlReader(ByVal i As Integer) As XmlReader
[C#]
public XmlReader GetXmlReader(int i);
[C++]
public: XmlReader* GetXmlReader(int i);
[JScript]
public function GetXmlReader(i : int) : XmlReader;
Parameters
- i
- The zero-based column ordinal.
Return value
The value of the specified column as an XmlReader object.
Remarks
Avoid using the CHAR() FOR BIT DATA column to hold XML data, because the value stored will be blank padded on the database server. This causes a problem for Db2® for z/OS® or Db2/400 servers, where the pad character is in the EBCDIC code page. If you must use a CHAR() FOR BIT DATA column, you can avoid this problem by using RTIRM() on the XML column in the select list.