if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
General XMetaL Discussion
»
How to check if an element has the attribute or not?
Pages:
1
« previous
next »
Print
Author
Topic: How to check if an element has the attribute or not? (Read 254 times)
wksim
Member
Posts: 14
How to check if an element has the attribute or not?
«
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
Re: How to check if an element has the attribute or not?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...