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(aRequestXM L)
******************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</da teOfLoan>
</BookCode>
<CustomerProfile customerRole="APPLICANT" member="TRUE" prefillStatus="SUCCESS" roleConsent="TRUE">
<BasicInformation>
<CustomerName>
<IndividualName>
<firstName prefillValue="exmaple">exm aple</firs tName>
<lastName prefillValue="exmaple">exm aple</last Name>
<middleName prefillValue="A">A</middle Name>
</IndividualName>
</CustomerName>
</BasicInformation>
</CustomerProfile>
</TransferRequest>
</Loan>
</Body>
</BizTalk>
Thanks a lot,
Chicho
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(aRequestXM
******************This is a sample of the XML***********************
<BizTalk>
<Body>
<Loan="CONSUMER" schemaVersion="11.0.0" trackingNumber="001500001"
<TransferRequest>
<BookCode="PENDING" BookStatusCode="INITIATED"
<dateOfLoan>04/03/2006</da
</BookCode>
<CustomerProfile customerRole="APPLICANT" member="TRUE" prefillStatus="SUCCESS" roleConsent="TRUE">
<BasicInformation>
<CustomerName>
<IndividualName>
<firstName prefillValue="exmaple">exm
<lastName prefillValue="exmaple">exm
<middleName prefillValue="A">A</middle
</IndividualName>
</CustomerName>
</BasicInformation>
</CustomerProfile>
</TransferRequest>
</Loan>
</Body>
</BizTalk>
Thanks a lot,
Chicho
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
THanks
Chicho