Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

XmlValidatingReader fails on everything - says cant find top eleme

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
martin - 18 Jan 2006 09:09 GMT
I'm trying to use XmlValidatingReader to programatically validate an XML
document according to a given schema. However, no matter what schema/doc pair
I feed into the program I keep getting the same error:

The element my_namespace:my_top_element have not been declared. An error
occured at (2,2).

All of the doc/schema pairs I have tried validate perfectly OK using several
online xml/xsd validators (like for instance this one:
http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx )

I'm using the standard .NET classes for XML and my code looks like this:
http://www.rafb.net/paste/results/xMvX3926.html

Here is one of the XML documents I tried to test with:
http://www.rafb.net/paste/results/FqPvRk85.html
Here is the corresponding schema:
http://www.rafb.net/paste/results/CZ5qkX25.html

Sincerly,
Martin
Joerg Jooss - 19 Jan 2006 21:19 GMT
Hello Martin,

> I'm trying to use XmlValidatingReader to programatically validate an
> XML document according to a given schema. However, no matter what
[quoted text clipped - 14 lines]
> Here is the corresponding schema:
> http://www.rafb.net/paste/results/CZ5qkX25.html

Hm... those links all seem to be broken. Can you post your code?

Cheers,
Signature

Joerg Jooss
news-reply@joergjooss.de


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.