General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion How to check if an element has the attribute or not?

  • wksim

    How to check if an element has the attribute or not?

    Participants 0
    Replies 1
    Last Activity 11 years, 1 month ago

    Using XMetaL APIs, is there a way to check if an element has an attribute that is defined in the DTD? I want to check this before I assign a value to the attribute for an element as not all elements have the same attribute. I am  trying to do this from C#, and using XMetaL 6.0.

    Thanks.

    Reply

    Derek Read

    Reply to: How to check if an element has the attribute or not?

    See the Programmers Guide for details on the following related APIs:

    DOMDocumentType_object.hasAttribute(strElemName, strAttrName)
    DOMElement_object.hasAttribute(“strAttrName”)
    Selection_object.hasAttribute(“strAttrName”)

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support