Results 1 to 1 of 1
  1. #1
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Attribute being replaced - I'm completely mystified

    I have a program that uses XPath to drill down into a DOM-parsed XML Document and extract attributes from the elements. It's worked great for a long time... or so I thought. Today I discovered that these two XML elements were giving me me a really strange problem: the "expr" attribute of the second element is being replaced by a fragment of a different Rule element from elsewhere in the file.

    This is not happening to any of the dozens of other Rule elements in my input file. If I comment out the first of these two elements, the problem disappears. Even stranger, it disappears if I add an empty comment before or between these two lines!

    Java Code:
    <Rule expr="{LD}(\(?{SECTOR}\)? \&gt;{NL}? )+\(?{SECTOR}\)?" event="cimCoursePlot"/>
    <Rule expr="{LD} *{SECTOR}( +{SECTOR})*" event="cimSectorInfo"/>
    What in the world is going on here?!
    Last edited by kjkrum; 12-17-2012 at 12:02 AM.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Help plz: not completely working JAR
    By linkingabo in forum NetBeans
    Replies: 6
    Last Post: 01-28-2012, 04:32 AM
  2. Is Java going to be replaced by PHP
    By silverglade in forum New To Java
    Replies: 18
    Last Post: 04-25-2011, 02:03 AM
  3. completely new
    By battosai16 in forum New To Java
    Replies: 1
    Last Post: 08-05-2010, 07:43 PM
  4. ArrayList duplicated/replaced objects
    By ImAFycus in forum New To Java
    Replies: 3
    Last Post: 05-29-2010, 07:58 PM
  5. I am completely stuck
    By jpnym15 in forum New To Java
    Replies: 2
    Last Post: 11-14-2007, 06:40 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
  •