Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confused about xml parsing 1

Status
Not open for further replies.

petermeachem

Programmer
Aug 26, 2000
2,270
GB
Totally confused actually.
This is part of an Access programme that reads vehicle data. I have got as far as getting the data back for one vehicle (which was actually fairly painless), part of which looks like this
Code:
        <EnquiryResponse>
            <RequestResults>
                <Asset>
                    <AssetIdentification>
                        <Vrm>MER280V</Vrm>
                        <Vin>XL2W2696342A</Vin>
                    </AssetIdentification>
                    <AssetConfirmation>
                        <Description>VIN/VRM Combination is Confirmed</Description>
                    </AssetConfirmation>
                    <DVLA>
                        <Make>
                            <Code>A8</Code>
                            <Description>AUSTIN MORRIS</Description>
                        </Make>
                        <Model>
                            <Code>006</Code>
                            <Description>MINI 1000</Description>
                        </Model>
                        <Body>
                            <Code>01</Code>
                            <Description>2 Door Saloon</Description>
                            <Colour>

What I need from this is things like the make is 'AUSTIN MORRIS' and the model is 'MINI 1000'

I have spent a considerable amount of time on this without really getting anywhere. What is the easiest way of doing this without actually spending ages learning about xml.
I have a feeling the answer is going to be something really obvious that I just haven't spotted.
Thank you.
 
>This is part of an Access programme...
This is the xpath and property to get them.

xpath: [tt]"/EnquiryResponse/RequestResults/Asset/DVLA/Make/Description"[/tt]
property: text or data

xpath: [tt]"/EnquiryResponse/RequestResults/Asset/DVLA/Model/Description"[/tt]
property: text or data

Otherwise, you have to post relevant info on the enviromentm, media the document is retrieved and in what form, what service you're using to read the document...
 
Thanks for that, you set me off on the right path (xml joke forsooth).
Easy when you know how.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top