how to represent it in dtd?
I have two element 开发者_如何学Pythonaction and guid. guid is a required field when action is add. but when action is del it will not appear in file.
How to represent this in dtd ?
You may be able to express what you're saying in XMLSchema, but I'm fairly certain that it isn't possible in DTDs, unless you make "add" and "del" different types of elements (rather than having them both be action elements).
精彩评论