DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: XML & DTD

  1. #1
    Umashankar Guest

    XML & DTD


    Hi,
    I have an application which will accept XML input.
    I want to validate the XML file against a DTD which only the application
    has access.

    Normally if I use MSXML DOM Parser, then the DTD needs to be specified along
    with the xml file.

    In my case, I need to validate the input XML at run time against a DTD specified
    by me.

    I checked up MSXML DOM Help, but the parser's DocType property is read only.

    Is it possible to validate at runtime against a chosen DTD?

    Thanks
    Umashankar

  2. #2
    Jesse Guest

    Re: XML & DTD


    Umashankar,

    The DOM's parser's DocType is read-only, but your XML's doctype is not. In
    the the XML that you send to the DOM, you'll want to specify the DTD that
    you want to validate against.

    - jesse

    "Umashankar" <umashankarpj@yahoo.com> wrote:
    >
    >Hi,
    > I have an application which will accept XML input.
    >I want to validate the XML file against a DTD which only the application
    >has access.
    >
    >Normally if I use MSXML DOM Parser, then the DTD needs to be specified along
    >with the xml file.
    >
    >In my case, I need to validate the input XML at run time against a DTD specified
    >by me.
    >
    >I checked up MSXML DOM Help, but the parser's DocType property is read only.
    >
    >Is it possible to validate at runtime against a chosen DTD?
    >
    >Thanks
    >Umashankar



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center