473,387 Members | 1,619 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,387 software developers and data experts.

How do I get Schema definition of an XML node in .NET ?

Hi,
In .NET how do I get the underlying schema definition that corresponds to a
particular XML node?

This used to be easy in MSXML3.0 & MSXML4.0, using ...
IXmlDomNode.definition


property. Is there a .NET equivalent to this method?

I have pored through the object model, in vain. My web search & newsgroup
searches did not surface an answer either.

I appreciate your help in helping me out here.

Thanks,
-Naraen

~~~~~~~~~~~~~~~~~~~~~~~~~~
R.R. Naraendira Kumar
Microsoft Certified Solution Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~
Nov 11 '05 #1
2 2235
There is no similar functionality provided in the .NET Framework.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Naraen" <na****@nospam.com> wrote in message
news:eK**************@TK2MSFTNGP10.phx.gbl...
Hi,
In .NET how do I get the underlying schema definition that corresponds to a particular XML node?

This used to be easy in MSXML3.0 & MSXML4.0, using ...
IXmlDomNode.definition


property. Is there a .NET equivalent to this method?

I have pored through the object model, in vain. My web search & newsgroup
searches did not surface an answer either.

I appreciate your help in helping me out here.

Thanks,
-Naraen

~~~~~~~~~~~~~~~~~~~~~~~~~~
R.R. Naraendira Kumar
Microsoft Certified Solution Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~

Nov 11 '05 #2
Thanks Darae.

I annotations in the XSD schema bound to an XML document. Is there another
way I can get to the annotations, when I'm walking the XML document?

-Naraen

~~~~~~~~~~~~~~~~

"Dare Obasanjo [MSFT]" <da***@online.microsoft.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
There is no similar functionality provided in the .NET Framework.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Naraen" <na****@nospam.com> wrote in message
news:eK**************@TK2MSFTNGP10.phx.gbl...
Hi,
In .NET how do I get the underlying schema definition that corresponds to
a
particular XML node?

This used to be easy in MSXML3.0 & MSXML4.0, using ...
>> IXmlDomNode.definition


property. Is there a .NET equivalent to this method?

I have pored through the object model, in vain. My web search &

newsgroup searches did not surface an answer either.

I appreciate your help in helping me out here.

Thanks,
-Naraen

~~~~~~~~~~~~~~~~~~~~~~~~~~
R.R. Naraendira Kumar
Microsoft Certified Solution Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~


Nov 11 '05 #3

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

Similar topics

1
by: Alex Sab | last post by:
Hi, I am having trouble describing in a schema that elements can be mandatory in one part and not mandatory in another part of the xml document. Here is a sample xml file <Model:Templates>...
4
by: Porthos | last post by:
Hi All, I've been working on mining data from a schema file (all attribute data so far) and have come to the point where I need to get information that is contained in tags. For instance,...
5
by: Harald Haspl | last post by:
Hello, I've appended a simple XML file and it's appropriate schema below. I want to validate the XML file against the schema with xerces-c. This example contains a section where colours are...
8
by: Drew Berkemeyer | last post by:
Hello, How can I use XSD to ignore certain nodes of an XML document. Specifically, we have an event that I want to define using XSD. I then want to validate incoming XML events with that XSD....
0
by: Harry_Crow | last post by:
I have some problem developing the Schema. The below is part of my xml file. <group name="..."> <Skip/> <Item/> <Skip/> <Item/> <Item/> <group name="..."/>
0
by: Chuck Bowling | last post by:
I have an XML Schema that's similar to the abbreviated version below; my problem is that both the XML designer in VS 2002 and xsd.exe apparently ignore the heirarchy that the Schema defines. In the...
1
by: Wallace | last post by:
Hi all, I have a problem on validating a xml fragment using a single namespace schema which spread across multiple schema files using include in the master schema file. No matter how I change...
1
by: mahesh.kanakaraj | last post by:
Hi All, I have a confusion in finding the 'effective content' of a complex type definition in a XML Schema. I shall give you an example situation to clearly explain my problem. Let's have...
1
by: Himself | last post by:
I apologize if this has been answered before, I couldn't find it. I'm trying to transform XML to XML and specify a schema in the output XML. I am transforming nodes to different local names...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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,...

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.