471,350 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Help needed with xml!


Hello,

I'm calling an xml webservice the following way:

Service s1 = new Service();

XmlTextReader reader = new XmlTextReader("c://test.xml");

System.Xml.XmlDocument xmlIn = new XmlDocument();

xmlIn.Load(reader);

System.Xml.XmlNode NodeIn = xmlIn.FirstChild;

System.Xml.XmlNode NodeOut = s1.processMessage(NodeIn);

My " test.xml" contain the following xml:

<IcoreWebService>
<MessageInformation attribute1="Auth" MessageDate="2005-01-01"
MessageSender="MainSystem" MessageId="1" SchemaVersion="1.0"
DatabaseName="MainSystem" />
<HelloRequest CustomerId="45" attribute2="TestMe">
</HelloRequest>
</IcoreWebService>

Problem:

The webservice complains that the xml has been altered with extra space at
CustomerId and attribute2 :

<IcoreWebService>
<MessageInformation attribute1="Auth" MessageDate="2005-01-01"
MessageSender="MainSystem" MessageId="1" SchemaVersion="1.0"
DatabaseName="MainSystem" />
<HelloRequest CustomerId=" 45" attribute2=" TestMe">
</HelloRequest>
</IcoreWebService>

Is there a problem with the way i'm reading my xml into the
System.Xml.XmlNode NodeIn object?

many thanks in advance

JJ




Feb 22 '06 #1
0 816

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by A. Wiebenga | last post: by
4 posts views Thread by Jeff T. | last post: by
1 post views Thread by StormyTheCat | last post: by
1 post views Thread by jens Jensen | last post: by
Gaiason
6 posts views Thread by Gaiason | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.