XML document parsing

Posted on 2014-08-09
Last Modified: 2014-08-14
I have been tasked with parsing an XML file.

I have been given 2 files the XML file and an XSD file.

Inside the XML file if references the XSD file.

I want to use the XML document parser.

My question is:  What role does the XSD file play when doing the parsing?
Question by:Idarac
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    An XSD is an XML schema definition document, and it defines the structure that XML documents referencing it should follow. You can use the XSD to validate that the XML does indeed follow the expected structure as defined by the XSD. The XML parsing classes within .NET do have the ability to validate the XML against the XSD.
    LVL 1

    Author Comment

    Do you have any .net code doing the validation?
    LVL 74

    Accepted Solution

    LVL 1

    Author Closing Comment

    Excellent thank you

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now