468,512 Members | 1,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

how to bind data with xml?

Can be do insert, update del kind of operation on xml file?
How to run it?
Nov 9 '12 #1
9 1847
Dormilich
8,651 Expert Mod 8TB
How to run it?
with a programme/script that can handle XML, as XML itself is just a data storage container.
Nov 9 '12 #2
Can you please give me example, or link to it?
Nov 9 '12 #3
Dormilich
8,651 Expert Mod 8TB
sure
Expand|Select|Wrap|Line Numbers
  1. // insert a node
  2. var foo = document.createElement("foo");
  3. xml.documentElement.appendChild(foo);
Nov 9 '12 #4
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?
Nov 10 '12 #5
Dormilich
8,651 Expert Mod 8TB
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
Expand|Select|Wrap|Line Numbers
  1. $foo = new SimpleXMLElement("foo");
  2. $xml->root->addChild($foo);
Nov 10 '12 #6
how can i run these program?
Nov 10 '12 #7
Dormilich
8,651 Expert Mod 8TB
with the appropriate environment.
Nov 11 '12 #8
Please explain it...
Nov 11 '12 #9
Dormilich
8,651 Expert Mod 8TB
you can’t run PHP code without the PHP interpreter.
Nov 12 '12 #10

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Kobe | last post: by
3 posts views Thread by vineetbatta | last post: by
5 posts views Thread by Ahmed Osama | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.