-
how to use if tag inside my xml file
Hi All,
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..
Regards,
Harishwar
-
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...
Similar Threads
-
By JCGrafted in forum XML
Replies: 0
Last Post: 03-09-2010, 11:20 AM
-
By NJCapeAdmin in forum XML
Replies: 2
Last Post: 08-31-2009, 09:59 AM
-
By WalstonNet in forum XML
Replies: 5
Last Post: 06-22-2009, 12:51 AM
-
By jase_dukerider in forum C++
Replies: 2
Last Post: 04-14-2005, 07:48 PM
-
By smithg22 in forum VB Classic
Replies: 9
Last Post: 04-12-2005, 06:23 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks