This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id:
65865
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
sprokopowich [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
3.38



Subject: Bug found
Date: Fri, 18 Feb 2011 00:28:35 -0500
To: bug-XML-Twig@rt.cpan.org
From: Steve Prokopowich <sprokopowich@gmail.com>

If you do not wish to register with Bitcard, please report your bug by sending email to: bug-XML-Twig [at] rt.cpan.org.

  • Distribution name and version (For example, "DBIx-SearchBuilder-0.46")
xml-twig-3.37
  • Perl version (Find this by running the command perl -v)
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
  • Operating System vendor and version (Find this by running the command uname -a)
Linux debian 2.6.26-2-686 #1 SMP Thu Nov 25 01:53:57 UTC 2010 i686 GNU/Linux

Other things that are often helpful:

  • Details about your operating environment that might be related to the issue being described
  • Exact cut and pasted error or warning messages
  • The shortest, clearest code you can manage to write which reproduces the bug described.
  • A patch against the latest released version of this distribution which fixes this bug.
---
my code snippet...
my $baseDevice = $InsteonConfig->first_child('deviceTypeList')->first_child('_2476SC');
$baseDevice->print;

my xml file snippet 
<InsteonConfig>
  <deviceTypeList> 
<_2420MC name="2420MC" desc="Smarthome MotionLinc Wireless Motion Sensor (2420MC)">
<cmd></cmd>
</_2420MC>
<_2443C name="2443C" desc="Smarthome Access Point Coupler (2443C)">
<cmd></cmd>
</_2443C>
<_2476SC name="2476SC" desc="Smarthome SwitchLinc Relay (2476SC)" on="1400" off="1200">
<OFF type="CMD" desc="OFF" cmd1="14" cmd2="00" />
<ON type="CMD" desc="ON" cmd1="12" cmd2="00" />
</_2476SC>
</deviceTypeList>
</InsteonConfig>
my error message:
February 18 00:12:13.296 debian ./SerialEventMonitor.pl[7239]: Found it!
February 18 00:12:13.302 debian ./SerialEventMonitor.pl[7239]: ADDR:1350CB
February 18 00:12:13.303 debian ./SerialEventMonitor.pl[7239]: TYPE:_2476SC
Event: trapped error in `?? SerialEventMonitor.pl:220': wrong navigation condition '_2476SC' () at ./SerialEventMonitor.pl line 689
quit
February 18 00:12:17.623 debian ./SerialEventMonitor.pl[7239]: Stopping Processing - dieNow:0:  1298005937.62272
steve@debian:~/HouseCode/EventMonitor$ ./SerialEventMonitor.pl

made the following change to make it work...
from the xml tags I changed the '_' to 'a', and same thing corresponding to the first_child(...) and lo and behold it works properly and prints out what i expected!  only spent a couple hours scratching my head...

I'd have a look at .pm... but... its late and i figure its worth a shot to send in the report....

(yes its a perl module for insteon home control...yes i could use misterhouse...but its more fun, writing my own controls/program...) :)

Thanks,
Steve
Subject: Re: [rt.cpan.org #65865] Bug found
Date: Sat, 19 Feb 2011 07:43:57 +0100
To: bug-XML-Twig@rt.cpan.org
From: mirod <xmltwig@gmail.com>
On 02/18/2011 06:28 AM, Steve Prokopowich via RT wrote:
Show quoted text
> *made the following change to make it work...* > from the xml tags I changed the '_' to 'a', and same thing corresponding to > the first_child(...) and lo and behold it works properly and prints out what > i expected! only spent a couple hours scratching my head...
Oops! I can't believe no one (including me) ever noticed this one! Indeed XML tags can start with an underscore. A patched version is at http://mirod.org/xmltwig/ Thanks for noticing (and reporting) this and I am sorry for the head scratching. -- mirod


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.