473,394 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

MSXML3.0 in ASP.Net

ram
Hi

i AM USING VISUAL STUDIO.NET FOR MY ASP.NET PROGRAMS. I would like to access xml files using MSXML3.0 parser. Can any body tell me the syntax of "Import" statement to call this control in my program? Possible please give me MSXML3.0 reference URLs.

Thx
Ram
Nov 12 '05 #1
5 4652
Usually a .NET program uses the System.Xml assembly to process XML.

Import System.Xml
Dim doc as new XmlDocument
doc.Load(Server.MapPath(filename))

and you're on your way.
"ram" <ra*@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
Hi

i AM USING VISUAL STUDIO.NET FOR MY ASP.NET PROGRAMS. I would like to access xml files using MSXML3.0 parser. Can any body tell me the syntax of
"Import" statement to call this control in my program? Possible please give
me MSXML3.0 reference URLs.
Thx
Ram

Nov 12 '05 #2
Ram
dear chris

thx for the help. but still i have errors with displaying the xml document in asp.net. the following error is appearing when I am trying to display xml content.

"Required white space was missing. Error processing resource 'http://localhost/WebApplication1/WebForm1.aspx'. Line 2, Posi...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">"


"Chris Lovett" wrote:
Usually a .NET program uses the System.Xml assembly to process XML.

Import System.Xml
Dim doc as new XmlDocument
doc.Load(Server.MapPath(filename))

and you're on your way.
"ram" <ra*@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
Hi

i AM USING VISUAL STUDIO.NET FOR MY ASP.NET PROGRAMS. I would like to

access xml files using MSXML3.0 parser. Can any body tell me the syntax of
"Import" statement to call this control in my program? Possible please give
me MSXML3.0 reference URLs.

Thx
Ram


Nov 12 '05 #3
* Ram wrote in microsoft.public.dotnet.xml:
thx for the help. but still i have errors with displaying the xml
document in asp.net. the following error is appearing when I am
trying to display xml content.

"Required white space was missing. Error processing resource
'http://localhost/WebApplication1/WebForm1.aspx'. Line 2, Posi...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">"


That's not an XML document then. For XML documents, a so-called system
identifier would be required, e.g.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

So, after the second " in your document the processor expects a
whitespace followed by a quote mark, which it does not find and
thus aborts processing the document. It seems that you are trying
to process a HTML document, you cannot do that using an XML processor.
Try converting the document to XHTML e.g. using HTML Tidy which you
will find at <http://www.w3.org/People/Raggett/tidy/>. I am also told
that the SgmlReader package you can find on GotDotNet.com provides
similar functionality.
Nov 12 '05 #4
Ram
Dear Bjoern

Thx for the code. But it worked for only one time. And from next time same error isappearing.
Required white space was missing. Error processing resource 'http://localhost/WebApplication1/WebForm1.aspx'. Line 2, Posi...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Rgds
Ram
"Bjoern Hoehrmann" wrote:
* Ram wrote in microsoft.public.dotnet.xml:
thx for the help. but still i have errors with displaying the xml
document in asp.net. the following error is appearing when I am
trying to display xml content.

"Required white space was missing. Error processing resource
'http://localhost/WebApplication1/WebForm1.aspx'. Line 2, Posi...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">"


That's not an XML document then. For XML documents, a so-called system
identifier would be required, e.g.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

So, after the second " in your document the processor expects a
whitespace followed by a quote mark, which it does not find and
thus aborts processing the document. It seems that you are trying
to process a HTML document, you cannot do that using an XML processor.
Try converting the document to XHTML e.g. using HTML Tidy which you
will find at <http://www.w3.org/People/Raggett/tidy/>. I am also told
that the SgmlReader package you can find on GotDotNet.com provides
similar functionality.

Nov 12 '05 #5
Ram wrote:
Thx for the code. But it worked for only one time. And from next time same error isappearing.


You better provide more information - minimal sample of an XML document,
your code, full error info as well as an explanation what are you trying
to achieve.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nigel Murdoch | last post by:
I have an online ordering site that returns this error message when an order is submitted which is supposed to fire a confirmation email. The complete error is: msxml3.dll error '80072ee7' ...
1
by: shubha | last post by:
Good Evening, I am using vb component in asp to get the google results. By running asp file i am getting error as Error Type: msxml3.dll (0x800C0005) The system cannot locate the resource...
4
by: Rolf Kemper | last post by:
Hi All, ned help on the example below. It works fine for msxml3/4 but has problems with saxon. Saxon complains "can not find matching function ..... " My target is to write style sheets...
3
by: delraydog | last post by:
I'm having a problem on Windows 2003 Server with this script. It appears to be a problem with MS XML 4.0 as this code was working fine under MS XML 3.0 and Windows XP or 2000. Any ideas? The...
0
by: Vinod | last post by:
Hi, I am getting this error in the notify-url of the paypal msxml3.dll error '80072f06' The host name in the certificate is invalid or does not match can you guys help me up regards vinod
4
by: Charlie Company | last post by:
I wonder if anyone might be able to help me on this one. I am using MSXML3 in ASP to do a POST to a JSP page that's on the same server as my ASP page. The error I get is: msxml3.dll error...
1
by: Eder | last post by:
Anyone have a problems with MSXML3, when do assign Schema document in a XML document? thanks Eder
0
by: Kota | last post by:
Hi, I am using webservice to get data from database and using in VBA of visio. in web service I am using dataset.GetXml() method to return XML string. using this string I want to parse...
0
by: Jim | last post by:
Can anyone think why Im getting the following message when I try to write to an XML fill using IIS but when I upload it to my web server it writes no problem? I've enabled write acces to the XML...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.