473,666 Members | 2,238 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4685
Usually a .NET program uses the System.Xml assembly to process XML.

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

and you're on your way.
"ram" <ra*@discussion s.microsoft.com > wrote in message
news:E7******** *************** ***********@mic rosoft.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(filena me))

and you're on your way.
"ram" <ra*@discussion s.microsoft.com > wrote in message
news:E7******** *************** ***********@mic rosoft.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.publi c.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.publi c.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
13354
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' The server name or address could not be resolved
1
7330
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 specified. /asp/xmld.asp, line 14 So Please help me.... i have tried 1 month ............................. I tried to install service packs..
4
2120
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 usable for msxml3 , msxml4 , saxon .. Is there a general solution ?
3
7262
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 purpose of the script is to act as a 'proxy' and send a POST or GET to another URL but return the response through the ASP page as if the ASP page handled the request: <%@language=JScript%> <% var...
0
2580
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
18081
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 '80072efd' A connection with the server could not be established /xmlhttp.asp, line 19 Line 19 reads, "xmlhttp.send PostString" and PostString is a valid POST string.
1
1232
by: Eder | last post by:
Anyone have a problems with MSXML3, when do assign Schema document in a XML document? thanks Eder
0
1058
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 required node using MSXML3 How we can parse required node instead of looping all the nodes. Thanks,
0
5486
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 files in question. This problem has had me for ages so any help on this would be appreciated Error Type: msxml3.dll (0x80070005) Access is denied.
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8638
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7381
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4365
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.