<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSGetXattrResult/init(xattrValue:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSGetXattrResult(im)initWithXattrValue:"
  },
  "title" : "init(xattrValue:)"
}
-->

# init(xattrValue:)

Creates a result for an extended-attribute-getting operation.

```
init?(xattrValue value: Data)
```

## Parameters

`value`

The extended attribute value for the requested attribute name.

## Return Value

A populated result instance, or `nil` if validation fails.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)