Al Sam has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I am new to perl.

I am trying to parse the and trying output the record, which have <StateorProvince> tag value 'CA' in first address element.

Thanks a lot!

#!/usr/bin/perl use 5.016; use strict; use warnings; use XML::Twig; { open (my $OFILE, '>:utf8', './bits.xml') or die "Could not open [. +/bits.xml]:\n$!\n$^E"; my $t = XML::Twig->new( twig_roots => { 'statement' => sub { push @_, $OFILE; &_statement; 1; }, }, # twig_print_outside_roots => $OFILE, pretty_print => 'indented', ); $t-> parse(*DATA); # parsefile('test2.xml'); close $OFILE; } sub _statement { my ($_twig, $stmt_element, $OFILE) = @_; my $acct = $stmt_element->{'Address'}->{'State'}; print "acct: $acct \n"; $_twig->print; if ( $acct eq 'CA' ) { print "acct: $acct \n"; $_twig->print; $_twig->flush($OFILE); } else { $_twig->purge(); } return; } __DATA__
<listings> <Listing><Address><commons:preference-order>1</commons:preference- +order><commons:address-preference-order>1</commons:address-preference +-order><commons:FullStreetAddress>330 Main St</commons:FullStreetAddr +ess><commons:City>Northampton</commons:City><State>PA</State><commons +:PostalCode>18067</commons:PostalCode><commons:Country>US</commons:Co +untry></Address><ListPrice commons:isgSecurityClass="Public">124900</ +ListPrice><ListingURL>http://listings.listhub.net/pages/A2SELL/346687 +/?channel=rereview</ListingURL><ProviderName>Dale Sadler</ProviderNam +e><ProviderURL>http://YourLehighValleyHome.com</ProviderURL><Provider +Category>Broker</ProviderCategory><LeadRoutingEmail>info@yourlehighva +lleyhome.com</LeadRoutingEmail><Bedrooms>3</Bedrooms><Bathrooms>2</Ba +throoms><PropertyType otherDescription="Townhouse">Residential</Prope +rtyType><PropertySubType otherDescription="">Townhouse</PropertySubTy +pe><ListingKey>3yd-A2SELL-346687</ListingKey><ListingCategory>Purchas +e</ListingCategory><ListingStatus>Active</ListingStatus><MarketingInf +ormation><commons:PermitAddressOnInternet commons:isgSecurityClass="P +ublic">true</commons:PermitAddressOnInternet><commons:VOWAddressDispl +ay commons:isgSecurityClass="Public">true</commons:VOWAddressDisplay> +<commons:VOWAutomatedValuationDisplay commons:isgSecurityClass="Publi +c">true</commons:VOWAutomatedValuationDisplay><commons:VOWConsumerCom +ment commons:isgSecurityClass="Public">true</commons:VOWConsumerComme +nt></MarketingInformation><Photos><Photo><MediaModificationTimestamp +commons:isgSecurityClass="Public">2015-09-03T23:07:28+00:00</MediaMod +ificationTimestamp><MediaURL>http://photos.listhub.net/A2SELL/346687/ +1?lm=20150903T230728</MediaURL></Photo><Photo><MediaModificationTimes +tamp commons:isgSecurityClass="Public">2015-09-03T23:07:28+00:00</Med +iaModificationTimestamp><MediaURL>http://photos.listhub.net/A2SELL/34 +6687/2?lm=20150903T230728</MediaURL></Photo><Photo><MediaModification +Timestamp commons:isgSecurityClass="Public">2015-09-03T23:07:28+00:00 +</MediaModificationTimestamp><MediaURL>http://photos.listhub.net/A2SE +LL/346687/3?lm=20150903T230728</MediaURL></Photo><Photo><MediaModific +ationTimestamp commons:isgSecurityClass="Public">2015-09-03T23:07:28+ +00:00</MediaModificationTimestamp><MediaURL>http://photos.listhub.net +/A2SELL/346687/4?lm=20150903T230728</MediaURL></Photo><Photo><MediaMo +dificationTimestamp commons:isgSecurityClass="Public">2015-09-03T23:0 +7:28+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhu +b.net/A2SELL/346687/5?lm=20150903T230728</MediaURL></Photo><Photo><Me +diaModificationTimestamp commons:isgSecurityClass="Public">2015-09-03 +T23:07:28+00:00</MediaModificationTimestamp><MediaURL>http://photos.l +isthub.net/A2SELL/346687/6?lm=20150903T230728</MediaURL></Photo><Phot +o><MediaModificationTimestamp commons:isgSecurityClass="Public">2015- +09-03T23:07:28+00:00</MediaModificationTimestamp><MediaURL>http://pho +tos.listhub.net/A2SELL/346687/7?lm=20150903T230728</MediaURL></Photo> +<Photo><MediaModificationTimestamp commons:isgSecurityClass="Public"> +2015-09-03T23:07:28+00:00</MediaModificationTimestamp><MediaURL>http: +//photos.listhub.net/A2SELL/346687/8?lm=20150903T230728</MediaURL></P +hoto><Photo><MediaModificationTimestamp commons:isgSecurityClass="Pub +lic">2015-09-03T23:07:28+00:00</MediaModificationTimestamp><MediaURL> +http://photos.listhub.net/A2SELL/346687/9?lm=20150903T230728</MediaUR +L></Photo><Photo><MediaModificationTimestamp commons:isgSecurityClass +="Public">2015-09-03T23:07:28+00:00</MediaModificationTimestamp><Medi +aURL>http://photos.listhub.net/A2SELL/346687/10?lm=20150903T230728</M +ediaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurit +yClass="Public">2015-09-03T23:07:28+00:00</MediaModificationTimestamp +><MediaURL>http://photos.listhub.net/A2SELL/346687/11?lm=20150903T230 +728</MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgS +ecurityClass="Public">2015-09-03T23:07:28+00:00</MediaModificationTim +estamp><MediaURL>http://photos.listhub.net/A2SELL/346687/12?lm=201509 +03T230728</MediaURL></Photo><Photo><MediaModificationTimestamp common +s:isgSecurityClass="Public">2015-09-03T23:07:28+00:00</MediaModificat +ionTimestamp><MediaURL>http://photos.listhub.net/A2SELL/346687/13?lm= +20150903T230728</MediaURL></Photo></Photos><DiscloseAddress>true</Dis +closeAddress><ListingDescription>End unit townhouse * 3 bedrooms * 1. +5 baths * Formal living and dining room * Kitchen * Lower level great + room * Large deck with side steps * Fenced yard * Mature landscaping + * Walk-out basement *</ListingDescription><MlsId>A2SELL</MlsId><MlsN +ame>A2Sell</MlsName><LivingArea>1240</LivingArea><LotSize commons:are +aUnits="acre">0.086088</LotSize><YearBuilt>1981</YearBuilt><ListingDa +te>2015-09-03</ListingDate><ListingTitle>End unit townhouse...</Listi +ngTitle><FullBathrooms>2</FullBathrooms><ThreeQuarterBathrooms>0</Thr +eeQuarterBathrooms><HalfBathrooms>0</HalfBathrooms><OneQuarterBathroo +ms>0</OneQuarterBathrooms><PartialBathrooms>0</PartialBathrooms><List +ingParticipants><Participant><ParticipantKey>3yd-A2SELL-8592</Partici +pantKey><ParticipantId>8592</ParticipantId><FirstName>Assist</FirstNa +me><LastName>2 Sell</LastName><Role>Listing</Role><PrimaryContactPhon +e>6108377900</PrimaryContactPhone><OfficePhone>6108377900</OfficePhon +e><Email>info@yourlehighvalleyhome.com</Email></Participant></Listing +Participants><Offices><Office><OfficeKey>3yd-A2SELL-19</OfficeKey><Of +ficeId>19</OfficeId><OfficeCode><OfficeCodeId>19</OfficeCodeId></Offi +ceCode><Name>Assist 2 Sell Buyers &amp; Sellers Realty</Name><Corpora +teName>Assist 2 Sell Buyers &amp; Sellers Realty</CorporateName><Brok +erId>19</BrokerId><MainOfficeId>19</MainOfficeId><PhoneNumber>610-837 +-7900</PhoneNumber><Address><commons:preference-order>1</commons:pref +erence-order><commons:address-preference-order>1</commons:address-pre +ference-order><commons:FullStreetAddress>2019 Main Street</commons:Fu +llStreetAddress><commons:City>Northampton</commons:City><State>PA</St +ate><commons:PostalCode>18067</commons:PostalCode><commons:Country>US +</commons:Country></Address><OfficeEmail>info@yourlehighvalleyhome.co +m</OfficeEmail><Website>http://YourLehighValleyHome.com</Website></Of +fice></Offices><Brokerage><Name>Dale Sadler</Name><Phone>(610) 837-79 +00</Phone><Email>info@yourlehighvalleyhome.com</Email><Address><commo +ns:preference-order>1</commons:preference-order><commons:address-pref +erence-order>1</commons:address-preference-order><commons:FullStreetA +ddress>6035 Sellers Avenue</commons:FullStreetAddress><commons:City>O +akley</commons:City><State>CA</State><commons:PostalCode>94561</commo +ns:PostalCode><commons:Country>US</commons:Country></Address></Broker +age><Franchise><Name>Assist-2-Sell</Name></Franchise><Location></Loca +tion><DetailedCharacteristics><ArchitectureStyle otherDescription=""> +Other</ArchitectureStyle><IsNewConstruction>false</IsNewConstruction> +<NumParkingSpaces>0</NumParkingSpaces><RoofTypes><RoofType>Unknown</R +oofType></RoofTypes><Rooms><Room>Bedroom</Room><Room>Bedroom</Room><R +oom>Bedroom</Room><Room>Full Bath</Room><Room>Full Bath</Room></Rooms +></DetailedCharacteristics><ModificationTimestamp commons:isgSecurity +Class="Public">2015-09-04T05:08:29+00:00</ModificationTimestamp><Disc +laimer commons:isgSecurityClass="Public">Copyright © 2015 A2Sell. All + rights reserved. All information provided by the listing agent/broke +r is deemed reliable but is not guaranteed and should be independentl +y verified.</Disclaimer></Listing> <Listing><Address><commons:preference-order>1</commons:preference- +order><commons:address-preference-order>1</commons:address-preference +-order><commons:FullStreetAddress>3294 Center Rd</commons:FullStreetA +ddress><commons:City>Northampton</commons:City><State>PA</State><comm +ons:PostalCode>18067</commons:PostalCode><commons:Country>US</commons +:Country></Address><ListPrice commons:isgSecurityClass="Public">22490 +0</ListPrice><ListingURL>http://listings.listhub.net/pages/A2SELL/346 +696/?channel=rereview</ListingURL><ProviderName>Dale Sadler</Provider +Name><ProviderURL>http://YourLehighValleyHome.com</ProviderURL><Provi +derCategory>Broker</ProviderCategory><LeadRoutingEmail>info@yourlehig +hvalleyhome.com</LeadRoutingEmail><Bedrooms>3</Bedrooms><Bathrooms>3< +/Bathrooms><PropertyType otherDescription="Single Family">Residential +</PropertyType><PropertySubType otherDescription="">Single Family Det +ached</PropertySubType><ListingKey>3yd-A2SELL-346696</ListingKey><Lis +tingCategory>Purchase</ListingCategory><ListingStatus>Active</Listing +Status><MarketingInformation><commons:PermitAddressOnInternet commons +:isgSecurityClass="Public">true</commons:PermitAddressOnInternet><com +mons:VOWAddressDisplay commons:isgSecurityClass="Public">true</common +s:VOWAddressDisplay><commons:VOWAutomatedValuationDisplay commons:isg +SecurityClass="Public">true</commons:VOWAutomatedValuationDisplay><co +mmons:VOWConsumerComment commons:isgSecurityClass="Public">true</comm +ons:VOWConsumerComment></MarketingInformation><Photos><Photo><MediaMo +dificationTimestamp commons:isgSecurityClass="Public">2015-09-04T17:0 +7:19+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhu +b.net/A2SELL/346696/1?lm=20150904T170719</MediaURL></Photo><Photo><Me +diaModificationTimestamp commons:isgSecurityClass="Public">2015-09-04 +T17:07:19+00:00</MediaModificationTimestamp><MediaURL>http://photos.l +isthub.net/A2SELL/346696/2?lm=20150904T170719</MediaURL></Photo><Phot +o><MediaModificationTimestamp commons:isgSecurityClass="Public">2015- +09-04T17:07:19+00:00</MediaModificationTimestamp><MediaURL>http://pho +tos.listhub.net/A2SELL/346696/3?lm=20150904T170719</MediaURL></Photo> +<Photo><MediaModificationTimestamp commons:isgSecurityClass="Public"> +2015-09-04T17:07:19+00:00</MediaModificationTimestamp><MediaURL>http: +//photos.listhub.net/A2SELL/346696/4?lm=20150904T170719</MediaURL></P +hoto><Photo><MediaModificationTimestamp commons:isgSecurityClass="Pub +lic">2015-09-04T17:07:19+00:00</MediaModificationTimestamp><MediaURL> +http://photos.listhub.net/A2SELL/346696/5?lm=20150904T170719</MediaUR +L></Photo><Photo><MediaModificationTimestamp commons:isgSecurityClass +="Public">2015-09-04T17:07:19+00:00</MediaModificationTimestamp><Medi +aURL>http://photos.listhub.net/A2SELL/346696/6?lm=20150904T170719</Me +diaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurity +Class="Public">2015-09-04T17:07:19+00:00</MediaModificationTimestamp> +<MediaURL>http://photos.listhub.net/A2SELL/346696/7?lm=20150904T17071 +9</MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgSec +urityClass="Public">2015-09-04T17:07:19+00:00</MediaModificationTimes +tamp><MediaURL>http://photos.listhub.net/A2SELL/346696/8?lm=20150904T +170719</MediaURL></Photo><Photo><MediaModificationTimestamp commons:i +sgSecurityClass="Public">2015-09-04T17:07:19+00:00</MediaModification +Timestamp><MediaURL>http://photos.listhub.net/A2SELL/346696/9?lm=2015 +0904T170719</MediaURL></Photo><Photo><MediaModificationTimestamp comm +ons:isgSecurityClass="Public">2015-09-04T17:07:19+00:00</MediaModific +ationTimestamp><MediaURL>http://photos.listhub.net/A2SELL/346696/10?l +m=20150904T170719</MediaURL></Photo><Photo><MediaModificationTimestam +p commons:isgSecurityClass="Public">2015-09-04T17:07:19+00:00</MediaM +odificationTimestamp><MediaURL>http://photos.listhub.net/A2SELL/34669 +6/11?lm=20150904T170719</MediaURL></Photo><Photo><MediaModificationTi +mestamp commons:isgSecurityClass="Public">2015-09-04T17:07:19+00:00</ +MediaModificationTimestamp><MediaURL>http://photos.listhub.net/A2SELL +/346696/12?lm=20150904T170719</MediaURL></Photo><Photo><MediaModifica +tionTimestamp commons:isgSecurityClass="Public">2015-09-04T17:07:19+0 +0:00</MediaModificationTimestamp><MediaURL>http://photos.listhub.net/ +A2SELL/346696/13?lm=20150904T170719</MediaURL></Photo><Photo><MediaMo +dificationTimestamp commons:isgSecurityClass="Public">2015-09-04T17:0 +7:19+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhu +b.net/A2SELL/346696/14?lm=20150904T170719</MediaURL></Photo><Photo><M +ediaModificationTimestamp commons:isgSecurityClass="Public">2015-09-0 +4T17:07:19+00:00</MediaModificationTimestamp><MediaURL>http://photos. +listhub.net/A2SELL/346696/15?lm=20150904T170719</MediaURL></Photo><Ph +oto><MediaModificationTimestamp commons:isgSecurityClass="Public">201 +5-09-04T17:07:19+00:00</MediaModificationTimestamp><MediaURL>http://p +hotos.listhub.net/A2SELL/346696/16?lm=20150904T170719</MediaURL></Pho +to><Photo><MediaModificationTimestamp commons:isgSecurityClass="Publi +c">2015-09-04T17:07:19+00:00</MediaModificationTimestamp><MediaURL>ht +tp://photos.listhub.net/A2SELL/346696/17?lm=20150904T170719</MediaURL +></Photo><Photo><MediaModificationTimestamp commons:isgSecurityClass= +"Public">2015-09-04T17:07:19+00:00</MediaModificationTimestamp><Media +URL>http://photos.listhub.net/A2SELL/346696/18?lm=20150904T170719</Me +diaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurity +Class="Public">2015-09-04T17:07:19+00:00</MediaModificationTimestamp> +<MediaURL>http://photos.listhub.net/A2SELL/346696/19?lm=20150904T1707 +19</MediaURL></Photo></Photos><DiscloseAddress>true</DiscloseAddress> +<ListingDescription>All brick ranch home * 3 bedrooms * 2.5 baths * F +ormal living &amp; dining room * First floor family room with brick f +ireplace * Lower level great room with bar and 2nd fireplace * Eat-in + kitchen * Enclosed 3 season sunroom * Wine cellar * Office/den * 2 c +ar garage * Heat pump with central air plus electric baseboard * Tile + baths * Hardwood floors * Mature landscaping * Large storage room * +Laundry room with laundry tub * Full basement with outside entrance * + Washer, dryer, refrigerator, stove, ceiling fans and garage door ope +ner all remain * HMS home warranty and more *</ListingDescription><Ml +sId>A2SELL</MlsId><MlsName>A2Sell</MlsName><LivingArea>1810</LivingAr +ea><LotSize commons:areaUnits="acre">0.275482</LotSize><YearBuilt>196 +9</YearBuilt><ListingDate>2015-09-04</ListingDate><ListingTitle>All b +rick ranch home...</ListingTitle><FullBathrooms>3</FullBathrooms><Thr +eeQuarterBathrooms>0</ThreeQuarterBathrooms><HalfBathrooms>0</HalfBat +hrooms><OneQuarterBathrooms>0</OneQuarterBathrooms><PartialBathrooms> +0</PartialBathrooms><ListingParticipants><Participant><ParticipantKey +>3yd-A2SELL-8592</ParticipantKey><ParticipantId>8592</ParticipantId>< +FirstName>Assist</FirstName><LastName>2 Sell</LastName><Role>Listing< +/Role><PrimaryContactPhone>6108377900</PrimaryContactPhone><OfficePho +ne>6108377900</OfficePhone><Email>info@yourlehighvalleyhome.com</Emai +l></Participant></ListingParticipants><Offices><Office><OfficeKey>3yd +-A2SELL-19</OfficeKey><OfficeId>19</OfficeId><OfficeCode><OfficeCodeI +d>19</OfficeCodeId></OfficeCode><Name>Assist 2 Sell Buyers &amp; Sell +ers Realty</Name><CorporateName>Assist 2 Sell Buyers &amp; Sellers Re +alty</CorporateName><BrokerId>19</BrokerId><MainOfficeId>19</MainOffi +ceId><PhoneNumber>610-837-7900</PhoneNumber><Address><commons:prefere +nce-order>1</commons:preference-order><commons:address-preference-ord +er>1</commons:address-preference-order><commons:FullStreetAddress>201 +9 Main Street</commons:FullStreetAddress><commons:City>Northampton</c +ommons:City><State>PA</State><commons:PostalCode>18067</commons:Posta +lCode><commons:Country>US</commons:Country></Address><OfficeEmail>inf +o@yourlehighvalleyhome.com</OfficeEmail><Website>http://YourLehighVal +leyHome.com</Website></Office></Offices><Brokerage><Name>Dale Sadler< +/Name><Phone>(610) 837-7900</Phone><Email>info@yourlehighvalleyhome.c +om</Email><Address><commons:preference-order>1</commons:preference-or +der><commons:address-preference-order>1</commons:address-preference-o +rder><commons:FullStreetAddress>6035 Sellers Avenue</commons:FullStre +etAddress><commons:City>Oakley</commons:City><State>CA</State><common +s:PostalCode>94561</commons:PostalCode><commons:Country>US</commons:C +ountry></Address></Brokerage><Franchise><Name>Assist-2-Sell</Name></F +ranchise><Location></Location><DetailedCharacteristics><ArchitectureS +tyle otherDescription="">Other</ArchitectureStyle><IsNewConstruction> +false</IsNewConstruction><NumParkingSpaces>2</NumParkingSpaces><Parki +ngTypes><ParkingType>Garage</ParkingType></ParkingTypes><RoofTypes><R +oofType>Unknown</RoofType></RoofTypes><Rooms><Room>Bedroom</Room><Roo +m>Bedroom</Room><Room>Bedroom</Room><Room>Full Bath</Room><Room>Full +Bath</Room><Room>Full Bath</Room></Rooms></DetailedCharacteristics><M +odificationTimestamp commons:isgSecurityClass="Public">2015-09-04T23: +07:01+00:00</ModificationTimestamp><Disclaimer commons:isgSecurityCla +ss="Public">Copyright © 2015 A2Sell. All rights reserved. All informa +tion provided by the listing agent/broker is deemed reliable but is n +ot guaranteed and should be independently verified.</Disclaimer></Lis +ting> <Listing><Address><commons:preference-order>1</commons:preference- +order><commons:address-preference-order>1</commons:address-preference +-order><commons:FullStreetAddress>710 Daniels Rd</commons:FullStreetA +ddress><commons:City>Nazareth</commons:City><State>PA</State><commons +:PostalCode>18064</commons:PostalCode><commons:Country>US</commons:Co +untry></Address><ListPrice commons:isgSecurityClass="Public">189900</ +ListPrice><ListingURL>http://listings.listhub.net/pages/A2SELL/346703 +/?channel=rereview</ListingURL><ProviderName>Dale Sadler</ProviderNam +e><ProviderURL>http://YourLehighValleyHome.com</ProviderURL><Provider +Category>Broker</ProviderCategory><LeadRoutingEmail>info@yourlehighva +lleyhome.com</LeadRoutingEmail><Bedrooms>4</Bedrooms><Bathrooms>2</Ba +throoms><PropertyType otherDescription="Single Family">Residential</P +ropertyType><PropertySubType otherDescription="">Single Family Detach +ed</PropertySubType><ListingKey>3yd-A2SELL-346703</ListingKey><Listin +gCategory>Purchase</ListingCategory><ListingStatus>Active</ListingSta +tus><MarketingInformation><commons:PermitAddressOnInternet commons:is +gSecurityClass="Public">true</commons:PermitAddressOnInternet><common +s:VOWAddressDisplay commons:isgSecurityClass="Public">true</commons:V +OWAddressDisplay><commons:VOWAutomatedValuationDisplay commons:isgSec +urityClass="Public">true</commons:VOWAutomatedValuationDisplay><commo +ns:VOWConsumerComment commons:isgSecurityClass="Public">true</commons +:VOWConsumerComment></MarketingInformation><Photos><Photo><MediaModif +icationTimestamp commons:isgSecurityClass="Public">2015-09-04T23:07:0 +5+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhub.n +et/A2SELL/346703/1?lm=20150904T230705</MediaURL></Photo><Photo><Media +ModificationTimestamp commons:isgSecurityClass="Public">2015-09-04T23 +:07:05+00:00</MediaModificationTimestamp><MediaURL>http://photos.list +hub.net/A2SELL/346703/2?lm=20150904T230705</MediaURL></Photo><Photo>< +MediaModificationTimestamp commons:isgSecurityClass="Public">2015-09- +04T23:07:05+00:00</MediaModificationTimestamp><MediaURL>http://photos +.listhub.net/A2SELL/346703/3?lm=20150904T230705</MediaURL></Photo><Ph +oto><MediaModificationTimestamp commons:isgSecurityClass="Public">201 +5-09-04T23:07:05+00:00</MediaModificationTimestamp><MediaURL>http://p +hotos.listhub.net/A2SELL/346703/4?lm=20150904T230705</MediaURL></Phot +o><Photo><MediaModificationTimestamp commons:isgSecurityClass="Public +">2015-09-04T23:07:05+00:00</MediaModificationTimestamp><MediaURL>htt +p://photos.listhub.net/A2SELL/346703/5?lm=20150904T230705</MediaURL>< +/Photo><Photo><MediaModificationTimestamp commons:isgSecurityClass="P +ublic">2015-09-04T23:07:05+00:00</MediaModificationTimestamp><MediaUR +L>http://photos.listhub.net/A2SELL/346703/6?lm=20150904T230705</Media +URL></Photo><Photo><MediaModificationTimestamp commons:isgSecurityCla +ss="Public">2015-09-04T23:07:05+00:00</MediaModificationTimestamp><Me +diaURL>http://photos.listhub.net/A2SELL/346703/7?lm=20150904T230705</ +MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecuri +tyClass="Public">2015-09-04T23:07:05+00:00</MediaModificationTimestam +p><MediaURL>http://photos.listhub.net/A2SELL/346703/8?lm=20150904T230 +705</MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgS +ecurityClass="Public">2015-09-04T23:07:05+00:00</MediaModificationTim +estamp><MediaURL>http://photos.listhub.net/A2SELL/346703/9?lm=2015090 +4T230705</MediaURL></Photo><Photo><MediaModificationTimestamp commons +:isgSecurityClass="Public">2015-09-04T23:07:05+00:00</MediaModificati +onTimestamp><MediaURL>http://photos.listhub.net/A2SELL/346703/10?lm=2 +0150904T230705</MediaURL></Photo><Photo><MediaModificationTimestamp c +ommons:isgSecurityClass="Public">2015-09-04T23:07:05+00:00</MediaModi +ficationTimestamp><MediaURL>http://photos.listhub.net/A2SELL/346703/1 +1?lm=20150904T230705</MediaURL></Photo><Photo><MediaModificationTimes +tamp commons:isgSecurityClass="Public">2015-09-04T23:07:05+00:00</Med +iaModificationTimestamp><MediaURL>http://photos.listhub.net/A2SELL/34 +6703/12?lm=20150904T230705</MediaURL></Photo><Photo><MediaModificatio +nTimestamp commons:isgSecurityClass="Public">2015-09-04T23:07:05+00:0 +0</MediaModificationTimestamp><MediaURL>http://photos.listhub.net/A2S +ELL/346703/13?lm=20150904T230705</MediaURL></Photo><Photo><MediaModif +icationTimestamp commons:isgSecurityClass="Public">2015-09-04T23:07:0 +5+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhub.n +et/A2SELL/346703/14?lm=20150904T230705</MediaURL></Photo><Photo><Medi +aModificationTimestamp commons:isgSecurityClass="Public">2015-09-04T2 +3:07:05+00:00</MediaModificationTimestamp><MediaURL>http://photos.lis +thub.net/A2SELL/346703/15?lm=20150904T230705</MediaURL></Photo><Photo +><MediaModificationTimestamp commons:isgSecurityClass="Public">2015-0 +9-04T23:07:05+00:00</MediaModificationTimestamp><MediaURL>http://phot +os.listhub.net/A2SELL/346703/16?lm=20150904T230705</MediaURL></Photo> +<Photo><MediaModificationTimestamp commons:isgSecurityClass="Public"> +2015-09-04T23:07:05+00:00</MediaModificationTimestamp><MediaURL>http: +//photos.listhub.net/A2SELL/346703/17?lm=20150904T230705</MediaURL></ +Photo></Photos><DiscloseAddress>true</DiscloseAddress><ListingDescrip +tion>Lower Nazareth Cape Cod offering 4 BRs &amp; 2 full baths on a l +ittle over half acre flat corner lot * Large formal LR w/ wood burnin +g FP * Huge eat in kitchen w/ Quaker Maid cabinets &amp; breakfast ba +r * 2 BRs &amp; full bath on 1st and second floors * Plenty of closet +s throughout * Cedar closet on 2nd floor * Hardwood floors * Full bas +ement with outside entrance * Newer roof and boiler * Updated 200 amp + electrical * 1 car garage &amp; oversized driveway * Public water &a +mp; sewer * Radon remediated * Washer, dryer, refrigerator, window AC + &amp; riding mower remain at buyer request *USDA eligible area * Ide +al location, quiet country feel yet close to everything plus Nazareth + Schools!</ListingDescription><MlsId>A2SELL</MlsId><MlsName>A2Sell</M +lsName><LivingArea>1612</LivingArea><LotSize commons:areaUnits="acre" +>0.530004</LotSize><YearBuilt>1965</YearBuilt><ListingDate>2015-09-04 +</ListingDate><ListingTitle>Lower Nazareth cape cod...</ListingTitle> +<FullBathrooms>2</FullBathrooms><ThreeQuarterBathrooms>0</ThreeQuarte +rBathrooms><HalfBathrooms>0</HalfBathrooms><OneQuarterBathrooms>0</On +eQuarterBathrooms><PartialBathrooms>0</PartialBathrooms><ListingParti +cipants><Participant><ParticipantKey>3yd-A2SELL-8592</ParticipantKey> +<ParticipantId>8592</ParticipantId><FirstName>Assist</FirstName><Last +Name>2 Sell</LastName><Role>Listing</Role><PrimaryContactPhone>610837 +7900</PrimaryContactPhone><OfficePhone>6108377900</OfficePhone><Email +>info@yourlehighvalleyhome.com</Email></Participant></ListingParticip +ants><Offices><Office><OfficeKey>3yd-A2SELL-19</OfficeKey><OfficeId>1 +9</OfficeId><OfficeCode><OfficeCodeId>19</OfficeCodeId></OfficeCode>< +Name>Assist 2 Sell Buyers &amp; Sellers Realty</Name><CorporateName>A +ssist 2 Sell Buyers &amp; Sellers Realty</CorporateName><BrokerId>19< +/BrokerId><MainOfficeId>19</MainOfficeId><PhoneNumber>610-837-7900</P +honeNumber><Address><commons:preference-order>1</commons:preference-o +rder><commons:address-preference-order>1</commons:address-preference- +order><commons:FullStreetAddress>2019 Main Street</commons:FullStreet +Address><commons:City>Northampton</commons:City><State>PA</State><com +mons:PostalCode>18067</commons:PostalCode><commons:Country>US</common +s:Country></Address><OfficeEmail>info@yourlehighvalleyhome.com</Offic +eEmail><Website>http://YourLehighValleyHome.com</Website></Office></O +ffices><Brokerage><Name>Dale Sadler</Name><Phone>(610) 837-7900</Phon +e><Email>info@yourlehighvalleyhome.com</Email><Address><commons:prefe +rence-order>1</commons:preference-order><commons:address-preference-o +rder>1</commons:address-preference-order><commons:FullStreetAddress>6 +035 Sellers Avenue</commons:FullStreetAddress><commons:City>Oakley</c +ommons:City><State>CA</State><commons:PostalCode>94561</commons:Posta +lCode><commons:Country>US</commons:Country></Address></Brokerage><Fra +nchise><Name>Assist-2-Sell</Name></Franchise><Location></Location><De +tailedCharacteristics><ArchitectureStyle otherDescription="">Other</A +rchitectureStyle><IsNewConstruction>false</IsNewConstruction><NumPark +ingSpaces>1</NumParkingSpaces><ParkingTypes><ParkingType>Garage</Park +ingType></ParkingTypes><RoofTypes><RoofType>Unknown</RoofType></RoofT +ypes><Rooms><Room>Bedroom</Room><Room>Bedroom</Room><Room>Bedroom</Ro +om><Room>Bedroom</Room><Room>Full Bath</Room><Room>Full Bath</Room></ +Rooms></DetailedCharacteristics><ModificationTimestamp commons:isgSec +urityClass="Public">2015-09-04T23:07:01+00:00</ModificationTimestamp> +<Disclaimer commons:isgSecurityClass="Public">Copyright © 2015 A2Sell +. All rights reserved. All information provided by the listing agent/ +broker is deemed reliable but is not guaranteed and should be indepen +dently verified.</Disclaimer></Listing> <Listing><Address><commons:preference-order>1</commons:preference- +order><commons:address-preference-order>1</commons:address-preference +-order><commons:FullStreetAddress>585 Silverado Circle</commons:Full +StreetAddress><commons:City>Fairfield</commons:City><State>CA</State> +<commons:PostalCode>94534</commons:PostalCode><commons:Country>US</co +mmons:Country></Address><ListPrice commons:isgSecurityClass="Public"> +333200</ListPrice><ListingURL>http://listings.listhub.net/pages/BAREI +SCA/21513823/?channel=rereview</ListingURL><ProviderName>RCR Realty C +orp</ProviderName><ProviderURL>http://www.CarolGarcia.com</ProviderUR +L><ProviderCategory>Broker</ProviderCategory><LeadRoutingEmail>Carol@ +CarolGarcia.com</LeadRoutingEmail><Bedrooms>3</Bedrooms><Bathrooms>2< +/Bathrooms><PropertyType otherDescription="Residential">Residential</ +PropertyType><PropertySubType otherDescription="Single Family">Single + Family Detached</PropertySubType><ListingKey>3yd-BAREISCA-21513823</ +ListingKey><ListingCategory>Purchase</ListingCategory><ListingStatus> +Active</ListingStatus><MarketingInformation><commons:PermitAddressOnI +nternet commons:isgSecurityClass="Public">true</commons:PermitAddress +OnInternet><commons:VOWAddressDisplay commons:isgSecurityClass="Publi +c">true</commons:VOWAddressDisplay><commons:VOWAutomatedValuationDisp +lay commons:isgSecurityClass="Public">true</commons:VOWAutomatedValua +tionDisplay><commons:VOWConsumerComment commons:isgSecurityClass="Pub +lic">true</commons:VOWConsumerComment></MarketingInformation><Photos> +<Photo><MediaModificationTimestamp commons:isgSecurityClass="Public"> +2015-08-13T00:02:54+00:00</MediaModificationTimestamp><MediaURL>http: +//photos.listhub.net/BAREISCA/21513823/1?lm=20150813T000254</MediaURL +></Photo><Photo><MediaModificationTimestamp commons:isgSecurityClass= +"Public">2015-08-13T00:02:54+00:00</MediaModificationTimestamp><Media +URL>http://photos.listhub.net/BAREISCA/21513823/2?lm=20150813T000254< +/MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecur +ityClass="Public">2015-08-13T00:02:54+00:00</MediaModificationTimesta +mp><MediaURL>http://photos.listhub.net/BAREISCA/21513823/3?lm=2015081 +3T000254</MediaURL></Photo><Photo><MediaModificationTimestamp commons +:isgSecurityClass="Public">2015-08-13T00:02:54+00:00</MediaModificati +onTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/21513823/4?l +m=20150813T000254</MediaURL></Photo><Photo><MediaModificationTimestam +p commons:isgSecurityClass="Public">2015-08-13T00:02:54+00:00</MediaM +odificationTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/215 +13823/5?lm=20150813T000254</MediaURL></Photo><Photo><MediaModificatio +nTimestamp commons:isgSecurityClass="Public">2015-08-13T00:02:54+00:0 +0</MediaModificationTimestamp><MediaURL>http://photos.listhub.net/BAR +EISCA/21513823/6?lm=20150813T000254</MediaURL></Photo><Photo><MediaMo +dificationTimestamp commons:isgSecurityClass="Public">2015-08-13T00:0 +2:54+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhu +b.net/BAREISCA/21513823/7?lm=20150813T000254</MediaURL></Photo><Photo +><MediaModificationTimestamp commons:isgSecurityClass="Public">2015-0 +8-13T00:02:54+00:00</MediaModificationTimestamp><MediaURL>http://phot +os.listhub.net/BAREISCA/21513823/8?lm=20150813T000254</MediaURL></Pho +to><Photo><MediaModificationTimestamp commons:isgSecurityClass="Publi +c">2015-08-13T00:02:54+00:00</MediaModificationTimestamp><MediaURL>ht +tp://photos.listhub.net/BAREISCA/21513823/9?lm=20150813T000254</Media +URL></Photo><Photo><MediaModificationTimestamp commons:isgSecurityCla +ss="Public">2015-08-13T00:02:54+00:00</MediaModificationTimestamp><Me +diaURL>http://photos.listhub.net/BAREISCA/21513823/10?lm=20150813T000 +254</MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgS +ecurityClass="Public">2015-08-13T00:02:54+00:00</MediaModificationTim +estamp><MediaURL>http://photos.listhub.net/BAREISCA/21513823/11?lm=20 +150813T000254</MediaURL></Photo><Photo><MediaModificationTimestamp co +mmons:isgSecurityClass="Public">2015-08-13T00:02:54+00:00</MediaModif +icationTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/2151382 +3/12?lm=20150813T000254</MediaURL></Photo><Photo><MediaModificationTi +mestamp commons:isgSecurityClass="Public">2015-08-13T00:02:54+00:00</ +MediaModificationTimestamp><MediaURL>http://photos.listhub.net/BAREIS +CA/21513823/13?lm=20150813T000254</MediaURL></Photo><Photo><MediaModi +ficationTimestamp commons:isgSecurityClass="Public">2015-08-13T00:02: +54+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhub. +net/BAREISCA/21513823/14?lm=20150813T000254</MediaURL></Photo><Photo> +<MediaModificationTimestamp commons:isgSecurityClass="Public">2015-08 +-13T00:02:54+00:00</MediaModificationTimestamp><MediaURL>http://photo +s.listhub.net/BAREISCA/21513823/15?lm=20150813T000254</MediaURL></Pho +to><Photo><MediaModificationTimestamp commons:isgSecurityClass="Publi +c">2015-08-13T00:02:54+00:00</MediaModificationTimestamp><MediaURL>ht +tp://photos.listhub.net/BAREISCA/21513823/16?lm=20150813T000254</Medi +aURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurityCl +ass="Public">2015-08-13T00:02:54+00:00</MediaModificationTimestamp><M +ediaURL>http://photos.listhub.net/BAREISCA/21513823/17?lm=20150813T00 +0254</MediaURL></Photo><Photo><MediaModificationTimestamp commons:isg +SecurityClass="Public">2015-08-13T00:02:54+00:00</MediaModificationTi +mestamp><MediaURL>http://photos.listhub.net/BAREISCA/21513823/18?lm=2 +0150813T000254</MediaURL></Photo><Photo><MediaModificationTimestamp c +ommons:isgSecurityClass="Public">2015-08-13T00:02:54+00:00</MediaModi +ficationTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/215138 +23/19?lm=20150813T000254</MediaURL></Photo><Photo><MediaModificationT +imestamp commons:isgSecurityClass="Public">2015-08-13T00:02:54+00:00< +/MediaModificationTimestamp><MediaURL>http://photos.listhub.net/BAREI +SCA/21513823/20?lm=20150813T000254</MediaURL></Photo><Photo><MediaMod +ificationTimestamp commons:isgSecurityClass="Public">2015-08-13T00:02 +:54+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhub +.net/BAREISCA/21513823/21?lm=20150813T000254</MediaURL></Photo><Photo +><MediaModificationTimestamp commons:isgSecurityClass="Public">2015-0 +8-13T00:02:54+00:00</MediaModificationTimestamp><MediaURL>http://phot +os.listhub.net/BAREISCA/21513823/22?lm=20150813T000254</MediaURL></Ph +oto><Photo><MediaModificationTimestamp commons:isgSecurityClass="Publ +ic">2015-08-13T00:02:54+00:00</MediaModificationTimestamp><MediaURL>h +ttp://photos.listhub.net/BAREISCA/21513823/23?lm=20150813T000254</Med +iaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurityC +lass="Public">2015-08-13T00:02:54+00:00</MediaModificationTimestamp>< +MediaURL>http://photos.listhub.net/BAREISCA/21513823/24?lm=20150813T0 +00254</MediaURL></Photo></Photos><DiscloseAddress>true</DiscloseAddre +ss><ListingDescription>This 3 Bedroom 2 Bath home is conveniently loc +ated at the 80/680 corridor in Cordelia with a huge backyard. Minutes + from Green Valley Middle School and Rodriguez High. Property to be s +old in AS IS condition.</ListingDescription><MlsId>BAREISCA</MlsId><M +lsName>Bay Area Real Estate Information Services, Inc.</MlsName><MlsN +umber>21513823</MlsNumber><LivingArea>1288</LivingArea><LotSize commo +ns:areaUnits="acre">0.18</LotSize><YearBuilt>1982</YearBuilt><Listing +Date>2015-06-05</ListingDate><ListingTitle>Contemporary, Single Famil +y - Fairfield, CA</ListingTitle><FullBathrooms>2</FullBathrooms><Thre +eQuarterBathrooms>0</ThreeQuarterBathrooms><HalfBathrooms>0</HalfBath +rooms><OneQuarterBathrooms>0</OneQuarterBathrooms><PartialBathrooms>0 +</PartialBathrooms><ForeclosureStatus>REO - Bank Owned</ForeclosureSt +atus><ListingParticipants><Participant><ParticipantKey>3yd-BAREISCA-D +329441</ParticipantKey><ParticipantId>D329441</ParticipantId><FirstNa +me>Carolina</FirstName><LastName>Garcia</LastName><Role>Listing</Role +><PrimaryContactPhone>7076446338</PrimaryContactPhone><OfficePhone>70 +76446338</OfficePhone><Email>Carol@CarolGarcia.com</Email><WebsiteURL +>http://www.carolgarcia.com</WebsiteURL></Participant></ListingPartic +ipants><Offices><Office><OfficeKey>3yd-BAREISCA-DRCR</OfficeKey><Offi +ceId>DRCR</OfficeId><OfficeCode><OfficeCodeId>DRCR</OfficeCodeId></Of +ficeCode><Name>RCR Realty Corp</Name><CorporateName>RCR Realty Corp</ +CorporateName><BrokerId>329441</BrokerId><MainOfficeId>7828</MainOffi +ceId><PhoneNumber>7076446338</PhoneNumber><Fax>7076443613</Fax><Addre +ss><commons:preference-order>1</commons:preference-order><commons:add +ress-preference-order>1</commons:address-preference-order><commons:Fu +llStreetAddress>54 Keswick Ct</commons:FullStreetAddress><commons:Cit +y>Vallejo</commons:City><State>CA</State><commons:PostalCode>94591</c +ommons:PostalCode><commons:Country>US</commons:Country></Address><Off +iceEmail>carol@carolgarcia.com</OfficeEmail><Website>http://www.Carol +Garcia.com</Website></Office></Offices><Brokerage><Name>RCR Realty Co +rp</Name><Phone>(707) 644-6338</Phone><Email>carol@carolgarcia.com</E +mail><WebsiteURL>http://www.CarolGarcia.com</WebsiteURL><LogoURL>http +://brokerlogos.listhub.net/BAREISCA/3b9c57c1c41611deb4cb00065bf395fa/ +20091102140434778.jpeg</LogoURL><Address><commons:preference-order>1< +/commons:preference-order><commons:address-preference-order>1</common +s:address-preference-order><commons:FullStreetAddress>54 Keswick Ct</ +commons:FullStreetAddress><commons:City>Vallejo</commons:City><State> +CA</State><commons:PostalCode>94591</commons:PostalCode><commons:Coun +try>US</commons:Country></Address></Brokerage><Location><Latitude>38. +196701</Latitude><Longitude>-122.142478</Longitude><Directions>Hwy 80 +, Exit Red Top Road, Right Oakbrook, Left Silverado Drive, Left Silve +rado Circle.</Directions><County>Solano</County><ParcelId>0180-171-22 +0</ParcelId><Neighborhoods><Neighborhood><Name>Cordelia</Name></Neigh +borhood></Neighborhoods></Location><DetailedCharacteristics><Architec +tureStyle otherDescription="Contemporary">Contemporary</ArchitectureS +tyle><CoolingSystems><CoolingSystem>Central A/C</CoolingSystem></Cool +ingSystems><ExteriorTypes><ExteriorType>Stucco</ExteriorType><Exterio +rType>Wood Siding</ExteriorType></ExteriorTypes><IsNewConstruction>fa +lse</IsNewConstruction><NumFloors>1.0</NumFloors><NumParkingSpaces>2< +/NumParkingSpaces><ParkingTypes><ParkingType>Garage - Detached</Parki +ngType></ParkingTypes><RoofTypes><RoofType>Unknown</RoofType></RoofTy +pes><RoomCount>0</RoomCount><Rooms><Room>Bedroom</Room><Room>Bedroom< +/Room><Room>Bedroom</Room><Room>Full Bath</Room><Room>Full Bath</Room +></Rooms></DetailedCharacteristics><ModificationTimestamp commons:isg +SecurityClass="Public">2015-09-02T23:31:54+00:00</ModificationTimesta +mp><Disclaimer commons:isgSecurityClass="Public">Copyright © 2015 Bay + Area Real Estate Information Services, Inc. All rights reserved. All + information provided by the listing agent/broker is deemed reliable +but is not guaranteed and should be independently verified.</Disclaim +er></Listing> <Listing><Address><commons:preference-order>1</commons:preference- +order><commons:address-preference-order>1</commons:address-preference +-order><commons:FullStreetAddress>218 Curtis Drive</commons:FullStre +etAddress><commons:City>Vallejo</commons:City><State>CA</State><commo +ns:PostalCode>94591</commons:PostalCode><commons:Country>US</commons: +Country></Address><ListPrice commons:isgSecurityClass="Public">395000 +</ListPrice><ListingURL>http://listings.listhub.net/pages/BAREISCA/21 +521093/?channel=rereview</ListingURL><ProviderName>RE ebroker</Provid +erName><ProviderURL>http://www.esonomacounty.com</ProviderURL><Provid +erCategory>Broker</ProviderCategory><LeadRoutingEmail>jatindersinghre +altor@gmail.com</LeadRoutingEmail><Bedrooms>4</Bedrooms><Bathrooms>2< +/Bathrooms><PropertyType otherDescription="Residential">Residential</ +PropertyType><PropertySubType otherDescription="Single Family">Single + Family Detached</PropertySubType><ListingKey>3yd-BAREISCA-21521093</ +ListingKey><ListingCategory>Purchase</ListingCategory><ListingStatus> +Active</ListingStatus><MarketingInformation><commons:PermitAddressOnI +nternet commons:isgSecurityClass="Public">true</commons:PermitAddress +OnInternet><commons:VOWAddressDisplay commons:isgSecurityClass="Publi +c">true</commons:VOWAddressDisplay><commons:VOWAutomatedValuationDisp +lay commons:isgSecurityClass="Public">true</commons:VOWAutomatedValua +tionDisplay><commons:VOWConsumerComment commons:isgSecurityClass="Pub +lic">true</commons:VOWConsumerComment></MarketingInformation><Photos> +<Photo><MediaModificationTimestamp commons:isgSecurityClass="Public"> +2015-08-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>http: +//photos.listhub.net/BAREISCA/21521093/1?lm=20150826T233322</MediaURL +></Photo><Photo><MediaModificationTimestamp commons:isgSecurityClass= +"Public">2015-08-26T23:33:22+00:00</MediaModificationTimestamp><Media +URL>http://photos.listhub.net/BAREISCA/21521093/2?lm=20150826T233322< +/MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecur +ityClass="Public">2015-08-26T23:33:22+00:00</MediaModificationTimesta +mp><MediaURL>http://photos.listhub.net/BAREISCA/21521093/3?lm=2015082 +6T233322</MediaURL></Photo><Photo><MediaModificationTimestamp commons +:isgSecurityClass="Public">2015-08-26T23:33:22+00:00</MediaModificati +onTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/21521093/4?l +m=20150826T233322</MediaURL></Photo><Photo><MediaModificationTimestam +p commons:isgSecurityClass="Public">2015-08-26T23:33:22+00:00</MediaM +odificationTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/215 +21093/5?lm=20150826T233322</MediaURL></Photo><Photo><MediaModificatio +nTimestamp commons:isgSecurityClass="Public">2015-08-26T23:33:22+00:0 +0</MediaModificationTimestamp><MediaURL>http://photos.listhub.net/BAR +EISCA/21521093/6?lm=20150826T233322</MediaURL></Photo><Photo><MediaMo +dificationTimestamp commons:isgSecurityClass="Public">2015-08-26T23:3 +3:22+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhu +b.net/BAREISCA/21521093/7?lm=20150826T233322</MediaURL></Photo><Photo +><MediaModificationTimestamp commons:isgSecurityClass="Public">2015-0 +8-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>http://phot +os.listhub.net/BAREISCA/21521093/8?lm=20150826T233322</MediaURL></Pho +to><Photo><MediaModificationTimestamp commons:isgSecurityClass="Publi +c">2015-08-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>ht +tp://photos.listhub.net/BAREISCA/21521093/9?lm=20150826T233322</Media +URL></Photo><Photo><MediaModificationTimestamp commons:isgSecurityCla +ss="Public">2015-08-26T23:33:22+00:00</MediaModificationTimestamp><Me +diaURL>http://photos.listhub.net/BAREISCA/21521093/10?lm=20150826T233 +322</MediaURL></Photo><Photo><MediaModificationTimestamp commons:isgS +ecurityClass="Public">2015-08-26T23:33:22+00:00</MediaModificationTim +estamp><MediaURL>http://photos.listhub.net/BAREISCA/21521093/11?lm=20 +150826T233322</MediaURL></Photo><Photo><MediaModificationTimestamp co +mmons:isgSecurityClass="Public">2015-08-26T23:33:22+00:00</MediaModif +icationTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/2152109 +3/12?lm=20150826T233322</MediaURL></Photo><Photo><MediaModificationTi +mestamp commons:isgSecurityClass="Public">2015-08-26T23:33:22+00:00</ +MediaModificationTimestamp><MediaURL>http://photos.listhub.net/BAREIS +CA/21521093/13?lm=20150826T233322</MediaURL></Photo><Photo><MediaModi +ficationTimestamp commons:isgSecurityClass="Public">2015-08-26T23:33: +22+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhub. +net/BAREISCA/21521093/14?lm=20150826T233322</MediaURL></Photo><Photo> +<MediaModificationTimestamp commons:isgSecurityClass="Public">2015-08 +-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>http://photo +s.listhub.net/BAREISCA/21521093/15?lm=20150826T233322</MediaURL></Pho +to><Photo><MediaModificationTimestamp commons:isgSecurityClass="Publi +c">2015-08-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>ht +tp://photos.listhub.net/BAREISCA/21521093/16?lm=20150826T233322</Medi +aURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurityCl +ass="Public">2015-08-26T23:33:22+00:00</MediaModificationTimestamp><M +ediaURL>http://photos.listhub.net/BAREISCA/21521093/17?lm=20150826T23 +3322</MediaURL></Photo><Photo><MediaModificationTimestamp commons:isg +SecurityClass="Public">2015-08-26T23:33:22+00:00</MediaModificationTi +mestamp><MediaURL>http://photos.listhub.net/BAREISCA/21521093/18?lm=2 +0150826T233322</MediaURL></Photo><Photo><MediaModificationTimestamp c +ommons:isgSecurityClass="Public">2015-08-26T23:33:22+00:00</MediaModi +ficationTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/215210 +93/19?lm=20150826T233322</MediaURL></Photo><Photo><MediaModificationT +imestamp commons:isgSecurityClass="Public">2015-08-26T23:33:22+00:00< +/MediaModificationTimestamp><MediaURL>http://photos.listhub.net/BAREI +SCA/21521093/20?lm=20150826T233322</MediaURL></Photo><Photo><MediaMod +ificationTimestamp commons:isgSecurityClass="Public">2015-08-26T23:33 +:22+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhub +.net/BAREISCA/21521093/21?lm=20150826T233322</MediaURL></Photo><Photo +><MediaModificationTimestamp commons:isgSecurityClass="Public">2015-0 +8-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>http://phot +os.listhub.net/BAREISCA/21521093/22?lm=20150826T233322</MediaURL></Ph +oto><Photo><MediaModificationTimestamp commons:isgSecurityClass="Publ +ic">2015-08-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>h +ttp://photos.listhub.net/BAREISCA/21521093/23?lm=20150826T233322</Med +iaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurityC +lass="Public">2015-08-26T23:33:22+00:00</MediaModificationTimestamp>< +MediaURL>http://photos.listhub.net/BAREISCA/21521093/24?lm=20150826T2 +33322</MediaURL></Photo><Photo><MediaModificationTimestamp commons:is +gSecurityClass="Public">2015-08-26T23:33:22+00:00</MediaModificationT +imestamp><MediaURL>http://photos.listhub.net/BAREISCA/21521093/25?lm= +20150826T233322</MediaURL></Photo><Photo><MediaModificationTimestamp +commons:isgSecurityClass="Public">2015-08-26T23:33:22+00:00</MediaMod +ificationTimestamp><MediaURL>http://photos.listhub.net/BAREISCA/21521 +093/26?lm=20150826T233322</MediaURL></Photo><Photo><MediaModification +Timestamp commons:isgSecurityClass="Public">2015-08-26T23:33:22+00:00 +</MediaModificationTimestamp><MediaURL>http://photos.listhub.net/BARE +ISCA/21521093/27?lm=20150826T233322</MediaURL></Photo><Photo><MediaMo +dificationTimestamp commons:isgSecurityClass="Public">2015-08-26T23:3 +3:22+00:00</MediaModificationTimestamp><MediaURL>http://photos.listhu +b.net/BAREISCA/21521093/28?lm=20150826T233322</MediaURL></Photo><Phot +o><MediaModificationTimestamp commons:isgSecurityClass="Public">2015- +08-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL>http://pho +tos.listhub.net/BAREISCA/21521093/29?lm=20150826T233322</MediaURL></P +hoto><Photo><MediaModificationTimestamp commons:isgSecurityClass="Pub +lic">2015-08-26T23:33:22+00:00</MediaModificationTimestamp><MediaURL> +http://photos.listhub.net/BAREISCA/21521093/30?lm=20150826T233322</Me +diaURL></Photo><Photo><MediaModificationTimestamp commons:isgSecurity +Class="Public">2015-08-26T23:33:22+00:00</MediaModificationTimestamp> +<MediaURL>http://photos.listhub.net/BAREISCA/21521093/31?lm=20150826T +233322</MediaURL></Photo><Photo><MediaModificationTimestamp commons:i +sgSecurityClass="Public">2015-08-26T23:33:22+00:00</MediaModification +Timestamp><MediaURL>http://photos.listhub.net/BAREISCA/21521093/32?lm +=20150826T233322</MediaURL></Photo></Photos><DiscloseAddress>true</Di +scloseAddress><ListingDescription>This beautiful home has 4 Bedroom, +2 Full bath plan. Hardwood floor in living rm and bedrooms, Tiles in +entry, family rm, kitchen and dinning area. New kitchen cabinets, 2 c +ar garage, RV or Boat parking, New roof, New paint outside, New energ +y efficient windows, New Patio door, New fence, AC, Huge backyard for + endless possibilities, large enough to build another home, multiple +big fruit trees. Lots of street parking.</ListingDescription><MlsId>B +AREISCA</MlsId><MlsName>Bay Area Real Estate Information Services, In +c.</MlsName><MlsNumber>21521093</MlsNumber><LivingArea>1480</LivingAr +ea><LotSize commons:areaUnits="acre">0.36</LotSize><YearBuilt>1978</Y +earBuilt><ListingDate>2015-08-25</ListingDate><ListingTitle>Unknown, +Single Family - Vallejo, CA</ListingTitle><FullBathrooms>2</FullBathr +ooms><ThreeQuarterBathrooms>0</ThreeQuarterBathrooms><HalfBathrooms>0 +</HalfBathrooms><OneQuarterBathrooms>0</OneQuarterBathrooms><PartialB +athrooms>0</PartialBathrooms><ListingParticipants><Participant><Parti +cipantKey>3yd-BAREISCA-E321470</ParticipantKey><ParticipantId>E321470 +</ParticipantId><FirstName>Jatinder</FirstName><LastName>Singh</LastN +ame><Role>Listing</Role><PrimaryContactPhone>7075677141</PrimaryConta +ctPhone><OfficePhone>7607223222</OfficePhone><Email>jatindersinghreal +tor@gmail.com</Email><WebsiteURL>http://www.listhomeforless.com</Webs +iteURL></Participant></ListingParticipants><Offices><Office><OfficeKe +y>3yd-BAREISCA-7AREEB</OfficeKey><OfficeId>7AREEB</OfficeId><OfficeCo +de><OfficeCodeId>7AREEB</OfficeCodeId></OfficeCode><Name>Real Estate +eBrokers Inc</Name><CorporateName>Real Estate eBrokers Inc</Corporate +Name><BrokerId>333695</BrokerId><MainOfficeId>8984</MainOfficeId><Pho +neNumber>7607223222</PhoneNumber><Fax>6193997089</Fax><Address><commo +ns:preference-order>1</commons:preference-order><commons:address-pref +erence-order>1</commons:address-preference-order><commons:FullStreetA +ddress>301 Mission Ave Ste 211</commons:FullStreetAddress><commons:Ci +ty>Oceanside</commons:City><State>CA</State><commons:PostalCode>92054 +</commons:PostalCode><commons:Country>US</commons:Country></Address>< +OfficeEmail>info@reebrokerca.com</OfficeEmail><Website>http://realest +ateebroker.com/</Website></Office></Offices><Brokerage><Name>RE ebrok +er</Name><Phone>(800) 944-1560</Phone><Email>info@reebroker.com</Emai +l><WebsiteURL>http://www.esonomacounty.com</WebsiteURL><LogoURL>http: +//brokerlogos.listhub.net/BAREISCA/06917041e06f11de85f300065bf395fa/2 +0091209081032449.pjpeg</LogoURL><Address><commons:preference-order>1< +/commons:preference-order><commons:address-preference-order>1</common +s:address-preference-order><commons:FullStreetAddress>3129 Tiger Run +Court, Suite A213</commons:FullStreetAddress><commons:City>Carlsbad</ +commons:City><State>CA</State><commons:PostalCode>92010</commons:Post +alCode><commons:Country>US</commons:Country></Address></Brokerage><Lo +cation><Latitude>38.111229</Latitude><Longitude>-122.214935</Longitud +e><Directions>I-80 to Tennessee st, left on Oakwood ave and right on +Curtis Dr.</Directions><County>Solano</County><ParcelId>0081-413-090< +/ParcelId><Zoning>Residential</Zoning><Neighborhoods><Neighborhood><N +ame>Vallejo 1</Name></Neighborhood></Neighborhoods></Location><Detail +edCharacteristics><ArchitectureStyle otherDescription="Unknown">Other +</ArchitectureStyle><CoolingSystems><CoolingSystem>Ceiling Fan(s)</Co +olingSystem><CoolingSystem>Central A/C</CoolingSystem></CoolingSystem +s><ExteriorTypes><ExteriorType>Stucco</ExteriorType></ExteriorTypes>< +FloorCoverings><FloorCovering>Hardwood</FloorCovering><FloorCovering> +Tile</FloorCovering></FloorCoverings><IsNewConstruction>false</IsNewC +onstruction><NumFloors>1.0</NumFloors><NumParkingSpaces>2</NumParking +Spaces><ParkingTypes><ParkingType>Boat</ParkingType><ParkingType>On S +treet</ParkingType><ParkingType>RV</ParkingType></ParkingTypes><RoofT +ypes><RoofType>Unknown</RoofType></RoofTypes><RoomCount>0</RoomCount> +<Rooms><Room>Bedroom</Room><Room>Bedroom</Room><Room>Bedroom</Room><R +oom>Bedroom</Room><Room>Full Bath</Room><Room>Full Bath</Room><Room>K +itchen</Room><Room>Living Room</Room></Rooms><HasRVParking>true</HasR +VParking></DetailedCharacteristics><ModificationTimestamp commons:isg +SecurityClass="Public">2015-09-07T05:30:56+00:00</ModificationTimesta +mp><Disclaimer commons:isgSecurityClass="Public">Copyright © 2015 Bay + Area Real Estate Information Services, Inc. All rights reserved. All + information provided by the listing agent/broker is deemed reliable +but is not guaranteed and should be independently verified.</Disclaim +er></Listing> </listings>

