ISQLXML.SetResult(Class) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Result for setting the XML value designated by this SQLXML instance.
[Android.Runtime.Register("setResult", "(Ljava/lang/Class;)Ljavax/xml/transform/Result;", "GetSetResult_Ljava_lang_Class_Handler:Java.Sql.ISQLXMLInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends javax.xml.transform.Result" })]
public Java.Lang.Object? SetResult (Java.Lang.Class? resultClass);
[<Android.Runtime.Register("setResult", "(Ljava/lang/Class;)Ljavax/xml/transform/Result;", "GetSetResult_Ljava_lang_Class_Handler:Java.Sql.ISQLXMLInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends javax.xml.transform.Result" })>]
abstract member SetResult : Java.Lang.Class -> Java.Lang.Object
Parameters
- resultClass
- Class
The class of the result, or null. If resultClass is null, a vendor specific Result implementation will be returned. The following classes are supported at a minimum: <pre> javax.xml.transform.dom.DOMResult - returns a DOMResult javax.xml.transform.sax.SAXResult - returns a SAXResult javax.xml.transform.stax.StAXResult - returns a StAXResult javax.xml.transform.stream.StreamResult - returns a StreamResult </pre>
Returns
Returns a Result for setting the XML value.
- Attributes
Remarks
Returns a Result for setting the XML value designated by this SQLXML instance.
The systemID of the Result is implementation dependent.
The SQL XML object becomes not writeable when this method is called and may also become not readable depending on implementation.
Note that SAX is a callback architecture and the returned SAXResult has a content handler assigned that will receive the SAX events based on the contents of the XML. Call the content handler with the contents of the XML document to assign the values.
SAXResult saxResult = sqlxml.setResult(SAXResult.class);
ContentHandler contentHandler = saxResult.getXMLReader().getContentHandler();
contentHandler.startDocument();
// set the XML elements and attributes into the result
contentHandler.endDocument();
Added in 1.6.
Java documentation for java.sql.SQLXML.setResult(java.lang.Class<T>)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.