Answered
Parsing XML
I have the following XML file that I am trying to parse but I
am having some trouble parsing the children nodes (is that what
they are called?). I can't seem to find the proper syntax to parse
XML children. For example, I want to output all the children nodes
of lineitem1(i.e. skunumber, weight, color, clarity, cut,
clarification.) and lineitem2 (i.e. skunumber, metal, style, size)
and combine them all on one line. I know this is possible and
probably very easy. I am looking for a hint on syntax with using my
XML file below and then I can probably take it from there.
Also, in lineitem1 and lineitem2 there are fields called unitprice. They both have a value. What is the best way to add these two fields together and output just that total number?
I appreciate all help and responses.
Thanks,
Josh
Also, in lineitem1 and lineitem2 there are fields called unitprice. They both have a value. What is the best way to add these two fields together and output just that total number?
I appreciate all help and responses.
Thanks,
Josh