Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I have a xml string like this

XML
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xml:base="https://api.repaircenter-uat.mitchell.com:8083/RepairOrder/JobService.svc/">
  <title type="text">Totals</title>
  <id>https://api.repaircenter-uat.mitchell.com:8083/RepairOrder/JobService.svc/Totals</id>
  <updated>2013-08-27T14:16:20Z</updated>
  <link rel="self" title="Totals" href="Totals" />
  <entry>
    <id>https://api.repaircenter-uat.mitchell.com:8083/RepairOrder/JobService.svc/Totals(JobId=6,ShopId='1000')</id>
    <title type="text" />
    <updated>2013-08-27T14:16:20Z</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="Total" href="Totals(JobId=6,ShopId='1000')" />
    <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Job" type="application/atom+xml;type=entry" title="Job" href="Totals(JobId=6,ShopId='1000')/Job" />
    <category term="Mitchell.Repair.Services.Data.RepairOrder.JobData.Total" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:JobId m:type="Edm.Int32">6</d:JobId>
        <d:ShopId>1000</d:ShopId>
        <d:AppearanceAllowanceAmount m:type="Edm.Double">0</d:AppearanceAllowanceAmount>
        <d:BettermentAmount m:type="Edm.Double">0</d:BettermentAmount>
        <d:CustomerPayAmount m:type="Edm.Double">500</d:CustomerPayAmount>
        <d:CustomerTaxAmount m:type="Edm.Double">0</d:CustomerTaxAmount>
        <d:InsurancePayAmount m:type="Edm.Double">1373.38000488281</d:InsurancePayAmount>
        <d:InsuranceTaxAmount m:type="Edm.Double">70.2799987792969</d:InsuranceTaxAmount>
        <d:OriginalPayAmount m:type="Edm.Double">1873.38000488281</d:OriginalPayAmount>
        <d:OriginalTaxAmount m:type="Edm.Double">70.2799987792969</d:OriginalTaxAmount>
        <d:Hours m:type="Edm.Double">16.50000029802322</d:Hours>
        <d:PayAmount m:type="Edm.Double">1873.38000488281</d:PayAmount>
        <d:TaxAmount m:type="Edm.Double">70.2799987792969</d:TaxAmount>
      </m:properties>
    </content>
  </entry>
  <entry>
    <id>https://api.repaircenter-uat.mitchell.com:8083/RepairOrder/JobService.svc/Totals(JobId=526,ShopId='1000')</id>
    <title type="text" />
    <updated>2013-08-27T14:16:20Z</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="Total" href="Totals(JobId=526,ShopId='1000')" />
    <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Job" type="application/atom+xml;type=entry" title="Job" href="Totals(JobId=526,ShopId='1000')/Job" />
    <category term="Mitchell.Repair.Services.Data.RepairOrder.JobData.Total" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:JobId m:type="Edm.Int32">526</d:JobId>
        <d:ShopId>1000</d:ShopId>
        <d:AppearanceAllowanceAmount m:type="Edm.Double">0</d:AppearanceAllowanceAmount>
        <d:BettermentAmount m:type="Edm.Double">0</d:BettermentAmount>
        <d:CustomerPayAmount m:type="Edm.Double">542</d:CustomerPayAmount>
        <d:CustomerTaxAmount m:type="Edm.Double">0</d:CustomerTaxAmount>
        <d:InsurancePayAmount m:type="Edm.Double">638.03</d:InsurancePayAmount>
        <d:InsuranceTaxAmount m:type="Edm.Double">48.13</d:InsuranceTaxAmount>
        <d:OriginalPayAmount m:type="Edm.Double">1138.03</d:OriginalPayAmount>
        <d:OriginalTaxAmount m:type="Edm.Double">48.13</d:OriginalTaxAmount>
        <d:Hours m:type="Edm.Double">11.3</d:Hours>
        <d:PayAmount m:type="Edm.Double">1180.03</d:PayAmount>
        <d:TaxAmount m:type="Edm.Double">48.13</d:TaxAmount>
      </m:properties>
    </content>
  </entry>



I want to filter the Property in side this xml any one please help me...
Posted
Comments
ArunRajendra 28-Aug-13 0:10am    
Do you want to extract all m:properties?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900