473,406 Members | 2,336 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,406 software developers and data experts.

Validate a XMLDocument-object

Hi!
I have a Webservice that take a XMLDocument as an argument. I want to
validate that XMLDocument to a schema. How do I do that?
I don't want to save the XMLDocument to a file and then load it to a
XMLTextReader and validate it via XMLValidatingReader.
My method signature:
Public Sub MyMethodL(ByVal paramXML As XmlDocument)

Thanks!
Nov 23 '05 #1
0 820

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

Similar topics

1
by: QuantDev | last post by:
Hi NG, I would need to validate an XML fragment against a type defined within an XSD (which defines many other things). What is the correct way of achieving this? QD2004
1
by: Randy | last post by:
I have a class which inherits from XmlDocument. Inside it has a public method which builds the xml after properties have been set. My question is how would I make this class validate itself...
1
by: Jonas Bush | last post by:
I'm trying to validate an XmlDocument with an XSD schema, and I'm getting the following error: Could not find schema information for the element 'month'. An error occurred at , (1, 40). Here...
1
by: CK | last post by:
I am doing a Doc.Loadxml(myxml) and I have an xsd schema that I want to validate the myxml against. How can I do this. code would help. Thanks in advance.
0
by: Mark Ingram | last post by:
Hi, i want to ensure that an xml file has been created properly, but i dont want to rely on the creator of the xml file to correctly enter the required namespaces (without the correct namespaces...
0
by: hufaunder | last post by:
I want to validate an xml document with an xsd reference document. I am able to validate the tags but not the values. Here is an example: I define the following type: <xsd:simpleType...
3
by: Roy | last post by:
Can I validate an XmlDocument against an xsd file before it is saved to a file? Any sample code?
1
by: emma_middlebrook | last post by:
Hi XmlTextReader reader = new XmlTextReader("Accounts.xsd"); XmlSchema schema = XmlSchema.Read(reader, null); schema.Compile(null); XmlDocument d = new XmlDocument();...
0
by: Marc Scheuner | last post by:
Folks, I'm faced with a dilemma here - I have an XML document and for part of it, I have an XSD schema to validate it - but not for the rest of it. Can I still validate at least part of the...
1
by: engwar | last post by:
The title says it all. How do I use XMLDocument.Validate() against a DTD. In all my Googling about this I only find examples of how to validate an XMLReader or XmlValidatingReader against a DTD....
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.