XMLRead

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

CodeFunctionName What is this?

Public

Not Tested

Imported

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 Login

Parameters

byVal xmlfilepath, byVal expression

Examples

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

Permanenet link

Statistics

Views 257

Downloads 113

IDs

CodeID
DB ID

ANmarAmdeen
742
Attachments
Revisions

v1.0

Sunday
November
26
2023