Results 1 to 1 of 1
- 12-16-2012, 11:31 PM #1
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!
What in the world is going on here?!Java Code:<Rule expr="{LD}(\(?{SECTOR}\)? \>{NL}? )+\(?{SECTOR}\)?" event="cimCoursePlot"/> <Rule expr="{LD} *{SECTOR}( +{SECTOR})*" event="cimSectorInfo"/>Last edited by kjkrum; 12-17-2012 at 12:02 AM.
Get in the habit of using standard Java naming conventions!
Similar Threads
-
Help plz: not completely working JAR
By linkingabo in forum NetBeansReplies: 6Last Post: 01-28-2012, 04:32 AM -
Is Java going to be replaced by PHP
By silverglade in forum New To JavaReplies: 18Last Post: 04-25-2011, 02:03 AM -
completely new
By battosai16 in forum New To JavaReplies: 1Last Post: 08-05-2010, 07:43 PM -
ArrayList duplicated/replaced objects
By ImAFycus in forum New To JavaReplies: 3Last Post: 05-29-2010, 07:58 PM -
I am completely stuck
By jpnym15 in forum New To JavaReplies: 2Last Post: 11-14-2007, 06:40 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks