Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi all,
Please any one let me know how to implement validation, as i have a xml document and the xml document has hierarchy of element as parent and child element and have the attribute as whose value can be Y or N.
If the parent have the attribute value as Y and if the child element have also attribute value as Y, so here parent has the attribute value as Y, so no need to have attribute value as Y in child.
In this case how can i show a message to user that, no use of making the attribute value as Y, if the parent is having already.
Can anyone help me on this?
Interesting use-case! The easiest way to achieve this would be via Schematron validation. Arbortext Editor supports this if you place the .sch file in the doctype folder(s) for the document types you need to add this feature. Your .sch file would simply "report" the bad pattern of Y-in-Y to the user.