473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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 1806
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

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

Similar topics

2
by: anton muhin | last post by:
Hello, everybody! Can someone give an overview of existing Python parser generators? I played with TPG and like it a lot. However, I'd like to know more about alternatives. Google shows...
4
by: annoyingmouse2002 | last post by:
Hi there, sorry if this a long post but I'm really just starting out. I've been using MSXML to parse an OWL but would like to use a different solution. Basically it reads the OWL (Based on XML)...
16
by: Mike | last post by:
Does anyone know of a minimal/mini/tiny/small xml parser in c? I'm looking for something small that accepts a stream or string, builds a c structure, and then returns an opaque pointer to that...
5
by: Bill Cunningham | last post by:
In comp.programming I asked for advice for writing a parser. The code someone showed me wouldn't compile. I don't know what's wrong. I just want to write the simpliest of parsers. int...
14
by: WUV999U | last post by:
Hi I am fairly familiar in C but not much. I want to know how I can write a html parser in C that only parses for the image file in the html file and display or print all the images found in...
4
by: siddharthkhare | last post by:
Hi All, I need to parse certain text from a paragraph (like 20 lines). I know the exact tags that I am looking for. my approach is to define a xml (config) file that defines what tag I am...
6
by: mahesh.kanakaraj | last post by:
Hi Folks, This is my first post to this group, and I really am not sure whether this is the right group to ask my question. If its not an appropriate question to this group, please correct me...
28
by: Marc Gravell | last post by:
In Linq, you can apparently get a meaningful body from and expression's .ToString(); random question - does anybody know if linq also includes a parser? It just seemed it might be a handy way to...
6
by: Herby | last post by:
Hi, Im interested in Reverse Engineering C++ source code into a form more comprehensible than the source itself. I want to write a basic one myself, obviously i need to write a parser for the...
1
by: Peter Ammon | last post by:
I was watching a video about a new C front end for the LLVM C compiler (on youtube, of all places), and the author made an interesting claim: that writing a C preprocessor is much harder, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.