Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Ed,
Going on the information from Brandon, you can use cut_valid( $oid ) to test if the oid can be deleted. If the DTD will allow the current oid to be deleted, then the function will return a "1" implying that the oid is an optional element, according to the DTD, at the current location. If it returns a "0", then it cannot be deleted, and therefore is "required" by the DTD at the current location.
Just because the function is used to test the ability to cut the OID does not mean you are going to actually delete it. The code I would use is as follows:
$o = $current_OID ;
if ( cut_valid( $o ) {
...code for OID is"optional" ...
} else {
... code for OID is "required" ...
}
Hope this helps,
Bob
Correction...
if ( cut_valid( $o ) ) {
sorry...
