Link to home
Start Free TrialLog in
Avatar of chicho12
chicho12

asked on

reading an attribute from an XML

Hi,
How do I read the value of the BookStatusCode  attribute using VB 6 on the XML below.  
This is the code that i have so far for that part:

Dim oXMLDoc          As DOMDocument40
Dim oXMLDomNode      As IXMLDOMNode        
   
Set oXMLDoc = New DOMDocument40
bValidXML = oXMLDoc.loadXML(aRequestXML)


 

******************This is a sample of the XML***************************
<BizTalk>
      <Body>
            <Loan="CONSUMER" schemaVersion="11.0.0" trackingNumber="001500001">
                  <TransferRequest>
                        <BookCode="PENDING" BookStatusCode="INITIATED" classCode="OPEN" >
                              <dateOfLoan>04/03/2006</dateOfLoan>
                                            </BookCode>
                                                                 <CustomerProfile customerRole="APPLICANT" member="TRUE" prefillStatus="SUCCESS" roleConsent="TRUE">
                              <BasicInformation>
                                    <CustomerName>
                                          <IndividualName>
                                                <firstName prefillValue="exmaple">exmaple</firstName>
                                                <lastName prefillValue="exmaple">exmaple</lastName>
                                                <middleName prefillValue="A">A</middleName>
                                          </IndividualName>
                                    </CustomerName>
                              </BasicInformation>
                                                                </CustomerProfile>      
                                                 </TransferRequest>
            </Loan>
                 </Body>
</BizTalk>


Thanks a lot,
Chicho
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chicho12
chicho12

ASKER

It works,

THanks

Chicho