Is it possible to run query on XSD file instead of XML?
I need to get element from xsd, in order to get the element type.
Thanks
User Profile
Collapse
-
Thanks for the suggestion, but it is not exactly the result I'm looking for.
I probably didn't explain myself correctly.
xml example:
<header>
<id>6368</id>
<srcAddr>127.0. 0.1</srcAddr>
</header>
xsd example:
<xs: element name= "header">
<xs:complexType >
<xs:sequence>
<xs:element name="id"... -
XML to byte[]
Hi,
I'm writing XML simulator that suppose to be a black box.
Loads xml messages, transforms them into byte[] and sends to the other application via TCP/IP protocol without knowing how the application on the other side is implemented.
I need to convert XML message to byte[] and send it via TCP/IP,
but I can't use serialization, because nobody will do the desirialize on the other side(TCP/IP).
Is there... -
Converting XML to byte[]
Hi,
I'm writing XML simulator that suppose to be a black box.
Loads xml messages, transforms them into byte[] and sends to the other application via TCP/IP protocol without knowing how the application on the other side is implemented.
I need to convert XML message to byte[] and send it via TCP/IP,
but I can't use serialization, because nobody will do the desirialize on the other side(TCP/IP).
Is there... -
-
I had the same problem, I couldn't find an answer, so I used a different way.
Instead of converting an object, I builded byte[] buffer from the Object's data and sent this buffer. It worked for me.
[code=cpp]Class nObj = (Class )obj.
//you should know the size of the object
byte[] buffer = new byte[MSG_SIZE];
int index = 0;
//set the data - insert the data in the right order
buffer[index]...Leave a comment:
-
I have ICD. I know the structure of the message that server expects to receive.Leave a comment:
-
Converting Object to byte[]
Hi,
I need to send byte[] msg through UDP protocol.
I'm not sure what is the best way to convert Object to Byte[].
If I use serialization, I'll need to desirialize this on the receiver side, correct??
MemoryStream ms = new MemoryStream();
BinaryFormatter bf = new BinaryFormatter ();
bf.Serialize(ms , obj);
ms.ToArray();
I don't have the source code of the receiver,... -
It's not a web application, c# windows form application
ThanksLeave a comment:
-
unmanged & managed
Hi,
I have a client implemented in C#, using TCP/IP protocol.
I have to receive data from server implemented in C++, unmanaged.
What is the most efficient way to receive data
from the unmanaged C++ server via TCP/IP in the managed C# client ?
Thank you so much
No activity results to display
Show More
Leave a comment: