Type "Any"

Abhishek Srivastava abisheks at india.hp.com
Sat Jan 15 14:29:19 GMT 2000


Can I define an element to type "ANY" in a DTD.

I am writing a program that can receive any xml message as requests and
it it builds an XML response for that. Since I do not know what the incoming 
request structure will be, I want to declare an element of type "any" in my 
response DTD so that the entire request message can be substituted in place of
type any and still my document conforms to my DTD.

One solution can be that I do not use a DTD at all, there by I'll be free to insert 
any well formed tag into my document. But the response that I am building has 
other xml elements also that need to be validated against a DTD.

I'll be grateful for your reply.


    _/               Abhishek Srivastava
   _/                Hewlett Packard ISO       
  _/_/_/   _/_/_/    -------------------   
 _/    /   _/   _/     (Work)   +91-80-2251554 x1190
_/  _/   _/_/_/      (Ip)            
        _/           (Url)    http://sites.netscape.net/abhishes/index.html                        
                     Work like you don't need the money.
                     Dance like no one is watching.
                     And love like you've never been hurt.
                     --Mark Twain                       

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/20000115/6d90262c/attachment.htm

More information about the Xml-dev mailing list