---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/content](../index.md) / LibraryParseOptions

# Interface: LibraryParseOptions

Defined in: [packages/b2c-tooling-sdk/src/operations/content/types.ts:17](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/content/types.ts#L17)

Options for parsing a library XML string into a Library tree.

## Properties

### assetQuery?

> `optional` **assetQuery**: `string`[]

Defined in: [packages/b2c-tooling-sdk/src/operations/content/types.ts:30](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/content/types.ts#L30)

Dot-notation paths for extracting static asset references from component JSON data.
Use `*` as a wildcard to traverse arrays.

#### Default

```ts
['image.path']
```

#### Example

```typescript
// Extract image paths from nested JSON
{ assetQuery: ['image.path', 'banners.*.image.src'] }
```

***

### keepOrphans?

> `optional` **keepOrphans**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/operations/content/types.ts:38](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/content/types.ts#L38)

Include orphan components (components not linked to any page) as root-level children.
Useful for cleaning up unused components.

#### Default

```ts
false
```
