469,344 Members | 5,413 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

xml parser - write into XML

Hi all,

I am trying to read and write an XMl thro HTML.

I am first loading the file in IE and then reading the XML and updating HTML thro getmessage()

document.getElementById("to").innerHTML=
xmlDoc.getElementsByTagName("to")[0].childNodes[0].nodeValue ;

I am not sure how to write the XML through HTML.

alternately even if anyone can help me to update an xml with the given string thro a C++ prog, that would be extremely helpful.

thanks in advance,

utkarsh.
Mar 1 '07 #1
4 1583
dorinbogdan
839 Expert 512MB
To create/add nodes to XML document see this link,
that is part of an XML DOM simple tutorial.
Having this technology, you should not need C++ to edit XML files, but if really required, try to post the question on the C++ forum too.
Mar 2 '07 #2
To create/add nodes to XML document see this link,
that is part of an XML DOM simple tutorial.
Having this technology, you should not need C++ to edit XML files, but if really required, try to post the question on the C++ forum too.

Thank you very much for the reply...that DOM tutorial did help a lot..

here i have one query ....using functions like insertdata in XML DOM ....i am able to change text in the node ....also i can create additional nodes, update etc...but how can i make sure that the changes are reflected in the original xml file too...something like serialization in Java...
Mar 8 '07 #3
dorinbogdan
839 Expert 512MB
On client-side you are able to save data only from IExplorer, using FileSystemObject, but it is not cross-browser.
So, you should write the changes on the server using server-side code (ASP, PHP...).
Ajax is a powerful and simple technology to transfer data between client and server.
Also see Using XML in requests and responses using Ajax.
Mar 8 '07 #4
dorinbogdan
839 Expert 512MB
Hi,
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Thanks,
Dorin.
Mar 21 '07 #5

Post your reply

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

Similar topics

2 posts views Thread by anton muhin | last post: by
4 posts views Thread by annoyingmouse2002 | last post: by
16 posts views Thread by Mike | last post: by
5 posts views Thread by Bill Cunningham | last post: by
14 posts views Thread by WUV999U | last post: by
4 posts views Thread by siddharthkhare | last post: by
6 posts views Thread by mahesh.kanakaraj | last post: by
28 posts views Thread by Marc Gravell | last post: by
1 post views Thread by Peter Ammon | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.