Hi,
I have following record:
type node_t = Element of element_t | Text of text_t
and element_t = {
tag_name: string
children: node_t list;
mutable deleted: bool
}
and text_t = {
text: string;
line_number: int;
}
Now, I have a XML node stored in a variable called xml_node
And the data is :
xml_node = Element {tag_name = "cell"; children: []; deleted = false}
I want to update the deleted flag as “deleted=true” in the above node record.
Could you please tell me how to do it?
Thank you in advance