General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › How to check if an element has the attribute or not?
-
wksim August 17, 2011 at 7:23 pm
How to check if an element has the attribute or not?
August 17, 2011 at 7:23 pmParticipants 0Replies 1Last Activity 11 years, 5 months agoUsing 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.
Derek Read August 18, 2011 at 12:07 am
Reply to: How to check if an element has the attribute or not?
August 18, 2011 at 12:07 amSee the Programmers Guide for details on the following related APIs:
DOMDocumentType_object.hasAttribute(strElemName, strAttrName)
DOMElement_object.hasAttribute(“strAttrName”)
Selection_object.hasAttribute(“strAttrName”) -
AuthorPosts
- You must be logged in to reply to this topic.