Click here to Skip to main content
11,634,438 members (71,606 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# XML xsd
I have an XSD which validate any given xml file and list the errors(giving line number and position).
How to resolve these errors pragmatically and update the tags

eg: The schema validate

tag should not have

as his child

<p>This is an <div>invalid </div> file</p>

it gives error in line:1 and position 16(div)

the resolved file should be

<div>This is an <div>invalid </div> file</div>

Posted 11-Nov-12 23:14pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,758
1 Sergey Alexandrovich Kryukov 8,264
2 Mika Wendelius 6,755
3 F-ES Sitecore 2,344
4 Suvendu Shekhar Giri 2,095


Advertise | Privacy | Mobile
Web04 | 2.8.150728.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100