XML with replaceable PHP variables -


i have question regarding use of xml. using xml data storage repositiory. wanted use xml store sentences variables, inside elements variables (php) replaced later on php values/variables once retrieved.

i wondering whether correct use of xml dynamic variable? or there option store kind of data?

below example:

<argument-scheme         xmlns:xsi="http://www.w3.org/2001/xmlschema"     xmlns:schemalocation="g:\easyphp-devserver-14.1vc11\data\localweb\argupedia\frontend\arg-scheme-repository\arg-scheme.xsd"     id='0'     name='argument sign' >     <premise> $paramarray[0] true in situation.</premise>     <premise> $paramarray[1] indicated true when sign, $paramarray[0] true, in kind of situation."</premise>     <conclusion>therefore, $paramarray[1] true in situation.</conclusion>     <critical-question>"is correlation between " . $paramarray[0] .  " , " . $paramarray[1] . "strong?"</critical-question>     <critical-question>is $paramarray[0] event reliably account $paramarray[1] ?</critical-question>     <param-name>sign</param-name>     <param-name>conclusion</param-name>     <param-question>what observation?</param-question>     <param-question>what conclusion can drawn observation</param-question> </argument-scheme> 

here example of how xml used:

  1. first, $paramarray[0] 'dog hates cats' inputted , retrieved client.
  2. second, using above argument scheme xml stored on server, retrieve 1st premise: "$paramarray[0] true in situation".
  3. third, want compose premise in php: 'dog hates cat true in situation' replacing '$paramarray[0]' in xml user input $paramarray[0] = 'dog hates cat' using php regex.
  4. finally want send 'dog hates cat true in situation'from php user.


Comments

Popular posts from this blog

ios - UITEXTFIELD InputView Uipicker not working in swift -

Hatching array of circles in AutoCAD using c# -