Hi All
Hope someone can help.
Using WebRequest.Method = "POST" and
ContentType = "application/x-www-form-urlencoded"
I connect to a web application which then is expected to return me an XML file
ie It is generated and returned rather than existing as a file in a location.
my webrequest reads as...
http://webedu/webct/public/serve_web...N=homearea_xml
From the Browser I get this returned
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE homearea (View Source for full doctype...)>
- <homearea base="http://webedu
......
......
......
</homearea>
The returned XML conforms to the DTD located in
<install_dir>/webct/webct/generic/api/xml/mywebct.dtd.
How do I trap the returned File.?? and read thru it. (I need to extract
Hrefs out of it and build these into a webform, ..
so,
What do I need to do...Retrieve the DTD first??
I have tried
Dim vreader As New XmlValidatingReader(xr)
Dim resolver As New XmlUrlResolver()
vreader.XmlResolver = resolver
If vreader.CanResolveEntity Then
While vreader.read
strResult = strResult & vreader.Value
'----error: there is invalid data at the root level,
line 1,position 1
and using
strResult = strResult & xr.ReadInnerXml 'str
I get nothing ..back
TIA
Neal
--
Neal Rogers
University of Cape Town