Replies are listed 'Best First'.
Re: Not able to filter the records, which has state CA is first <StateorProvince> tag
by AnomalousMonk (Archbishop) on Sep 25, 2015 at 23:33 UTC

    Further to stevieb's reply: In addition to the wise advice about  <readmore> tags (please see Markup in the Monastery, Writeup Formatting Tips, How do I post a question effectively?, etc.), please consider if it's really necessary to post over forty-nine thousand characters of data in support of your question. The process of cutting down the data to a more manageable size may help you to see a solution to your problem on your own, and a more reasonable size will encourage more Monks to pay attention to the problem because they will not have to spend time and energy chopping down the data. I have not looked at the problem in detail to see just what could go nor am I particularly knowledgeable in this area, but it's difficult for me to imagine that all those bytes are really necessary!


    Give a man a fish:  <%-{-{-{-<

Re: Not able to filter the records, which has state CA is first <StateorProvince> tag
by poj (Abbot) on Sep 26, 2015 at 08:01 UTC
    #!/usr/bin/perl use 5.016; use strict; use warnings; use XML::Twig; open (my $OFILE, '>:utf8', './bits.xml') or die "Could not open [./bits.xml]:\n$!\n$^E"; my $t = XML::Twig->new( twig_roots => { 'Listing' => \&listing, }, pretty_print => 'indented', ); $t->parse(*DATA); sub listing { my ($t,$e) = @_; my $addr = $e->first_child('Address'); my $state = $addr->first_child('State')->text; print $state."\n"; if ($state eq 'CA'){ $t->flush($OFILE); } else { $t->purge; } }
    poj
Re: Not able to filter the records, which has state CA is first <StateorProvince> tag
by stevieb (Canon) on Sep 25, 2015 at 21:13 UTC

    Welcome to the Monastery, Al Sam!

    You've done a great job with the <code></code> tags, but please have a look at the readmore tags for your data. There are many Monks here who are experts at dealing with structured text, and formatting it with readmore tags will make things easier for them. This is not a prerequisite to having your question answered, just a polite recommendation.

    -stevieb

Re: Not able to filter the records, which has state CA is first <StateorProvince> tag
by Anonymous Monk on Sep 26, 2015 at 00:34 UTC

    So what is going wrong?