This context is used to iterate the attributes of a specific XML node.
numero = 286[xmlparse var=xml_var1][include file=example1.xml][/xmlparse]Attributes for the 'CD' node:
[xmlnode ref=xml_var1&path=indexed:1/1][content][/xmlnode]Are...
[xmlnodeattributes ref=xml_var1&path=indexed:1/1][name]=[value][/xmlnodeattributes]Results...Attributes for the 'CD' node:
<CD status="instock" id="123"><TITLE>Empire Burlesque</TITLE><ARTIST>Bob Dylan</ARTIST><COUNTRY>USA</COUNTRY><COMPANY>Columbia</COMPANY><PRICE>10.90</PRICE><YEAR>1985</YEAR></CD>Are... id=123status=instock To simplify the code, we could place the [xmlnodesattributes] context 'inside' of the [xmlnode] context. In this case, we will not need to supply the 'path' or 'ref' parameters to [xmlnodesattributes], since it will use the 'implied' XML node in the outer [xmlnode] context. We use...
[xmlparse var=xml_var1][include file=example1.xml][/xmlparse]Attributes for the 'CD' node:
[xmlnode ref=xml_var1&path=indexed:1/1][content]Are...
[xmlnodeattributes][name]=[value][/xmlnodeattributes][/xmlnode]Results...Attributes for the 'CD' node:
<CD status="instock" id="123"><TITLE>Empire Burlesque</TITLE><ARTIST>Bob Dylan</ARTIST><COUNTRY>USA</COUNTRY><COMPANY>Columbia</COMPANY><PRICE>10.90</PRICE><YEAR>1985</YEAR></CD>Are... id=123status=instock [xmlnodesattributes ref=...&path=...]
[xmlparse var=xml_var1][include file=example1.xml][/xmlparse]
[xmlnode ref=xml_var1&path=indexed:1/1]
[content]
[/xmlnode]
[xmlnodeattributes ref=xml_var1&path=indexed:1/1]
[name]=[value]
[/xmlnodeattributes]
<CD status="instock" id="123">
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
[xmlparse var=xml_var1][include file=example1.xml][/xmlparse]
[xmlnode ref=xml_var1&path=indexed:1/1]
[content]
[xmlnodeattributes]
[name]=[value]
[/xmlnodeattributes]
[/xmlnode]
<CD status="instock" id="123">
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
DOWNLOAD WEBDNA NOW!
...
Tips and TricksA list of user-submitted tips ...
Download WebDNA ApplicationsWebDNA applications...
[biotype]BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...
WebDNA ModulesA list of the currently available modules...
Technical Change HistoryThis Technical Change History provides a reverse chronological list of WebDNA changes...
[JSONstore] stores a multidimentional JSON object into a WebDNA database...
[filecompare]Compares the size...
[input][url]...
[xmlnodes]The behavior of this context is to iterate the child XML nodes of a parent node...
[setheader]Changes header values in a shopping cart...
[convertwords]Changes specified words in a string of text to different words...