Partager via


WSDXMLBuildAnyForSingleElement (Compact 2013)

3/26/2014

This function creates an XML element with a specified name and value. The created element can be used as the child of an XML <any> element.

Syntax

HRESULT STDAPI WSDXMLBuildAnyForSingleElement(
  WSDXML_NAME* pElementName,
  const LPCWSTR* pszText,
  WSDXML_ELEMENT** ppAny
);

Parameters

  • pElementName
    [in] Reference to a WSDXML_NAME structure that contains the name of the created element.
  • pszText
    [in] The text value of the created element.
  • ppAny
    [out] Reference to a WSDXML_ELEMENT that contains the created element.

Return Value

The following table shows the possible error code return values.

Error Code

Description

S_OK

The function succeeded.

E_INVALIDORG

pElementName is NULL or the length in characters of pszText exceeds WSD_MAX_TEXT_LENGTH (8192).

E_POINTER

ppAny is NULL.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

Requirements

Header

wsdapi.h

Library

wsdapi.lib

See Also

Reference

Web Services on Devices Functions
Web Services on Devices Reference