how to use if tag inside my xml file


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: how to use if tag inside my xml file

  1. #1
    Join Date
    Jan 2011
    Posts
    1

    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
    Attached Files Attached Files

  2. #2
    Join Date
    May 2009
    Location
    United Kingdom
    Posts
    49
    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

  1. Save XML DOM object to XML file
    By JCGrafted in forum XML
    Replies: 0
    Last Post: 03-09-2010, 12:20 PM
  2. Have large XML file need to sort without xsl
    By NJCapeAdmin in forum XML
    Replies: 2
    Last Post: 08-31-2009, 10:59 AM
  3. Help with an XML file
    By WalstonNet in forum XML
    Replies: 5
    Last Post: 06-22-2009, 01:51 AM
  4. wav file fade in out help
    By jase_dukerider in forum C++
    Replies: 2
    Last Post: 04-14-2005, 08:48 PM
  5. updating xml file from VB6
    By smithg22 in forum VB Classic
    Replies: 9
    Last Post: 04-12-2005, 07: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center