• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML validation

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic