Returns array of values by an XML expression from XML file.
Xmlfilepath is the absolute path to an XML file.
expression is a valid node path or xml query in the specified XML file.
strXMLPath = Server.Mappath("/aspemporium/examples/xmlcatalog/database.xml")
strXMLExpression = "/CATALOG/MOVIE[RUNNINGTIME $gt$ 100]/RATING | /CATALOG/MOVIE[RUNNINGTIME $gt$ 100]/TITLE"
a = XMLRead( strXMLPath, strXMLExpression )
for i = 0 to ubound(a) - 1
Response.Write a(i) & "
"
next
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Bold.codes
Linkedin LoginbyVal xmlfilepath, byVal expression
dim i, a, strXMLPath, strXMLExpression
strXMLPath = Server.Mappath("/aspemporium/examples/xmlcatalog/database.xml")
strXMLExpression = "/CATALOG/MOVIE[RUNNINGTIME $gt$ 100]/RATING | /CATALOG/MOVIE[RUNNINGTIME $gt$ 100]/TITLE"
a = XMLRead( strXMLPath, strXMLExpression )
for i = 0 to ubound(a) - 1
Response.Write a(i) & "<BR>"
next
strXMLPath = Server.Mappath("/aspemporium/examples/xmlcatalog/database.xml")
strXMLExpression = "/CATALOG/MOVIE[RUNNINGTIME $gt$ 100]/RATING | /CATALOG/MOVIE[RUNNINGTIME $gt$ 100]/TITLE"
a = XMLRead( strXMLPath, strXMLExpression )
for i = 0 to ubound(a) - 1
Response.Write a(i) & "<BR>"
next
Views 257
Downloads 113
CodeID
DB ID
ANmarAmdeen
701
Revisions
v1.0
Sunday
November
26
2023