cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Creating a custom message based in conditions witth ACL

PP_10949316
2-Explorer

Creating a custom message based in conditions witth ACL

I have a lot of XML files that are revised by random people.

These XML files can have the element PARA and these PARA can have a list of children.

 

When the PARA has a FOO child, it is expected that this FOO will be around spaces, for example:

 

<PARA>SOME PARA TEXT <FOO>SOME FOO TEXT</FOO> MORE PARA TEXT.</PARA>

 

But if there aren't spaces around, it would be ideal to show a message to the person who is reviewing the XML. This must happen for all PARA children.

 

Is there a way to do such a thing with ACL?

1 REPLY 1

This one might be best done as a regular expression check. Look at the string (tagged text) representation of the XML and look for any <FOO> text that has something before it. For </FOO> with anything after it. The "\S+" character class would catch one or more non-space characters.

Announcements

Top Tags