次の方法で共有


target Property (Compact 2013)

3/26/2014

Specifies the target for the processing instruction.

Syntax

strValue = oXMLDOMProcessingInstruction.target;
HRESULT get_target(
  BSTR* name
);

Parameters

Script

None.

C/C++

  • name
    [out, retval] Application to which this processing instruction is directed (the target).

Return Value

Script

String. Application to which this processing instruction is directed (the target).

C/C++

  • S_OK
    Value returned if successful.

Remarks

XML defines the target as the first token following the markup that begins the processing instruction. For example, the target has the value "xml" in the processing instruction <?xml version="1.0">.

The target property has the same value as the nodeName Property.

This property is read-only, and applies to the following interface:

IXMLDOMProcessingInstruction

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Properties
nodeName Property