Hi i'm not sure what i'm doing wrong but i'm sure its simple
, thanks
and the xml is:
, thanks
Code:
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = False
objXML.load (Server.MapPath("sftp.asp"))
IF (objXML.parseError.errorCode <> 0) THEN
ELSE
Set objNode = objXML.SelectSingleNode("/IATA/@iNumber")
If not objNode Is Nothing Then
strUsername = objNode.text
Set objNode = Nothing
End If
END IF
and the xml is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Reservation_Delivery>
<Header>
<Language>ENGLISH</Language>
<IATA>
[b]<iNumber>99986493</iNumber>[/b]
<AgencyName>AUTO-CREATED</AgencyName>
<AgencyAddress1>ADDRESS LINE 1</AgencyAddress1>
<AgencyAddress2>ADDRESS LINE 2</AgencyAddress2>
<AgencyCity>TULSA</AgencyCity>
<AgencyState>OKLAHOMA</AgencyState>
<AgencyCountry>United States</AgencyCountry>
<AgencyPhoneNumer>9999999999</AgencyPhoneNumer>
</IATA>
<CRSID>RK</CRSID>
</Header>
<BookRPInfo>
<PropID>100015</PropID>
...................... etc