Thanks alot buddy,
I think this is js script,
I am not that much familiar with xml,
What I have to do is like,
write a script as above,
then including it to my xml page, right?
What I have to do is like, write a script as above, then including it to my xml page, right?
no. that wouldn’t do anything. XML is a data storage format, it doesn’t execute included scripts.
every programming language needs a kind of host (interpreter compiler, application, etc.) to be run. the XML needs to be imported there.
to use another example
Code:
$foo = new SimpleXMLElement("foo");
$xml->root->addChild($foo);
Comment