Hello,
I would like to select a node that may or may not exist from an xml
document and set it to an object in ASP.
Set detailNode =
xmlDoc.selectSingleNode("//Details/Detail[@id='1111']"
Response.Write detailNode.getAttribute("inputType"
The problem is that if the particular detail is not found, I get an
error -
- "Object required: 'detailNode'"
If I perform a check with IsObject(detailNode), it returns true so I
think
that my problem is that the object is empty. Is there a way to check
this? IsEmpty and IsNull do not seem to work.
Thanks
I would like to select a node that may or may not exist from an xml
document and set it to an object in ASP.
Set detailNode =
xmlDoc.selectSingleNode("//Details/Detail[@id='1111']"
Response.Write detailNode.getAttribute("inputType"
The problem is that if the particular detail is not found, I get an
error -
- "Object required: 'detailNode'"
If I perform a check with IsObject(detailNode), it returns true so I
think
that my problem is that the object is empty. Is there a way to check
this? IsEmpty and IsNull do not seem to work.
Thanks