|
Hi,
I have some simple XML and I want to convert the elements into strings.
My XML looks like this:
<ErrorDetail xmlns="mydomain.com/errordetail.xsd">
<RegVal AX="1" BX="2" CX="3" DX="3"</RegVal>
<RegVal AX="4" BX="3" CX="5" DX="4"</RegVal>
<RegVal AX="5" BX="4" CX="6" DX="5"</RegVal>
<ErrorDetail>
So I want to get the elements out into an array of strings like this:
strings[0] = "<RegVal AX="1" BX="2" CX="3" DX="3"</RegVal>";
strings[1] = "<RegVal AX="4" BX="3" CX="5" DX="4"</RegVal>";
strings[2] = "<RegVal AX="5" BX="4" CX="6" DX="5"</RegVal>";
But I want to do this using an XmlTextReader I think but I have not had success yet.
Can anyone help? Thanks
|
|
|
|
|
Hi,
I have some simple XML and I want to convert the elements into strings.
My XML looks like this:
<ErrorDetail xmlns="mydomain.com/errordetail.xsd">
<RegVal AX="1" BX="2" CX="3" DX="3"</RegVal>
<RegVal AX="4" BX="3" CX="5" DX="4"</RegVal>
<RegVal AX="5" BX="4" CX="6" DX="5"</RegVal>
</ErrorDetail>
So I want to get the elements out into an array of strings like this:
strings[0] = "<RegVal AX="1" BX="2" CX="3" DX="3"</RegVal>";
strings[1] = "<RegVal AX="4" BX="3" CX="5" DX="4"</RegVal>";
strings[2] = "<RegVal AX="5" BX="4" CX="6" DX="5"</RegVal>";
But I want to do this using an XmlTextReader I think but I have not had success yet.
Can anyone help? Thanks
|
|
|
|
|
babaa wrote: I want to do this using an XmlTextReader I think but I have not had success yet.
Why not? What have you tried?
No one is going to do your work for you. Post what code you have already written, identify where you are having a problem and someone might help.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
as answered before to your question :
the XmlNode.InnerXml property is probably what you are looking for.
|
|
|
|
|
I haven't used XML all that much so I'm unaware of it's performance limitations. How many nodes can I store before an apparent performance slowdown occurs. The XML file is being used for a standard windows app.
may your code be error free.
(okay, maybe two lines.)
|
|
|
|
|
7
performance slowdown of what? Oh right performance yeah I know exactly what you mean.
led mike
|
|
|
|
|
worldofwarcraft.com web page xml and xsl
sample xml and xsl
Boya - Badana - Tadilat ve Tamirat Isleri Bir Yudum Kahve Molasi (Coffee) Dügün Nisan ve Gelinlik (wedding)
Google Reklamlarinizi Sadece Siz Yönetin Elektrik Proje Tesisat Projesi Çizimi Illere Göre Nakliyat Firmalari Istatistik
http://www.evdenevenakliyatbul.com
|
|
|
|
|
Well, what is your question? Just a bunch of retard nothing in your post...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
i have a lookup in sharepoint and it fill with number for example the content of that is 1 2 3 4 5 ...
now i want it contain some time 1 sometime 2 and ..
i want filter it.
can i do this in sharepoint designer with javascript and how?
|
|
|
|
|
Hi,
I know it's available in VB.Net, but it appears that it's not available in C#.
I haven't done a lot of research into LINQ To XML, so i'm not sure about that, but does anyone know the rationale behind the decision to not include it in C#?
Cheers
T
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hi All,
can i embed a file (xml or pdf) within an XML file ?
thanks
|
|
|
|
|
Ayman Mashal wrote: can i embed a file (xml or pdf) within an XML file ?
Yes
led mike
|
|
|
|
|
|
Ayman Mashal wrote: how can i do that ?
Do some research on XML and MIME or XML and Base64 Encoding
led mike
|
|
|
|
|
Hi friends ...
I have one doubt regarding my analysis ..
how to convert XML data to HTML data ..how its possible !!!
is there any protocals are needed to this convertion ..
plz suggest me!!
Thanks
raju.k
|
|
|
|
|
|
Dear All,
I am using Xindice(XML-DB) as my database for my VC++ application(VS2005).
From the documentation i understood that XML-RPC(Apache XML-RPC) is needed for communicating with the server. But the C++ interface and the documentation for Apache XML-RPC could not be found any where.
Can any one give a possible solution for the above ?
Is there any other way to communication with the Xindice database from a C++ application?
Many thanks in advance,
Prasanthmv
|
|
|
|
|
Prasanth M V wrote: But the C++ interface and the documentation for Apache XML-RPC could not be found any where.
That's because there is no C++ interface to document.
"a popular protocol that uses XML over HTTP to implement remote procedure calls."
That's a quote from the documentation[^]
led mike
|
|
|
|
|
Hi,
Then, how the Xindice database can be accesed from C++ appplication?
Thanks
Prasanth
|
|
|
|
|
Hi Friends,
I know xmlrcp-c library(C++ lib to communicate with the Xindice)can be used to acces to the Xindice server.
But i could not found any details regarding the server procedures exposed by the Xindice XML-RPC API.
Please help me.
I am realy stuck with problem for a couple of days......
Thanks
Prasanth
|
|
|
|
|
Prasanth M V wrote: But i could not found any details regarding the server procedures exposed
That's because it is completely dependent on the Server. What is exposed is whatever services developers put on the server and expose using a XML-RPC interface. It seems you have not understood what XML-RPC is[^].
led mike
|
|
|
|
|
Hi Led,
Good Morning
Let me to say my understanding about calling Xindice with its XML-RPC API Interface from a C++ application.
1. Xindice exposes its server procedures though its XML-RPC API Interface(For C++).
2. It is only needed to call those methods (server procedures or Database operation) exported by the library.
Please inform me if my understanding makes sense.
Please give me with some link or any useful information for finding the Xindice XML-RPC Interface for C++. I has been the searching for the same for the last one week.
Thanks
Prasanth
|
|
|
|
|
Prasanth M V wrote: 1. Xindice exposes its server procedures though its XML-RPC API Interface(For C++).
No. I provided a link to a page that explains what XML-RPC is, did you read it? Did you read any of the other pages it links to?
What is XML-RPC? It's a spec and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet.
It's remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned.
led mike
|
|
|
|
|
Hi Led Mike,
I have gone thorough the XML-RPC documentation.
Could you please answer(YES/NO) to some questiona?
1. To communicate to Xindice Database from C++ application, it is needed to use its Xindice XML-RPC C++ Inteface?
2. Or any general library available in the web can be used for this purpose and we only needs to invoke the methods in the server machine from the client side?
Thanks
Prasanth Vijay
|
|
|
|
|
Prasanth,
I have provided you the link to the Wikipedia Page on XML-RPC which states:
XML-RPC is a remote procedure call protocol which uses XML to encode its calls and HTTP as a transport mechanism.
If you do not understand what that means I can't explain it to you, perhaps you need to click on the links in that sentence on that page as a start to begin to understand the sentence.
led mike
|
|
|
|