---
sourceDocument: Australia Platform security
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/platform-security

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# XMLElement

# XMLElement {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Provides methods for iterating through XML elements and mapping values to fields in a
table.

You get an XMLElement object by calling the next() method
of an XMLElementIterator object.

## XMLElement - getIterator(String xPath) {#ariaid-title2}

Returns an XMLElementIterator object for the XML element based on
the specified parameter.
{#r_XMLEL-getIterator_S__table_atj_pst_st__entry__3}

| Name | Type | Description |
|-|-|-|
| xPath | String | An xPath-like expression that specifies where in the XMLElement object to start. |
[Tabelle : 1. Parameters]

{#r_XMLEL-getIterator_S__table_atj_pst_st} {#r_XMLEL-getIterator_S__table_btj_pst_st__entry__2}

| Type | Description |
|-|-|
| XMLElementIterator | An object that can be used to iterate over elements in the XMLElement object. |
[Tabelle : 2. Returns]

{#r_XMLEL-getIterator_S__table_btj_pst_st}

## XMLElement - getIteratorOverAllChildren() {#ariaid-title3}

Returns an XMLElementIterator object that includes all sub-elements
for the XML element based on the specified parameter.
{#r_XMLEL-getIterOverAllChild__table_ryr_ltt_st__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Tabelle : 3. Parameters]

{#r_XMLEL-getIterOverAllChild__table_ryr_ltt_st} {#r_XMLEL-getIterOverAllChild__table_syr_ltt_st__entry__2}

| Type | Description |
|-|-|
| XMLElementIterator | An object that can be used to iterate over elements in the XMLElement object. |
[Tabelle : 4. Returns]

{#r_XMLEL-getIterOverAllChild__table_syr_ltt_st}

## XMLElement - valueFor(String tableName, String fieldName) {#ariaid-title4}

Specifies that the value of the element maps to the specified field in the specified
table.
Calling this method on an element value tells the proxy that the value for this element
maps to the specified field in the specified table. The proxy then checks if the field must
be encrypted. If the table and field names are unknown, you can call the
valueFor() method on a table and a field that are [dynamically assigned](https://servicenow-prod.fluidtopics.net/T6uDP8eUQs9E51Y_lePZPg#xml-overview__xml-dynamic)
based on the request.
{#r_XMLEL-valueFor_S_S__table_vcj_ztt_st__entry__3}

| Name | Type | Description |
|-|-|-|
| tableName | String | The table name. |
| fieldName | String | The field name. |
[Tabelle : 5. Parameters]

{#r_XMLEL-valueFor_S_S__table_vcj_ztt_st} {#r_XMLEL-valueFor_S_S__table_wcj_ztt_st__entry__2}

| Type | Description |
|-|-|
| void |   |
[Tabelle : 6. Returns]

{#r_XMLEL-valueFor_S_S__table_wcj_ztt_st}

## XMLElement - encodedQueryFor(String tableName) {#ariaid-title5}

Specifies that the value of the element is an encoded query for the specified table.
Calling this function on an element tells the proxy that the value of the element is an
[Encoded query strings](https://www.servicenow.com/docs/access?context=c_EncodedQueryStrings&version=australia&pubname=australia-platform-user-interface&ft:locale=en-US) for the specified table. The proxy parses the encoded query and
encrypts the fields in the encoded query that must be encrypted.
{#r_XMLEL-encodedQueryFor_S__table_fyr_t5t_st__entry__3}

| Name | Type | Description |
|-|-|-|
| tableName | String | The table that you expect the query to run on. |
[Tabelle : 7. Parameters]

{#r_XMLEL-encodedQueryFor_S__table_fyr_t5t_st} {#r_XMLEL-encodedQueryFor_S__table_gyr_t5t_st__entry__2}

| Type | Description |
|-|-|
| void |   |
[Tabelle : 8. Returns]

{#r_XMLEL-encodedQueryFor_S__table_gyr_t5t_st}

## XMLElement - getName() {#ariaid-title6}

Returns the element name.
{#r_XMLEL-getName__table_ajc_4vt_st__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Tabelle : 9. Parameters]

{#r_XMLEL-getName__table_ajc_4vt_st} {#r_XMLEL-getName__table_bjc_4vt_st__entry__2}

| Type | Description |
|-|-|
| String | The element name. |
[Tabelle : 10. Returns]

{#r_XMLEL-getName__table_bjc_4vt_st}

## XMLElement - getAttributeValue(String attribute) {#ariaid-title7}

Returns the value of the specified attribute.
{#r_XMLEL-getAttributeValue_S__table_gtz_wvt_st__entry__3}

| Name | Type | Description |
|-|-|-|
| attribute | String | Attribute name. |
[Tabelle : 11. Parameters]

{#r_XMLEL-getAttributeValue_S__table_gtz_wvt_st} {#r_XMLEL-getAttributeValue_S__table_htz_wvt_st__entry__2}

| Type | Description |
|-|-|
| String | The attribute value. |
[Tabelle : 12. Returns]

{#r_XMLEL-getAttributeValue_S__table_htz_wvt_st}

