---
title: parse()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/xmlparser/parse()
---

# parse()

Starts the event-driven parsing operation.

## Declaration

```swift
func parse() -> Bool
```

## Return Value

Return Value true if the parsing operation succeeds; false if an error occurs or if the parsing operation aborts.

## See Also

### Parsing

- [abortParsing()](foundation/xmlparser/abortparsing().md)
- [parserError](foundation/xmlparser/parsererror.md)
