how to use if tag inside my xml file
From the attached file ruleset.xml, I would like to use Ant "<if>" before each "<rule>" .. How do I achiev it?
waiting for your answers..
According to the ruleset schema (http://pmd.sourceforge.net/ruleset_xml_schema.xsd), the if element is not permitted.
However, the if element/statement is permitted within ANT (http://ant-contrib.sourceforge.net/tasks/tasks/if.html), so my assumption is that with ANT you would need to wrap the processing of your rulesets (http://pmd.sourceforge.net/ant-task.html) with the if elements/statements, not each individual rule.
At least from what I can see with the ruleset schema, it is not permitted, although the schema file is not self documented...
By JCGrafted in forum XML
Last Post: 03-09-2010, 12:20 PM
By NJCapeAdmin in forum XML
Last Post: 08-31-2009, 10:59 AM
By WalstonNet in forum XML
Last Post: 06-22-2009, 01:51 AM
By jase_dukerider in forum C++
Last Post: 04-14-2005, 08:48 PM
By smithg22 in forum VB Classic
Last Post: 04-12-2005, 07:23 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL