Possible to use .net Variable in an XML file?

wxdqz

New Member
Is there any way to use a .net Variable in an xml file, if the page pulling in the xml is a .net page?

Esentially I have my article page and I pull in an xml file and display it on the page. Sort of like using XML as my database or storage mechanism.

Is it possible to call a .net Variable in the XML file and have the Variable show up on the actual .aspx page?

so say I have article.aspx and article_about_nothing.xml

let's say the xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<article>
<title><%=myVariable%></title>
</article>

currently, when I pull in the xml data, and view the page source (after it's rendered) I can find the <%=myVariable%> in the code, but nothing shows up on the page. I've tried adding the variable setting into the xml document and that does not work either. Any help or insight would be greatly appreciated.
 
Back
Top