Jump to content

DTD attribute name - can it be a wildcard?

Guest nla

Recommended Posts

I have the following xml where the attributes for <onReturn> can have any name.Is it possible to have a proper DTD for this? As far as I can see I must specify an attribute name but these are not known at the time of writing the DTD. <result id='INVOKE_RESULT'> <onReturn RESULT1="A">THIS IS 1A</onReturn> <onReturn RESULT1="B">THIS IS 1B</onReturn> <onReturn RESULT2="C">THIS IS 2C</onReturn> <onReturn RESULT3="D">THIS IS 3D</onReturn> </result>I am hoping for some syntax that will allow me to have a wildcard (something like the following) <!ELEMENT onReturn (#PCDATA)> <!ATTLIST onReturn * NMTOKEN #IMPLIED>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...