---
title: CFXMLNodeGetString
framework: Core Foundation
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: corefoundation/cfxmlnodegetstring
---

# CFXMLNodeGetString

Returns the data string from a CFXMLNode.

## Declaration

```occ
extern CFStringRefCFXMLNodeGetString(CFXMLNodeRef node);
```

## Parameters

- `node`: The CFXMLNode object to examine.

## Return Value

Return Value The data string from node. Ownership follows the The Get Rule.

## See Also

### CFXMLNode Miscellaneous Functions

- [CFXMLNodeCreate](corefoundation/cfxmlnodecreate.md)
- [CFXMLNodeCreateCopy](corefoundation/cfxmlnodecreatecopy.md)
- [CFXMLNodeGetInfoPtr](corefoundation/cfxmlnodegetinfoptr.md)
- [CFXMLNodeGetTypeCode](corefoundation/cfxmlnodegettypecode.md)
- [CFXMLNodeGetTypeID](corefoundation/cfxmlnodegettypeid.md)
- [CFXMLNodeGetVersion](corefoundation/cfxmlnodegetversion.md)
