Technical References - [xmlparse]

Enable the WebDNA programmer to input XML data into a WebDNA variable, after which any part of the XML structure can be readily examined using the new WebDNA XML contexts.

numero = 284
interpreted = N
texte = [xmlparse var=...&source=...][/xmlparse] Optional Tag Parameters: var - The variable name you specify to represent the XML parsed object. source - A URL reference to an external XML file. If 'source' is provided, the content between the [xmlparse...] and [/xmlparse] tags is ignored. For example, to parse a sample XML document file example1.xml into a WebDNA variable called 'xml_var1' ... We use the following code...
[xmlparse var=xml_var1][include file=example1.xml][/xmlparse]

the [include] tag was used to place the xml file contents between the xmlparse tags. We could just as easily 'pasted' the xml contents there as well.

Internally, the WebDNA engine 'saves' this parsed instance as an internal variable named 'xml_var1'. This saved instance can then be referenced in the other WebDNA XML contexts.

If the source url in the [xmlparse] context contains an ampersand then you need to [url]...[/url] the 'source' parameter so that any '&' in the query portion of the URL is not interpreted as a WebDNA parameter delimiter.

For example:
[xmlparse var=xml_var1&source=[url]http://www.domain.com?parameter1=1&parameter2=2[/url]][/xmlparse]
[xmlparse var=...&source=...][/xmlparse]

Optional Tag Parameters:

var - The variable name you specify to represent the XML parsed object.

source - A URL reference to an external XML file. If 'source' is provided, the content between the [xmlparse...] and [/xmlparse] tags is ignored.

For example, to parse a sample XML document file example1.xml into a WebDNA variable called 'xml_var1' ...

We use the following code...

[xmlparse var=xml_var1][include file=example1.xml][/xmlparse]

the [include] tag was used to place the xml file contents between the xmlparse tags. We could just as easily 'pasted' the xml contents there as well.


Internally, the WebDNA engine 'saves' this parsed instance as an internal variable named 'xml_var1'. This saved instance can then be referenced in the other WebDNA XML contexts.

If the source url in the [xmlparse] context contains an ampersand then you need to [url]...[/url] the 'source' parameter so that any '&' in the query portion of the URL is not interpreted as a WebDNA parameter delimiter.


For example:
[xmlparse var=xml_var1&source=[url]http://www.domain.com?parameter1=1&parameter2=2[/url]][/xmlparse]

DOWNLOAD WEBDNA NOW!

Top Articles:

Download WebDNA Applications

WebDNA applications...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

WebDNA Modules

A list of the currently available modules...

F.A.Q

A compilation of some user's questions...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Related Readings:

[loop]

Loops through the enclosing text the specified number of times...

[writefile]

[writefile] functions allows you to perform a wide variety of tasks...

[SQL]

Performs a SQL statement on an ODBC data source...

[cookie]

Cookies are a great way to remember visitors...

[shownext]

[shownext] is a special context used to create links (or more accurately...

[listfields]

Lists all the fields in the specified database...