Skip to Content
0
Jul 03, 2015 at 11:43 AM

XML Model - get single property into variable

60 Views

How to get single property of this xml into variable?

For instance NAME i tried the following and it returns null:

xmlModelSetTable.getProperty("/entry/content/m:properties/d:NAME");

This is xml:

<feed xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom" xml:base="http://myd.mgss29a.aws.msg.de:8000/msgta/SE/services/SEexpose.xsodata/">

<title type="text"> SET </title>

<id>

http://myd.mgss29a.aws.msg.de:8000/msgta/SE/services/SEexpose.xsodata/SET

</id>

<author>

<name/>

</author>

<link rel="self" title="SET" href="SET"/>

<entry>

<id>

http://myd.mgss29a.aws.msg.de:8000/msgta/SE/services/SEexpose.xsodata/SET(1)

</id>

<title type="text"/>

<author>

<name/>

</author>

<link rel="edit" title="SET" href="SET(1)"/>

<category term="msgta.SE.services.SEexpose.SETType" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<content type="application/xml">

<m:properties>

<d:SET_ID m:type="Edm.Int32"> 1 </d:SET_ID>

<d:FREQ m:type="Edm.Int32">1</d:FREQ>

<d:NARTIFACT_ID m:type="Edm.String">385dec55da07da068e8f976d060e97ad</d:NARTIFACT_ID>

<d:NAME m:type="Edm.String">Name</d:NAME>

<d:START_DATE m:type="Edm.String">20140216</d:START_DATE>

<d:OCURT m:type="Edm.String">101010</d:OCURT>

</m:properties>

</content>

</entry>

</feed>