Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/javax/xml/transform/Source#pubmethods)

# Source

` public interface Source `   
` `

|---|
| javax.xml.transform.Source |

Known indirect subclasses [DOMSource](https://developer.android.com/reference/javax/xml/transform/dom/DOMSource), [SAXSource](https://developer.android.com/reference/javax/xml/transform/sax/SAXSource), [StreamSource](https://developer.android.com/reference/javax/xml/transform/stream/StreamSource) [DOMSource](https://developer.android.com/reference/javax/xml/transform/dom/DOMSource) Acts as a holder for a transformation Source tree in the form of a Document Object Model (DOM) tree.
[SAXSource](https://developer.android.com/reference/javax/xml/transform/sax/SAXSource) Acts as an holder for SAX-style Source.
[StreamSource](https://developer.android.com/reference/javax/xml/transform/stream/StreamSource) Acts as an holder for a transformation Source in the form of a stream of XML markup.

*** ** * ** ***

An object that implements this interface contains the information needed to act as source input (XML source or transformation instructions).

## Summary

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/javax/xml/transform/Source#getSystemId()() ` Get the system identifier that was set with setSystemId. |
| ` abstract void` | ` https://developer.android.com/reference/javax/xml/transform/Source#setSystemId(java.lang.String)(https://developer.android.com/reference/java/lang/String systemId) ` Set the system identifier for this Source. |

## Public methods

### getSystemId

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract String getSystemId ()
```

Get the system identifier that was set with setSystemId.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The system identifier that was set with setSystemId, or null if setSystemId was not called. <br /> |

### setSystemId

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void setSystemId (String systemId)
```

Set the system identifier for this Source.

The system identifier is optional if the source does not get its data from a URL, but it may still be useful to provide one. The application can use a system identifier, for example, to resolve relative URIs and to include in error messages and warnings.

<br />

<br />

| Parameters ||
|---|---|
| `systemId` | `String`: The system identifier as a URL string. <br /> |