SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to find netcharges from the below xml.

    Hi,

    I am trying to get NetCharges from the below xml with xmldom object; please help me to find out.


    Code XML:
    <v9:RateReplyDetails xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <v9:ServiceType>FIRST_OVERNIGHT</v9:ServiceType> 
      <v9:PackagingType>YOUR_PACKAGING</v9:PackagingType> 
      <v9:DeliveryStation>MMUA</v9:DeliveryStation> 
      <v9:DeliveryDayOfWeek>FRI</v9:DeliveryDayOfWeek> 
      <v9:DeliveryTimestamp>2012-02-24T08:00:00</v9:DeliveryTimestamp> 
    <v9:CommitDetails>
      <v9:ServiceType>FIRST_OVERNIGHT</v9:ServiceType> 
      <v9:CommitTimestamp>2012-02-24T08:00:00</v9:CommitTimestamp> 
      <v9:DayOfWeek>FRI</v9:DayOfWeek> 
      <v9:DestinationServiceArea>A1</v9:DestinationServiceArea> 
      <v9:BrokerToDestinationDays>0</v9:BrokerToDestinationDays> 
      <v9:DocumentContent>NON_DOCUMENTS</v9:DocumentContent> 
      </v9:CommitDetails>
      <v9:DestinationAirportId>EWR</v9:DestinationAirportId> 
      <v9:IneligibleForMoneyBackGuarantee>false</v9:IneligibleForMoneyBackGuarantee> 
      <v9:OriginServiceArea>A1</v9:OriginServiceArea> 
      <v9:DestinationServiceArea>A1</v9:DestinationServiceArea> 
      <v9:SignatureOption>ADULT</v9:SignatureOption> 
      <v9:ActualRateType>PAYOR_ACCOUNT_PACKAGE</v9:ActualRateType> 
    <v9:RatedShipmentDetails>
    <v9:EffectiveNetDiscount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:EffectiveNetDiscount>
    <v9:ShipmentRateDetail>
      <v9:RateType>PAYOR_ACCOUNT_PACKAGE</v9:RateType> 
      <v9:RateScale>6</v9:RateScale> 
      <v9:RateZone>2</v9:RateZone> 
      <v9:PricingCode>PACKAGE</v9:PricingCode> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
      <v9:DimDivisor>0</v9:DimDivisor> 
      <v9:FuelSurchargePercent>16.5</v9:FuelSurchargePercent> 
    <v9:TotalBillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:TotalBillingWeight>
    <v9:TotalBaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalBaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    <v9:TotalNetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalNetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:TotalNetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetFedExCharge>
    <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    <v9:TotalNetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:ShipmentRateDetail>
    <v9:RatedPackages>
      <v9:GroupNumber>0</v9:GroupNumber> 
    <v9:EffectiveNetDiscount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:EffectiveNetDiscount>
    <v9:PackageRateDetail>
      <v9:RateType>PAYOR_ACCOUNT_PACKAGE</v9:RateType> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
    <v9:BillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:BillingWeight>
    <v9:BaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:BaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    <v9:NetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:NetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:NetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetFedExCharge>
    - <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    - <v9:NetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:PackageRateDetail>
      </v9:RatedPackages>
      </v9:RatedShipmentDetails>
    <v9:RatedShipmentDetails>
    <v9:EffectiveNetDiscount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:EffectiveNetDiscount>
    <v9:ShipmentRateDetail>
      <v9:RateType>RATED_ACCOUNT_PACKAGE</v9:RateType> 
      <v9:RateScale>6</v9:RateScale> 
      <v9:RateZone>2</v9:RateZone> 
      <v9:PricingCode>PACKAGE</v9:PricingCode> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
      <v9:DimDivisor>0</v9:DimDivisor> 
      <v9:FuelSurchargePercent>16.5</v9:FuelSurchargePercent> 
    <v9:TotalBillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:TotalBillingWeight>
    - <v9:TotalBaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalBaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    <v9:TotalNetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalNetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:TotalNetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetFedExCharge>
    <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    <v9:TotalNetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:ShipmentRateDetail>
    <v9:RatedPackages>
      <v9:GroupNumber>0</v9:GroupNumber> 
    <v9:EffectiveNetDiscount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:EffectiveNetDiscount>
    - <v9:PackageRateDetail>
      <v9:RateType>RATED_ACCOUNT_PACKAGE</v9:RateType> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
    <v9:BillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:BillingWeight>
    <v9:BaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:BaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    <v9:NetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:NetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:NetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetFedExCharge>
    <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    <v9:NetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:PackageRateDetail>
      </v9:RatedPackages>
      </v9:RatedShipmentDetails>
    <v9:RatedShipmentDetails>
    <v9:ShipmentRateDetail>
      <v9:RateType>PAYOR_LIST_PACKAGE</v9:RateType> 
      <v9:RateScale>6</v9:RateScale> 
      <v9:RateZone>2</v9:RateZone> 
      <v9:PricingCode>PACKAGE</v9:PricingCode> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
      <v9:DimDivisor>0</v9:DimDivisor> 
      <v9:FuelSurchargePercent>16.5</v9:FuelSurchargePercent> 
    <v9:TotalBillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:TotalBillingWeight>
    <v9:TotalBaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalBaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    <v9:TotalNetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalNetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:TotalNetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetFedExCharge>
    <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    <v9:TotalNetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:ShipmentRateDetail>
    <v9:RatedPackages>
      <v9:GroupNumber>0</v9:GroupNumber> 
    <v9:PackageRateDetail>
      <v9:RateType>PAYOR_LIST_PACKAGE</v9:RateType> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
    <v9:BillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:BillingWeight>
    <v9:BaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:BaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    <v9:NetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:NetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:NetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetFedExCharge>
    <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    <v9:NetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:PackageRateDetail>
      </v9:RatedPackages>
      </v9:RatedShipmentDetails>
    <v9:RatedShipmentDetails>
    <v9:ShipmentRateDetail>
      <v9:RateType>RATED_LIST_PACKAGE</v9:RateType> 
      <v9:RateScale>6</v9:RateScale> 
      <v9:RateZone>2</v9:RateZone> 
      <v9:PricingCode>PACKAGE</v9:PricingCode> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
      <v9:DimDivisor>0</v9:DimDivisor> 
      <v9:FuelSurchargePercent>16.5</v9:FuelSurchargePercent> 
    <v9:TotalBillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:TotalBillingWeight>
    <v9:TotalBaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalBaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    - <v9:TotalNetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:TotalNetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:TotalNetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetFedExCharge>
    <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    <v9:TotalNetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:TotalNetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:ShipmentRateDetail>
    <v9:RatedPackages>
      <v9:GroupNumber>0</v9:GroupNumber> 
    <v9:PackageRateDetail>
      <v9:RateType>RATED_LIST_PACKAGE</v9:RateType> 
      <v9:RatedWeightMethod>ACTUAL</v9:RatedWeightMethod> 
    <v9:BillingWeight>
      <v9:Units>LB</v9:Units> 
      <v9:Value>10.0</v9:Value> 
      </v9:BillingWeight>
    <v9:BaseCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:BaseCharge>
    <v9:TotalFreightDiscounts>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalFreightDiscounts>
    <v9:NetFreight>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>59.25</v9:Amount> 
      </v9:NetFreight>
    <v9:TotalSurcharges>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>14.28</v9:Amount> 
      </v9:TotalSurcharges>
    <v9:NetFedExCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetFedExCharge>
    <v9:TotalTaxes>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalTaxes>
    <v9:NetCharge>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>73.53</v9:Amount> 
      </v9:NetCharge>
    <v9:TotalRebates>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>0.0</v9:Amount> 
      </v9:TotalRebates>
    <v9:Surcharges>
      <v9:SurchargeType>SIGNATURE_OPTION</v9:SurchargeType> 
      <v9:Description>Adult signature required</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>4.5</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
    <v9:Surcharges>
      <v9:SurchargeType>FUEL</v9:SurchargeType> 
      <v9:Description>Fuel</v9:Description> 
    <v9:Amount>
      <v9:Currency>USD</v9:Currency> 
      <v9:Amount>9.78</v9:Amount> 
      </v9:Amount>
      </v9:Surcharges>
      </v9:PackageRateDetail>
      </v9:RatedPackages>
      </v9:RatedShipmentDetails>
      </v9:RateReplyDetails>

    I am getting other tags like <v9:ServiceType>, but not getting the <v9:NetCharge>,<v9:Amount>
    Please provide me the solution.

  2. #2
    SitePoint Guru
    Join Date
    Jun 2007
    Posts
    690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    where is the code you have tried ? We may be able to help fix your code problems but nobody wants to do your work for you.

  3. #3
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry i forgot to paste my code, here is the code.

    Set NodeList = objDoc.getElementsByTagName("v9:RateReplyDetails")
    set ElemServiceType = objDoc.getElementsByTagName("v9:RateReplyDetails/v9:ServiceType")
    set ElemDate= objDoc.getElementsByTagName("v9:RateReplyDetails/v9eliveryTimestamp")
    set ElemAmount = objDoc.getElementsByTagName("v9:RateReplyDetails/v9:RatedShipmentDetails/v9:ShipmentRateDetail/v9:TotalNetCharge/v9:Amount")

    For i=0 To (NodeList.length -1)
    Response.Write "Service Type :" & (ElemServiceType.item(i).Text) & "<br>"
    Response.Write "DateTime : " &(ElemDate.item(i).Text) & "<br>"
    Response.Write "Amount : " &(ElemAmount.item(i).Text) & "<br>"
    next

    With this i am getting exact service type but getting same NetCharges for all service type.

  4. #4
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With the above code i am getting below output;
    ------------------------------------------
    Service Type :FIRST_OVERNIGHT
    DateTime : 2012-02-29T08:00:00
    Amount : 73.53

    Service Type :PRIORITY_OVERNIGHT
    DateTime : 2012-02-29T10:30:00
    Amount : 73.53

    Service Type :STANDARD_OVERNIGHT
    DateTime : 2012-02-29T15:00:00
    Amount : 73.53

    Service Type :FEDEX_2_DAY
    DateTime : 2012-03-01T16:30:00
    Amount : 73.53

    Service Type :FEDEX_EXPRESS_SAVER
    DateTime : 2012-03-02T16:30:00
    Amount : 61.0

    Service Type :FEDEX_GROUND

    Microsoft VBScript runtime error '800a01a8'

    Object required: '[object]'

    /FedExCall.asp, line 122
    ------------------------------------------

    As per my requirement amount is not changing for service types, for ex. Service Type :FIRST_OVERNIGHT- Amount : 73.53 is showing correct but for second Service Type :PRIORITY_OVERNIGHT amount should be 61.0
    And at last m getting error like

    Microsoft VBScript runtime error '800a01a8'

    Object required: '[object]'

    /FedExCall.asp, line 122

    Why i am getting this kind of error?

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There seems to be different types of packages, for a single service type? I think when you select the Amount, you should specify the kind of package type you are looking for:

    instead of :
    Code:
    set ElemAmount = objDoc.getElementsByTagName("v9:RateReplyDetails/v9:RatedShipmentDetails/v9:ShipmentRateDetail/v9:TotalNetCharge/v9:Amount")
    You could try:
    Code:
    set ElemAmount = objDoc.selectSingleNode("v9:RateReplyDetails/v9:RatedShipmentDetails/v9:ShipmentRateDetail[@v9:RateType='PAYOR_ACCOUNT_PACKAGE']/v9:TotalNetCharge/v9:Amount")
    ie: If "'PAYOR_ACCOUNT_PACKAGE'" is the one you are looking for. Otherwise change the package type.

    About the VBScript error you are getting, cannot recreate that one. That's not the whole xml file, is it, as it has only "FIRST_OVERNIGHT" as the service type ..

  6. #6
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay,think you should look for the ActualRateType.

    Code:
    Set NodeList = objDoc.getElementsByTagName("v9:RateReplyDetails")
    set ElemServiceType = objDoc.getElementsByTagName("v9:RateReplyDetails/v9:ServiceType")
    set ElemDate= objDoc.getElementsByTagName("v9:RateReplyDetails/v9:DeliveryTimestamp")
    set ActualRateType=objDoc.selectSingleNode("v9:RateReplyDetails/v9:ActualRateType")
    set ElemAmount = objDoc.getElementsByTagName("v9:RateReplyDetails/v9:RatedShipmentDetails/v9:ShipmentRateDetail[v9:RateType='"&ActualRateType.text&"']/v9:TotalNetCharge/v9:Amount")
    
    For i=0 To (NodeList.length -1)
        Response.Write "Service Type :" & (ElemServiceType.item(i).Text) & "<br>"
        Response.Write "DateTime : " &(ElemDate.item(i).Text) & "<br>"
        Response.Write "Amount : " &(ElemAmount.item(i).Text) & "<br>"
    next


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •