Results 1 to 6 of 6

Thread: What is termed as a Valid Document in XML

  1. #1
    Join Date
    Nov 2009
    Posts
    83

    What is termed as a Valid Document in XML

    Hi,
    How does a XML document is validated. That means the validation of the document is authenticated by whom. What does a parser and sax means. Are this too terms responsible for XML validation. I need some information on how to validate a XML documents. Also post the way of doing so. I have some XML documentation which are fetching errors under this circumstances. Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: What is termed as a Valid Document in XML

    An XML document must be well made but this does not guarantee that its structure is consistent with what is expected, which is critical in the context of XML data exchange international applications. To enable this control, the grammar of the XML vocabulary used, the ordering of its elements and attributes must be known and formalized.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What is termed as a Valid Document in XML

    Different languages, the most popular being DTDs and W3C XML Schemas allow to formalize this grammar, and are implemented by most parsers, which are defined accordingly as validating parsers. The validation operation is therefore the comparison, when reading an XML document by validating parser, the XML file structure with the grammar expressed in one of these languages. The XML document will be considered valid if both agree.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: What is termed as a Valid Document in XML

    A parser is a software tool, a parser, which allows a client application to validate (if it is a validating parser) an XML document and read it, see change. A parser makes available to the application client read the XML data through APIs, the most common being SAX and DOM. Another class of parsers, more recently, includes a pull technology, combining the advantages of SAX - defined as a PUSH technology - and without their drawbacks DOM . StAX (Streaming API for XML) is an example of Java API Pull parsers implemented by BEA and Sun.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What is termed as a Valid Document in XML

    The validation of XML is an matching problem caused due to the usage of regular expressions. Like if it is given in the regular one that is e for expression and s for string then s in L(e) gives the acceptance of the language. Finite Automat is the common technique that is widely used to solve this problem. This is known to all and if you are too familiar with this then the issue will no arise.

  6. #6
    Join Date
    May 2008
    Posts
    2,389

    Re: What is termed as a Valid Document in XML

    SAX has the advantage, through its operation, not read the code in small portions, which avoids to load into memory completely, unlike DOM. It is very helpful for reading large documents. It will not cons not suitable for cases where the client application can not be satisfied with a linear path and "snippets" of the XML document.

Similar Threads

  1. How to convert HP Jetsuite Document to PDF Document
    By Li-One in forum Hardware Peripherals
    Replies: 4
    Last Post: 01-02-2012, 02:09 PM
  2. Blank word document opens while opening original document
    By Loyalpalm in forum Windows Software
    Replies: 6
    Last Post: 02-12-2011, 12:27 AM
  3. Replies: 5
    Last Post: 26-03-2010, 06:53 AM
  4. Replies: 6
    Last Post: 13-09-2009, 05:04 PM
  5. Fake MBAM key will be termed as malware after fresh update
    By JareD in forum AntiVirus Software
    Replies: 2
    Last Post: 01-07-2009, 02:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,990,899.21366 seconds with 16 queries