# XML, how to filter desire parameter?

**URL:** <https://discuss.elastic.co/t/xml-how-to-filter-desire-parameter/179569>\
**Category:** Logstash\
**Created:** [May 3, 2019, 5:36pm UTC](https://discuss.elastic.co/t/xml-how-to-filter-desire-parameter/179569 "2019-05-03T17:36:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannkeat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hannkeat/32/45424_2.png) [@hannkeat](https://discuss.elastic.co/u/hannkeat)\
**Post date:** [May 3, 2019, 5:36pm UTC](https://discuss.elastic.co/t/xml-how-to-filter-desire-parameter/179569/1 "2019-05-03T17:36:58Z")

</div>

Hi All,

I have parse XML into json, and wish to filter only the require parameter which is MSISDN

```
"RequestBody": [
		{
			"ProvisionNewServicesInRealTimeOrderReqParams": [
				{
					"OrderRequestBody": [
						{
							"ContractServicesList": [
								{
									"ContractService": [
										{
											"ProductAction": [
												{
													"xmlns:ns13": "http://www.usomet.com/cdm/base/v1.0/BaseProvisioning",
													"content": "4"
												}
											],
											"ProductType": [
												{
													"xmlns:ns11": "http://www.usomet.com/cdm/base/v1.0/BaseProvisioning",
													"content": "2"
												}
											],
											"ProductIdentifier": [
												{
													"xmlns:ns12": "http://www.usomet.com/cdm/base/v1.0/BaseProvisioning",
													"ExternalProductId": [
														"1038"
													]
												}
											]
										}
									]
								}
							],
							"Msisdn": [
								"XXXXXXXXXXXXXXX"
							],
							"TransactionCode": [
								"XXXXXXXXX"
							],
							"TransactionType": [
								"YYYYYYYY"
							]
						}
					],
					"ExternalOrderId": [
						"wbAD2XoeQ0eW8L4TVuuDGw=="
					]
				}
			]
		}
	]
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 31, 2019, 5:37pm UTC](https://discuss.elastic.co/t/xml-how-to-filter-desire-parameter/179569/2 "2019-05-31T17:37:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
