# XML/JSON File Source

Adding an *XML/JSON Source* object allows you to transfer data from an XML or JSON file. An example of what an XML/JSON file source object looks like is shown below.

![](/files/1jZctfNrG2SLFEcH0dit)

To configure the properties of an *XML/JSON Source* object after it was added to the dataflow, right-click on it and select *Properties* from the context menu.&#x20;

{% embed url="<https://youtu.be/OSbn6qVh_H0>" %}

The following properties are available:

* *File Path* – specifies the location of the source XML or JSON file. Using UNC paths is recommended if running the dataflow on a server.

{% hint style="info" %}
**Note:** To open the source file for editing in a new tab, click ![](/files/ojuuwjVSFNeTNwIhA3ER)icon next to the *File Path* input, and select *Edit File*.
{% endhint %}

* *Schema File Path* – specifies the location of the XSD file controlling the layout of the XML source file.

{% hint style="info" %}
**Note:** Astera can generate a schema based on the content of the source XML file. The data types will be assigned based on the source file’s content.
{% endhint %}

To generate the schema, click ![](/files/joM0LAQqIkoIUee0c5NT)icon next to the *Schema File Path* input, and select *Generate*.

To edit an existing schema, click ![](/files/m15jTWhdDZm3mD2wf994)icon next to the *Schema File Path* input, and select *Edit File*. The schema will open for editing in a new tab.

* *Optional Record Filter Expression* – allows you to enter an expression to selectively filter incoming records according to your criteria. You can use *Expression Builder* to help you create your filter expression.

{% hint style="info" %}
**Note:** To ensure that your dataflow is runnable on a remote server, please avoid using local paths for the source. Using UNC paths is recommended.
{% endhint %}

{% hint style="info" %}
**Note:** To ensure that your dataflow is runnable on a remote server, please avoid using local paths for the source. Using UNC paths is recommended.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/astera-data-stack-v6/dataflows/sources/xml-json-file-source.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
