Pages: 1
Print
Author Topic: How to check if an element has the attribute or not?  (Read 254 times)
wksim
Member

Posts: 14


« on: August 17, 2011, 01:23:43 PM »

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.
« Last Edit: August 17, 2011, 01:35:45 PM by wksim » Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #1 on: August 17, 2011, 06:07:04 PM »

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

DOMDocumentType_object.hasAttribute(strElemName, strAttrName)
DOMElement_object.hasAttribute("strAttrName")
Selection_object.hasAttribute("strAttrName")
Logged
Pages: 1
Print
Jump to:  

email us