次の方法で共有


previousSibling Property (Windows Embedded CE 6.0)

1/6/2010

Contains the previous sibling of the node in the parent's child list.

Script Syntax

var objXMLDOMNode = oXMLDOMNode.previousSibling;

Remarks

Ee502351.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee502351.collapse(en-US,WinEmbedded.60).gifScript Return Value

Object. Left sibling of this node.

Ee502351.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_previousSibling(
  IXMLDOMNode** previousSibling
);

Remarks

Ee502351.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • previousSibling
    [out, retval] Left sibling of this node.

Ee502351.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value returned when there is no previous sibling.
  • E_INVALIDARG
    Value returned if previousSibling is Null.

Ee502351.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This value depends on the value of the nodeType property.

Value Description

NODE_ATTRIBUTE, NODE_DOCUMENT, NODE_DOCUMENT_FRAGMENT

Always returns Null; these node types do not appear as children of any other nodes.

NODE_CDATA_SECTION, NODE_COMMENT, NODE_DOCUMENT_TYPE, NODE_ELEMENT, NODE_ENTITY, NODE_ENTITY_REFERENCE, NODE_NOTATION, NODE_PROCESSING_INSTRUCTION, NODE_TEXT

Returns the node immediately preceding this node in its parent's child list. Returns Null if no such node exists.

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

IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime

See Also

Reference

XML DOM Properties

Concepts

nodeType Property