473,378 Members | 1,360 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,378 software developers and data experts.

read xml

How do I read this XML? I have a page with text boxes that i want to read
these values in.
<TranslationRecords>

<TranslationRecord TrxID="1">

<ParameterCollection>

<Parameter KeyName="FielDelimiterChar" KeyValue="29" />

<Parameter KeyName="SegmentDelimiterChar" KeyValue="30" />

</ParameterCollection>

</TranslationRecord>

</TranslationRecords>

Thanks
Nov 18 '05 #1
3 1323
Use the XMLDocument in the System.XML namespace.
<jo*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
How do I read this XML? I have a page with text boxes that i want to read
these values in.
<TranslationRecords>

<TranslationRecord TrxID="1">

<ParameterCollection>

<Parameter KeyName="FielDelimiterChar" KeyValue="29" />

<Parameter KeyName="SegmentDelimiterChar" KeyValue="30" />

</ParameterCollection>

</TranslationRecord>

</TranslationRecords>

Thanks

Nov 18 '05 #2
I know but I have a hard time to read the attributes that are the same.
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Use the XMLDocument in the System.XML namespace.
<jo*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
How do I read this XML? I have a page with text boxes that i want to read these values in.
<TranslationRecords>

<TranslationRecord TrxID="1">

<ParameterCollection>

<Parameter KeyName="FielDelimiterChar" KeyValue="29" />

<Parameter KeyName="SegmentDelimiterChar" KeyValue="30" />

</ParameterCollection>

</TranslationRecord>

</TranslationRecords>

Thanks


Nov 18 '05 #3
There are several different ways to read attributes from XML. You should
direct this post to an XML newsgroup.
<jo*****@hotmail.com> wrote in message
news:O%****************@TK2MSFTNGP11.phx.gbl...
I know but I have a hard time to read the attributes that are the same.
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Use the XMLDocument in the System.XML namespace.
<jo*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
How do I read this XML? I have a page with text boxes that i want to read these values in.
<TranslationRecords>

<TranslationRecord TrxID="1">

<ParameterCollection>

<Parameter KeyName="FielDelimiterChar" KeyValue="29" />

<Parameter KeyName="SegmentDelimiterChar" KeyValue="30" />

</ParameterCollection>

</TranslationRecord>

</TranslationRecords>

Thanks



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gunnar | last post by:
Hello, I've just written a CPP program that reads integers from a binary file, and used this code while (my_ifstram.read( (char* ) &number, sizeof(int)) { // do something with number } My...
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
12
by: Steven T. Hatton | last post by:
I know of a least one person who believes std::ifstream::read() and std::ofstream::write() are "mistakes". They seem to do the job I want done. What's wrong with them. This is the code I...
2
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing...
4
by: Ollie Cook | last post by:
Hi, I am having some difficulty with read(2) and interrupting signals. I expect I am misunderstanding how the two work together, so would appreciate some guidance. I am trying to 'time out' a...
6
by: BBM | last post by:
I have an object that has a fairly complex construction sequence, so I have written a dedicated "factory" class that invokes the constructor of my object class (which does nothing but instantiate...
8
by: a | last post by:
I have a struct to write to a file struct _structA{ long x; int y; float z; } struct _structA A; //file open write(fd,A,sizeof(_structA)); //file close
1
by: Jose Reckoner | last post by:
I'm running python 2.3 on Windows XP. Anyone have a quick small script to convert .DT1 and .DEM data to ASCII or some other format? I don't need a viewer. Thanks!
0
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made...
6
by: arnuld | last post by:
This works fine, I welcome any views/advices/coding-practices :) /* C++ Primer - 4/e * * Exercise 8.9 * STATEMENT: * write a program to store each line from a file into a *...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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 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.