0
Reply

Using XMLValidatingReader

sherlockhawar

sherlockhawar

Apr 6 2005 2:37 AM
1.7k
Hi All! I am working on this XSLT designer and I need to write a routine for error detection. I am trying to use XMLValidatingReader but it has started to creep me out. Because of the fact that we can have XSLT as well as HTML in the same file I used XSDs of both languages and tried to validate using XMLValidatingReaderbut it didn't allow me to use XSLT Tags inside HTML Tags and vice versa,so i figured out that i might need to seperate both languages' tags. when i did so i found out that HTML Schema (which is being used by .Net Studio it self) does not directly reffer to the elements rather it has groups of elements and it reffers to them like "Head" element can contain a group of elements in it called HeadContents etc. and XMLValidatingReader gives me error even if an allowed element lies under the "Head Tag" it says "Inavlid element 'title' expected 'headcontent'". Now if any body can tell me how can i tackle this by using XMLValidatingReader or any other built in validator of .net I would be obliged bye

Next Recommended Forum