parsing - Is there already a simple language and parser to embed logic within XML? -


i have xml representation of survey rendered on multiple platforms code written in multiple languages. i'd embed simple logic in xml describe how questions should skipped in survey - , possibly more complicated rules later. example, "if answer question 5 'y', skip question 10". embedded language need parsed in multiple languages. there established way or easier create own language , parser?

xml information carrier. decide information, , how break (nested) chunks. isn't proactive in sense.

if want "include" logic in xml control how processed, can pick programming language like, , include chunk of in xml chunk have designated purpose. whatever recipient supposed process xml, can, convention, display pleases, , run code chunk (usually "eval" mechanism, limits choice of language) provide custom behavior.

but there isn't magic.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -