[WebDNA] XML Parse

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104356
interpreted = N
texte = Using WebDNA, I want to be able to save RatingServiceSelectionResponse --> RatedShipment --> TotalCharges --> MonetaryValue --> value into a variable. Something like: [showif RatingServiceSelectionResponse -->RatedShipment --> Service --> Cod= e=3D03] [text show=3Df]GroundCharges=3DRatingServiceSelectionResponse --> RatedShipment --> TotalCharges --> MonetaryValue --> value [/text] [/showif] [showif RatingServiceSelectionResponse -->RatedShipment --> Service --> Cod= e=3D01] [text show=3Df]NextDayCharges=3DRatingServiceSelectionResponse --> RatedShipment --> TotalCharges --> MonetaryValue --> value [/text] [/showif] Of course, the value that is stored in GroundCharges would have to be the MonetaryValue in the node that has Service --> Code =3D 03. I'm sure it's possible, but I'm not sure how to code it. Anyone know how to do this? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBEGIN XML=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Rating and Service1.01Success03Your invoice may vary from the displayed reference ratesLBS2.0USD5.22<= /TransportationCharges>USD0.00USD5.22USD5.22U= SD0.00USD5.222.0LBS2.012Your invoice may vary from the displayed reference ratesLBS2.0USD6.69<= /TransportationCharges>USD0.00USD6.693USD6.69USD0.00USD<= MonetaryValue>6.692.0LBS2.0= 59Your invoice may vary from the displayed reference ratesLBS2.0USD13.00= USD0.00USD13.00210:30 A.M.USD13.00USD0.00U= SD13.002.0LBS2.0= 02Your invoice may vary from the displayed reference ratesLBS2.0USD11.18= USD0.00USD11.182USD11.18USD0.00USD11.182.0LBS2.0= 13Your invoice may vary from the displayed reference ratesLBS2.0USD18.46= USD0.00USD18.4613:00 P.M.USD18.46USD0.00U= SD18.462.0LBS2.0= 14Your invoice may vary from the displayed reference ratesLBS2.0USD53.93= USD0.00USD53.9318:00 A.M.USD53.93USD0.00U= SD53.932.0LBS2.0= 01Your invoice may vary from the displayed reference ratesLBS2.0USD20.76= USD0.00USD20.76110:30 A.M.USD20.76USD0.00U= SD20.762.0LBS2.0= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEND XML=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] XML Parser (Michael Davis 2016)
  2. Re: [WebDNA] XML Parser (christophe.billiottet@webdna.us 2016)
  3. Re: [WebDNA] XML Parser (Donovan Brooke 2016)
  4. Re: [WebDNA] XML Parser ("Gary Krockover" 2016)
  5. Re: [WebDNA] XML Parser (Tom Duke 2016)
  6. [WebDNA] XML Parser ("Gary Krockover" 2016)
  7. [WebDNA] XML Parse ("Ki Song - Knifecenter.com" 2010)
Using WebDNA, I want to be able to save RatingServiceSelectionResponse --> RatedShipment --> TotalCharges --> MonetaryValue --> value into a variable. Something like: [showif RatingServiceSelectionResponse -->RatedShipment --> Service --> Cod= e=3D03] [text show=3Df]GroundCharges=3DRatingServiceSelectionResponse --> RatedShipment --> TotalCharges --> MonetaryValue --> value [/text] [/showif] [showif RatingServiceSelectionResponse -->RatedShipment --> Service --> Cod= e=3D01] [text show=3Df]NextDayCharges=3DRatingServiceSelectionResponse --> RatedShipment --> TotalCharges --> MonetaryValue --> value [/text] [/showif] Of course, the value that is stored in GroundCharges would have to be the MonetaryValue in the node that has Service --> Code =3D 03. I'm sure it's possible, but I'm not sure how to code it. Anyone know how to do this? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DBEGIN XML=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Rating and Service1.01Success03
Your invoice may vary from the displayed reference ratesLBS2.0USD5.22<= /TransportationCharges>USD0.00USD5.22USD5.22U= SD0.00USD5.222.0LBS2.012Your invoice may vary from the displayed reference ratesLBS2.0USD6.69<= /TransportationCharges>USD0.00USD6.693USD6.69USD0.00USD<= MonetaryValue>6.692.0LBS2.0= 59Your invoice may vary from the displayed reference ratesLBS2.0USD13.00= USD0.00USD13.00210:30 A.M.USD13.00USD0.00U= SD13.002.0LBS2.0= 02Your invoice may vary from the displayed reference ratesLBS2.0USD11.18= USD0.00USD11.182USD11.18USD0.00USD11.182.0LBS2.0= 13Your invoice may vary from the displayed reference ratesLBS2.0USD18.46= USD0.00USD18.4613:00 P.M.USD18.46USD0.00U= SD18.462.0LBS2.0= 14Your invoice may vary from the displayed reference ratesLBS2.0USD53.93= USD0.00USD53.9318:00 A.M.USD53.93USD0.00U= SD53.932.0LBS2.0= 01Your invoice may vary from the displayed reference ratesLBS2.0USD20.76= USD0.00USD20.76110:30 A.M.USD20.76USD0.00U= SD20.762.0LBS2.0= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEND XML=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D "Ki Song - Knifecenter.com"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Orderfile context problem (1998) Where can I get 'ssh'? (was: WebCatalog on Linux/MacOSX/etc) (2000) Help formatting search results w/ table (1997) More on the email templates (1997) Server slowing down. (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) WebCat Sites Hanging (!) (2003) Serving images from databases (1998) WebCat2 beta 11 - new prefs ... (1997) mac hack (1997) Sorting like UBB (2003) ShowNext Command (1997) Price lookup problem - was Cart questions (1997) emailer (1997) Searchable list archive (1997) Format all of a sudden doesn't work (1997) Help! WebCat2 bug (1997) [WebDNA] Competitors! (2008) RE: type 2 errors with ssl server (1997) Searchable WebCat (etc.) Docs ? (1997)