Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey everyone...
I have an xml file containing some functions as CDATA script.
how can I compile such a this files an use the returned values?
is there any c# component or class that I can use ?
in the following u can see an example:

XML
<?xml version="1.0" encoding="utf-8"?>
<XFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	       

Public Const Deg2Rad As Double = Math.PI / 180 
Const Rad2Deg as Double = 180 / PI

Public Function GetXValue(ByVal  R as Double, ByVal phi as Double,alpha as Double) As Double
         
         GetXValue=((R*Math.sin(rad(alpha))*Math.sin(rad(phi)))/Math.sin(rad(180-phi-alpha)))  
End Function

...
...
some data in xml format
...
...

</XFile>
Posted
Updated 26-May-13 21:38pm
v3

1 solution

Try to use solution from this question[^], or to use this project[^] or to google for something else :)
 
Share this answer
 
Comments
keyvan_iau86 27-May-13 7:13am    
hi @skydger.
that question was a kind of helpful :) but I'm still waiting for another helpful solutions ...
Richard MacCutchan 27-May-13 7:51am    
Why not try doing some research for yourself, rather than waiting for a solution? It is no simple matter to convert text to executable code without a compiler, so you need to go and look for the sort of tools that will help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900