Hi folks
I want to read a xml file and then write the contents to a text file
23 8238
Using what language? Java, C#, VB?
Using what language? Java, C#, VB?
using java
Or, can use this simpler method to write to text file.
Thanks a lot..
I understand that you found the answer.
So, I'll close the thread.
I re-open the thread in order to allow further comments or suggestions from other members or experts, as per adim request.
Hello,
I am looking for the opposite function - read/open a text file and write/save to an XML with php. Anyone have any info on how to do this? thanks
- abtet -
Client-side JavaScript does *not* have access to the
client file system. ActiveX, under certain conditions (relaxed security
environment) has access to the client file system (using FileSystemObject for IExplorer only).
The same thing applies to XML files. Regularly, you cannot save them on client.
The best solution would be to handle the files on server, using XMLDOM object like this example.
Client-side JavaScript does *not* have access to the
client file system. ActiveX, under certain conditions (relaxed security
environment) has access to the client file system (using FileSystemObject for IExplorer only).
The same thing applies to XML files. Regularly, you cannot save them on client.
The best solution would be to handle the files on server, using XMLDOM object like this example.
Thank you.
I have seen this code .
can u give me some other link for this question.
Then it is good to me to understanding.
I'm not sure what is your requirement, please give more details about this.
Do you need that server-script written in Javascript, instead of ASP?
I'm not sure what is your requirement, please give more details about this.
Do you need that server-script written in Javascript, instead of ASP?
Yes
I need that server-script written in Javascript?
Yes
I need that server-script written in Javascript?
Is this a question or answer to my previous question?
You must use an asp file starting with - <%@ LANGUAGE="JavaScript" %>
Then just update that code to use JavaScript intead of VBScript.
Please let me know if you need any syntax help.
Is this a question or answer to my previous question?
hi
sorry for late reply.
i am giving you answer of your previous question.
hi
sorry for late reply.
i am giving you answer of your previous question.
hi
And in your second reply i am not getting.
Thanks
I want it in C# way of parsing XML file and writing it to in text file.......
I want it in C# way of parsing XML file and writing it to in text file.......
Welcome!
Use XMLDocument to read XML files, like this article.
And one method to write text files here.
Hi,
I am loading a xml file using javascript in Pocket Internet Explorer for local HTML file. I am not able to save the xml file back to the PPC device. -
foodXML = new ActiveXObject("Msxml2.DOMDocument");
-
newElement = foodXML.createElement(textstr);
-
foodXML.appendChild(newElement);
-
foodXML.save("test.xml");
Please help me to save xml file to local folder using javascript.
Thanks
Jaikant
how to read a xml file and write it in to a html file using c#
Jack,
Please refer to your thread posted here for more help on this topic.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Santah |
last post by:
hi
I'm new to C++
and I'm currently working on Visual C++ 6.0
I'm trying to open a text file, and read some data from it
part of the text file looks like this:
--------
|
by: Foxy Kav |
last post by:
Hi, another question from me again, i was just wondering if anyone
could give me a quick example of reading data from a file then placing
the data into an array for some manipulation then reading...
|
by: googler |
last post by:
I'm trying to read from an input text file and print it out. I can do
this by reading each character, but I want to implement it in a more
efficient way. So I thought my program should read one...
|
by: Michael McGarry |
last post by:
Hi,
I am reading strings from a text file using fscanf("%s", currToken);
This returns strings delimited by whitespace. How can I tell if the
string was followed by a carriage return in the...
|
by: SteMc |
last post by:
today I tackled, for the first time, opening and reading from a text
file.
Following the example on the MSDN and declared a variable, strline as a
string and objstreamreader as a streamreader.
...
|
by: bienwell |
last post by:
Hi all,
Do you have any source code to import data from Excel file or text file into
database in ASP.NET program ? Please give me your reference if you have.
Thanks in advance
|
by: pappu |
last post by:
Hello friends,
I want to convert .xls file into text file.So can anybody pls
help me out.
Thxxxxxx,
Sachin.
|
by: manigattani |
last post by:
Please let me know of some java code for converting dbf file to text file
|
by: LakshmiE |
last post by:
Hi,
Can any one help me by providing me the VB code to convert binary file to text file. The extension of the binary file i have is ".ST5". This is not in the readable format. i want to read...
|
by: minhtran |
last post by:
Hi all
Anyone has any idea how to get a Excel header column in VB.NET. Please, help me. Thank you so much in advance
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
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,...
| |