• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML validation

 
john Chacko
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Sir,
I have to import data from XML file to sql server.Before importing
the file,i want to validate the XML file with an XSD through vb.net
.But the thing is that, my xml file doesn't have a uniformity.in some
xml files within one tag there will be some child element and for
that child also,it can have again child elements.In some xml file it doesn't have the complexity of looping.so my validation process will
return success status for some xml files only.For some files it's
returning the "Invalid" status, even if the file is valid as per my requirement to import the data.It will be very grateful if you suggest
any method to solve thsi problem.
thanking you,
John KC
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John, you do realize that this is JavaRanch, right? I think you'd be better off posting the question to a place like the GotDotNet forums.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless your question is really "what's wrong with this schema file?"
Could you post the .xsd and samples from the .xml files for us to see?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic