Hi,
Well I still get an error even with what you sugested,
the error again is still The 'META' start tag on line 4 does not match the
end tag of 'HEAD'. Line 5, position 3.
The current code is:
Dim XE As New XMLExchange
Dim XMLOutput As XmlReader
XMLOutput = XE.sendXML(xmlt osend.ToString)
If XMLOutput.IsEmp tyElement Then
Response.Write( "Element empty")
End If
If XMLOutput.IsSta rtElement() Then
Response.Write( "Got here - start")
Response.Write( XMLOutput.ReadO uterXml())
End If
Response.Write( XMLOutput.ToStr ing())
Dim XE As New XMLExchange
Dim XMLOutput As XmlReader
XMLOutput = XE.sendXML(xmlt osend.ToString)
If XMLOutput.IsEmp tyElement Then
Response.Write( "Element empty")
End If
If XMLOutput.IsSta rtElement() Then
Response.Write( "Got here - start")
Response.Write( XMLOutput.ReadO uterXml())
End If
THE xmlexchange(XE in my code) has this in it :
public XmlTextReader sendXML(string XMLtoSend)
{
XmlTextReader reader1 = null;
string text1 = this.APIurl + "?xml=" +
HttpUtility.Url Encode(XMLtoSen d);
this.RequestObj ect = (HttpWebRequest )WebRequest.Cre ate(text1);
this.RequestObj ect.Accept = "text/xml";
this.RequestObj ect.ContentType = "applicatio n/x-www-form-urlencoded";
this.RequestObj ect.Method = "GET";
this.RequestObj ect.Timeout = 10000;
//this.RequestObj ect.Proxy = new WebProxy(this.P roxyString);
try
{
this.ResponseOb ject =
(HttpWebRespons e)this.RequestO bject.GetRespon se();
reader1 = new XmlTextReader(t his.ResponseObj ect.GetResponse Stream());
}
catch (Exception exception1)
{
WebException exception2 = new WebException(ex ception1.Messag e);
throw exception2;
}
// return reader1;
return reader1;
is there any other way of seeing that I am getting sent to me?
"Kevin Yu [MSFT]" wrote:
Hi Tdar,
To get all the contents of XMLOutput, which is an XmlTextReader, you can
use ReadOuterXml method. If the XMLOutput's position is at the root node,
try
Response.Write( XMLOutput.ReadO uterXml())
HTH.
Kevin Yu
Microsoft Online Community Support
=============== =============== =============== =============== =============== =
=============== ===========
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =============== =============== =
=============== ===========
(This posting is provided "AS IS", with no warranties, and confers no
rights.)