Dear perl developers, <.p>

Here is my requirement in perl, I have an XML file, I wanted to split it into pieces of xml files.Each piece/file should contain related tags betweenv"<Product>" and "</Product>". please provide me solution.

below is the sample merged xml file.

<?xml version="1.0" encoding="UTF-8"?> <Products><Product><Name/><Definition>OlayProfessional</Definition><li +stprice>0.0000</listprice><Id>195</Id><Enabled>1</Enabled><DisplayNam +e>Pro-X Clear Acne Protocol </DisplayName><SecondDisplayName/><ShortD +escription>A 3-step protocol that uses proven technology to reduce an +d help prevent blemishes and breakouts for consistently clear skin. < +/ShortDescription><LongDescription/><SeoUrl>Pro-X Clear Acne Protocol + </SeoUrl><SmallImageUrl>/en-US/Images/ProX/Pro-X_Clear/Pro_X_Clear_a +cne_protocol_100x100.png</SmallImageUrl><SmallImageAltText/><LargeIma +geUrl>/en-US/Images/ProX/Pro-X_Clear/Pro_X_Clear_acne_protocol_265x26 +5.png</LargeImageUrl><LargeImageAltText/><UpcCode>075609040320</UpcCo +de><MetadataTitle>Pro-X Clear Acne Protocol</MetadataTitle><MetadataD +escription>Experience consistently clear skin! This protocol and acne + system reduces and helps prevent blemishes and breakouts. </Metadata +Description><MetadataKeywords/><ProductAttributes>FullIngredientsList +~Acne Pore Clarifying Cleanser ACTIVE INGREDIENT: SALICYLIC ACID 1.8%. INACTIVE INGREDIENTS: WATER, C +ETYL BETAINE, PPG-15 STEARYL ETHER, SODIUM LAURYL SULFATE, GLYCERIN, +STEARYL ALCOHOL, DISTEARYLDIMONIUM CHLORIDE, CETYL ALCOHOL, STEARETH- +21, BEHENYL ALCOHOL, PPG-30, STEARETH-2, DISODIUM EDTA Acne Skin Clearing Treatment ACTIVE INGREDIENT: SALICYLIC ACID 1.5%. INACTIVE INGREDIENTS: WATER, G +LYCERIN, PPG-15 STEARYL ETHER, POLYMETHYLSILSESQUIOXANE, DIMETHICONE, + ISOHEXADECANE, TITANIUMDIOXIDE, HYDROXYETHYL ACRYLATE/SODIUM ACRYLOY +LDIMETHYL TAURATE COPOLYMER, DECYLENE GLYCOL, STEARYL ALCOHOL, CETYL +ALCOHOL, BEHENYL ALCOHOL, CETEARYL ALCOHOL, CETEARYL GLUCOSIDE, DIMET +HICONOL, BISABOLOL, TOCOPHERYL ACETATE, STEARETH-21, POLYSORBATE 60, +DISODIUM EDTA, ZINGIBER OFFICINALE (GINGER) ROOT EXTRACT Complexion Renewing Lotion WATER, CYCLOPENTASILOXANE, GLYCERIN, NIACINAMIDE, POLYMETHYLSILSESQUIOXANE, PENTYLENEGLYCOL, DIMETHICONE, PANTHENOL, HYDROXYETHYLACRYLATE/SODIUMACRYLOYLDIMETHYL TAURATE COPOLYMER, DECYLENE GLYCOL, DIMETHICONE CROSSPOLYMER, ISOHEXADECANE, ACRYLATES/C10-30 ALKYL ACRYLATE CROSSPOLYMER, UNDECYLENOYLPHENYLALANINE, TRIETHANOLAMINE, BISABOLOL, DIMETHICONOL, TOCOPHERYLACETATE, LAURETH-4, POLYSORBATE60, DISODIUMEDTA, CAPRYLYLGLYCOL, ETHYLHEXYLGLYCERIN, HEXYLENE GLYCOL, ZINGIBER OFFICINALE (GINGER) ROOT EXTRACT, PHENOXYETHANOL, BENZYL ALCOHOL, SODIUM BENZOATE, IODOPROPYNYL BUTYLCARBAMATE|Image_fil +ename~/en-US/Images/ProX/Pro-X_Clear/Pro_X_Clear_acne_protocol_265x26 +5.png|MediumProductImage~/en-US/Images/ProX/Pro-X_Clear/Pro_X_Clear_a +cne_protocol_150x150.png|ProductLine~Olay Professional|ProductType~Sp +ecialty treatments, protocols|SEODisplayName~acne-system|ShortProduct +Description~A 3-step protocol that uses proven technology to reduce a +nd help prevent blemishes and breakouts for consistently clear skin.| +ShortProductDescriptionCopy~Consistently clear skin can be yours! Pro +-X Clear Acne Protocol is a 3-step daily skin care regimen and acne s +ystem that uses proven technology to reduce and help prevent frustrat +ing blemishes and breakouts.|SkinConcern~Acne/blemishes, uneven skin +texture, large &amp; visible pores, combination skin, excessive oil, +blackheads|SkinType~Combination/oily|BuyNowButton~0|FragranceFree~0|I +sNew~0|RequestOffer~0|AdditionalProductDetailCopy~Looking for consist +ently clear skin? Professionally designed Pro-X Clear Acne Protocol i +s an acne system that uses proven technology to reduce and help preve +nt frustrating blemishes and breakouts. Expert formulations balance m +oisture levels and minimize the appearance of oily skin throughout ho +rmonal fluctuations. This protocol also reduces the look of enlarged +pores and uneven texture in just 4 weeks. &lt;br/&gt;&lt;br/&gt; Step 1: Cleanse with Pro-X Clear Acne Pore Clarifying Cleanser&lt;br/& +gt; As you cleanse your skin, it reduces oil and penetrates pores to help +prevent new breakouts. &lt;br/&gt;&lt;br/&gt; Step 2: Treat and prevent with Pro-X Clear Acne Skin Clearing Treatmen +t&lt;br/&gt; Apply to bring breakouts under control and help prevent future ones fr +om forming. &lt;br/&gt;&lt;br/&gt; Step 3: Hydrate and renew with Pro-X Clear Complexion Renewing Lotion& +lt;br/&gt; Sheer hydration helps fade the look of spots and redness for an overal +l renewed appearance.|AdditionalProductDetailSubheadline~product info +rmation|ApplicationInstructionsCopy~Use the Pro-X Clear Acne Protocol + twice daily. &lt;br/&gt;&lt;br/&gt; Step 1: Cleanse&lt;br/&gt; Wet face and apply a small amount of product to hands. Gently massage +on entire face, avoiding eye area. Rinse thoroughly with warm water, +pat dry. If bothersome dryness or peeling occurs, reduce frequency of + application. &lt;br/&gt; &lt;br/&gt; Step 2: Treat &amp; prevent&lt;br/&gt; Clean the skin thoroughly before applying this product. Cover the enti +re affected area with a thin layer one to three times daily. Because +excessive drying of the skin may occur, start with one application da +ily, then gradually increase to two or three times daily if needed or + as directed by a doctor. If bothersome dryness or peeling occurs, re +duce application to once a day or every other day. &lt;br/&gt; &lt;br/&gt; Step 3: Hydrate &amp; renew&lt;br/&gt; Apply a thin, even layer to face.|ApplicationInstructionsSubheadline~a +pplication instructions|FullIngredientsSubheadline~full ingredients|M +etaDescription~Consistently clear skin in 28 days*. This acne system +reduces and helps prevent blemishes and breakouts. |AltViewImage01~Pr +o-X_Clear/Pro_X_Clear_acne_protocol_01_Box.jpg|AltViewImage01AltText~ +Pro X Clear acne protocol|AltViewImage02~Pro-X_Clear/Pro_X_Clear_acne +_protocol_02_Box.jpg|AltViewImage02AltText~Pro X Clear acne protocol| +AltViewSubheadline~other views|AltViewThumbnail01~Pro-X_Clear/Pro_X_C +lear_acne_protocol_01_thumb_box.jpg|AltViewThumbnail01AltText~Pro X C +lear acne protocol|AltViewThumbnail02~Pro-X_Clear/Pro_X_Clear_acne_pr +otocol_02_thumb_box.jpg|AltViewThumbnail02AltText~Pro X Clear acne pr +otocol|AltViewImage03~Pro-X_Clear/Pro_X_Clear_acne_protocol_03_Box.jp +g|AltViewImage03AltText~Pro X Clear acne protocol|AltViewThumbnail03~ +Pro-X_Clear/Pro_X_Clear_acne_protocol_03_thumb_box.jpg|AltViewThumbna +il03AltText~Pro X Clear acne protocol|ResultsAndResearch~&lt;script s +rc="/en-US/Style Library/swfobject.js" type="text/javascript"&gt;&lt; +/script&gt; &lt;script type="text/javascript" language="javascript"&gt; function MM_showHideLayersVideo() { //v9.0 var i, p, v, obj, args = MM_showHideLayersVideo.arguments; for (i = 0; i &lt; (args.length - 2); i += 3) with (document) if (getElementById &amp;&amp; ((obj = get +ElementById(args[i])) != null)) { v = args[i + 2]; if (obj.style) { obj = obj.style; v = (v == 'show') ? 'vi +sible' : (v == 'hide') ? 'hidden' : v; } obj.visibility = v; if (obj.visibility == 'hidden') { document.getElementById('videoHolder').style.display += 'none'; } else if (obj.visibility == 'visible') { document.getElementById('videoHolder').style.display += 'block'; } var flashvars = { splashImage: "/en-US/Images/prox/result +s/DrBerson.jpg", flvPath: "/en-US/flash/Prox/drBersen_390x218.flv" }; var params = { wmode: "opaque" }; swfobject.embedSWF("/en-US/flash/Prox/video_player.swf", +"myContent", "390", "218", "9.0.0", "/en-US/flash/Prox/expressInstall +.swf", flashvars, params); } } function MM_showHideLayers() { //v9.0 var i, p, v, obj, args = MM_showHideLayers.arguments; for (i = 0; i &lt; (args.length - 2); i += 3) with (document) if (getElementById &amp;&amp; ((obj = get +ElementById(args[i])) != null)) { v = args[i + 2]; if (obj.style) { obj = obj.style; v = (v == 'show') ? 'vi +sible' : (v == 'hide') ? 'hidden' : v; } obj.visibility = v; } } &lt;/script&gt; &lt;div class="boutique-landing-left-panel-container backgroun +d_none position_relative" style="background-image:none !important;"&g +t; &lt;div class="whats_New_Title2"&gt;results and research&lt;/div&gt; &lt;div class="product-block"&gt; &lt;div class="image-block"&gt; &lt;a href="/en-US/pdf/PG_ON5_P1Y061_COMP_Amida Consensus_Apr19_v2.pdf +" target="_blank"&gt;&lt;img width="69px" height="69px" src="/en-US/I +mages/Pro-X_Clear/prox_statement.jpg" alt="Olay Professional Alliance + for Skin Care Innovation, Consensus Statement on Pro-X Clear" title= +"Olay Professional Alliance for Skin Care Innovation, Consensus State +ment on Pro-X Clear"&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="text-block text_prof"&gt; &lt;p class="prof_head"&gt;The Alliance’s Consensus Statement on Pro-X + Clear&lt;/p&gt; &lt;p&gt;Our Olay Professional Alliance for Skin Care Innovation stand +s behind our newest line of products. &lt;a href="/en-US/pdf/PG_ON5_P +1Y061_COMP_Amida Consensus_Apr19_v2.pdf" target="_blank"&gt;Read the +statement.&lt;/a&gt;&lt;/p&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="product-block"&gt; &lt;div class="image-block"&gt; &lt;a href="javascript:" onclick="MM_showHideLayers('dropdown','','sh +ow')"&gt;&lt;img width="69px" height="63px" src="/en-US/Images/daily_ +use.jpg" alt="Expectations from Daily Use chart" title="Expectations +from Daily Use chart"&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="text-block text_prof"&gt; &lt;p class="prof_head"&gt;Expectations from Daily Use&lt;/p&gt; &lt;p&gt;This chart outlines the results you can expect after using th +e Pro-X Clear Acne Protocol. &lt;a href="javascript:" onclick="MM_s +howHideLayers('dropdown','','show')"&gt;View results. &lt;/a&gt;&lt;/ +p&gt;&lt;/div&gt; &lt;div id="dropdown" class="drop_main" onmouseover="MM_showHideLayer +s('dropdown','','show')"&gt; &lt;div class="drop_main2"&gt; &lt;div class="drop_close" onclick="MM_showHideLayers('dropdown','','h +ide')"&gt;&lt;img width="18px" height="22px" src="/en-US/Images/daily +use_close.jpg" alt="Close" title="Close"&gt;&lt;/div&gt; &lt;div class="drop_heading"&gt;Expectations from Daily Use&lt;/div&gt +; &lt;div class="clear"&gt;&lt;/div&gt; &lt;table width="550px" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tr align="center"&gt; &lt;td class="table_head"&gt;After first use:&lt;/td&gt; &lt;td class="table_head table_head2"&gt;With continued use: &lt;/ +td&gt; &lt;/tr&gt; &lt;tr &gt; &lt;td class="border_right_none top_none"&gt;&lt;img width="16px" +height="18px" src="/en-US/Images/dailyuse_icon.jpg" &gt;&lt;p&gt;Clea +ns to reduce oil&lt;/p&gt;&lt;/td&gt; &lt;td class="top_none"&gt;&lt;img width="16px" height="18px" src= +"/en-US/Images/dailyuse_icon.jpg" &gt;&lt;p&gt;Provides consistently +clear skin&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="border_right_none"&gt;&lt;img width="16px" height="1 +8px" src="/en-US/Images/dailyuse_icon.jpg" &gt; &lt;p&gt; Cleans to r +educe shine&lt;/p&gt;&lt;/td&gt; &lt;td&gt;&lt;img width="16px" height="18px" src="/en-US/Images/da +ilyuse_icon.jpg" &gt;&lt;p&gt;Helps prevent new acne from forming&lt; +/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="border_right_none"&gt;&lt;img width="16px" height="1 +8px" src="/en-US/Images/dailyuse_icon.jpg" &gt;&lt;p&gt;Provides ligh +tweight, oil-free hydration&lt;/p&gt;&lt;/td&gt; &lt;td&gt;&lt;img width="16px" height="18px" src="/en-US/Images/da +ilyuse_icon.jpg" &gt;&lt;p&gt;Reduces the appearance of enlarged pore +s&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="border_right_none"&gt;&lt;img width="16px" height="1 +8px" src="/en-US/Images/dailyuse_icon.jpg" &gt;&lt;p&gt;Won’t clog po +res&lt;/p&gt;&lt;/td&gt; &lt;td&gt;&lt;img width="16px" height="18px" src="/en-US/Images/da +ilyuse_icon.jpg" &gt;&lt;p&gt;Reduces the appearance of uneven textur +e&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="border_right_none"&gt; &lt;/td&gt; &lt;td&gt;&lt;img width="16px" height="18px" src="/en-US/Images/da +ilyuse_icon.jpg" &gt;&lt;p&gt;Improves overall facial skin appearance +&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="product-block"&gt; &lt;div class="image-block"&gt; &lt;a href="javascript:MM_showHideLayersVideo('dropdown_video' +,'','show');"&gt; &lt;img title="Dr Diane" alt="Dr Diane" src="/en-US/Images +/OlayProfessional/dr_diane.jpg" width="69" height="66" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="text-block text_prof width495"&gt; &lt;p class="prof_head"&gt; Dr. Diane Berson: Treating Acne with a Daily Regimen&lt;/p +&gt; &lt;p&gt; In this brief video, Dr. Berson highlights the main causes + of acne and the importance of using a daily regimen to achieve clear skin. &lt;a href +="javascript:MM_showHideLayersVideo('dropdown_video','','show');"&gt; Watch video.&lt;/a&gt; &lt;/p&gt; &lt;p&gt; &lt;a href="/ExpertProfile.aspx?UserID=2011511131238"&gt;V +iew Dr. Berson’s biography.&lt;/a&gt; &lt;/p&gt; &lt;/div&gt; &lt;div style="top: 60px" id="dropdown_video" class="drop_main_vid +eo" onmouseover="MM_showHideLayers('dropdown_video','','show')"&gt; &lt;div class="drop_main2 padding12bottom"&gt; &lt;div class="drop_close" onclick="MM_showHideLayersVideo +('dropdown_video','','hide')"&gt; &lt;img title="Close" alt="Close" src="/en-US/Images/d +ailyuse_close.jpg" width="18" height="22" /&gt;&lt;/div&gt; &lt;div class="drop_heading"&gt; Treating Acne with a Daily Regimen&lt;/div&gt; &lt;div id="videoHolder"&gt; &lt;div id="myContent"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="drop2_text"&gt; &lt;a title="Click Here" href="/ExpertProfile.aspx?Use +rID=2011511131238"&gt;Click here&lt;/a&gt; to view additional content.&lt;/div&gt; &lt;div class="clear"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt;|AwardsSealImageUrl~/en-US/Images/award images/award image +s/90x90.jpg</ProductAttributes><Categories><CategoryId>1</CategoryId> +<Rank>0</Rank></Categories><Categories><CategoryId>17</CategoryId><Ra +nk>0</Rank></Categories><RelatedProducts><ProductsName>196</ProductsN +ame><Rank/></RelatedProducts><RelatedProducts><ProductsName>197</Prod +uctsName><Rank/></RelatedProducts></Product><Product><Name/><Definiti +on>OlayProfessional</Definition><listprice>0.0000</listprice><Id>196< +/Id><Enabled>1</Enabled><DisplayName>Pro-X Clear Intensive Refining S +ulfur Mask</DisplayName><SecondDisplayName/><ShortDescription>This ma +sk dries breakouts, immediately absorbs oil, and reduces overall shin +e.</ShortDescription><LongDescription/><SeoUrl>Pro-X Clear Intensive +Refining Sulfur Mask</SeoUrl><SmallImageUrl>/en-US/Images/ProX/Pro-X_ +Clear/Pro_X_Clear_sulfur_mask_100x100.png</SmallImageUrl><SmallImageA +ltText/><LargeImageUrl>/en-US/Images/ProX/Pro-X_Clear/Pro_X_Clear_sul +fur_mask_265x265.png</LargeImageUrl><LargeImageAltText/><UpcCode>0756 +09040337</UpcCode><MetadataTitle>Pro-X Clear Intensive Refining Sulfu +r Mask</MetadataTitle><MetadataDescription>This refining mask dries b +reakouts, immediately absorbs oil and reduces overall shine. </Metada +taDescription><MetadataKeywords/><ProductAttributes>FullIngredientsLi +st~ACTIVE INGREDIENT: SULFUR 10% INACTIVE INGREDIENTS: WATER, BENTONITE, PROPYLENEGLYCOL, TALC, KAOLIN, + ACACIA SENEGAL GUM, TITANIUMDIOXIDE, PVP, GLYCERIN, SODIUM PCA, DISO +DIUMEDTA, ALLANTOIN, CITRICACID, PRUNUS AMYGDALUSDULCIS (SWEET ALMOND +) OIL, PHENOXYETHANOL, METHYLPARABEN, ETHYLPARABEN, PROPYLPARABEN |MediumProductImage~/en-US/Images/Pro_X_Clear_sulfur_mask_150x150.png| +ProductLine~Olay Professional|ProductName~Pro-X Clear Intensive Refin +ing Sulfur Mask|ProductType~Specialty treatments|SEODisplayName~refin +ing-mask|ShortProductDescription~This mask dries breakouts, immediate +ly absorbs oil, and reduces overall shine.|ShortProductDescriptionCop +y~This sulfur acne treatment is applied as a refining mask and can be + used up to twice a week to: &lt;br/&gt;&lt;br/&gt; • Dry current breakouts&lt;br/&gt; • Immediately absorb oil&lt;br/&gt; • Reduce overall shine |SkinConcern~Excessive oil, combination skin, acne &amp; blemishes|Ski +nType~Combination/oily|BuyNowButton~0|FragranceFree~0|IsNew~0|Request +Offer~0|AdditionalProductDetailCopy~This new refining mask dries curr +ent breakouts, immediately absorbs oil and reduces overall shine.|Add +itionalProductDetailSubheadline~product information|AlsoRecommendedSu +bheadline~also recommended |ApplicationInstructionsCopy~Apply to a clean face. Cover affected are +a with a thin, even layer, avoiding the eye area. Allow product to dr +y on the skin for 5-10 minutes. Rinse thoroughly with water to remove + mask and pat dry. If bothersome dryness or peeling occurs, reduce fr +equency of application.|ApplicationInstructionsSubheadline~applicatio +n instructions|FullIngredientsSubheadline~full ingredients|ResultsAnd +Research~&lt;script src="/en-US/Style Library/swfobject.js" type="tex +t/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript"&gt; function MM_showHideLayersVideo() { //v9.0 var i, p, v, obj, args = MM_showHideLayersVideo.arguments; for (i = 0; i &lt; (args.length - 2); i += 3) with (document) if (getElementById &amp;&amp; ((obj = get +ElementById(args[i])) != null)) { v = args[i + 2]; if (obj.style) { obj = obj.style; v = (v == 'show') ? 'vi +sible' : (v == 'hide') ? 'hidden' : v; } obj.visibility = v; if (obj.visibility == 'hidden') { document.getElementById('videoHolder').style.display += 'none'; } else if (obj.visibility == 'visible') { document.getElementById('videoHolder').style.display += 'block'; } var flashvars = { splashImage: "/en-US/Images/prox/result +s/DrBerson.jpg", flvPath: "/en-US/flash/Prox/drBersen_390x218.flv" }; var params = { wmode: "opaque" }; swfobject.embedSWF("/en-US/flash/Prox/video_player.swf", +"myContent", "390", "218", "9.0.0", "/en-US/flash/Prox/expressInstall +.swf", flashvars, params); } } function MM_showHideLayers() { //v9.0 var i, p, v, obj, args = MM_showHideLayers.arguments; for (i = 0; i &lt; (args.length - 2); i += 3) with (document) if (getElementById &amp;&amp; ((obj = get +ElementById(args[i])) != null)) { v = args[i + 2]; if (obj.style) { obj = obj.style; v = (v == 'show') ? 'vi +sible' : (v == 'hide') ? 'hidden' : v; } obj.visibility = v; } } &lt;/script&gt; &lt;div class="boutique-landing-left-panel-container backgroun +d_none position_relative" style="background-image: none ! important;" +&gt; &lt;div class="whats_New_Title2"&gt;results and research&lt;/div&gt; &lt;div class="product-block"&gt; &lt;div class="image-block"&gt; &lt;a href="/en-US/Pdf/PG_ON5_P1Y061_COMP_Amida Consensus_Apr19_v2.pdf +" target="_blank"&gt;&lt;img width="69px" height="69px" src="/en-US/I +mages/Pro-X_Clear/prox_statement.jpg" alt="Olay Professional Alliance + for Skin Care Innovation, Consensus Statement on Pro-X Clear" title= +"Olay Professional Alliance for Skin Care Innovation, Consensus State +ment on Pro-X Clear"&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="text-block text_prof"&gt; &lt;p class="prof_head"&gt;The Alliance’s Consensus Statement on Pro-X + Clear&lt;/p&gt; &lt;p&gt;Our Olay Professional Alliance for Skin Care Innovation stand +s behind our newest line of products. &lt;a href="/en-US/Pdf/PG_ON5_P +1Y061_COMP_Amida Consensus_Apr19_v2.pdf" target="_blank"&gt;Read the +statement.&lt;/a&gt;&lt;/p&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="product-block"&gt; &lt;div class="image-block"&gt; &lt;a href="javascript:MM_showHideLayersVideo('dropdown_video' +,'','show');"&gt; &lt;img title="Dr Diane" alt="Dr Diane" src="/en-US/Images +/OlayProfessional/dr_diane.jpg" width="69" height="66" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="text-block text_prof width495"&gt; &lt;p class="prof_head"&gt; Dr. Diane Berson: Treating Acne with a Daily Regimen&lt;/p +&gt; &lt;p&gt; In this brief video, Dr. Berson highlights the main causes + of acne and the importance of using a daily regimen to achieve clear skin. &lt;a href +="javascript:MM_showHideLayersVideo('dropdown_video','','show');"&gt; Watch video.&lt;/a&gt; &lt;/p&gt; &lt;p&gt; &lt;a href="/ExpertProfile.aspx?UserID=2011511131238"&gt;V +iew Dr. Berson’s biography.&lt;/a&gt; &lt;/p&gt; &lt;/div&gt; &lt;div style="top: 60px" id="dropdown_video" class="drop_main_vid +eo" onmouseover="MM_showHideLayers('dropdown_video','','show')"&gt; &lt;div class="drop_main2 padding12bottom"&gt; &lt;div class="drop_close" onclick="MM_showHideLayersVideo +('dropdown_video','','hide')"&gt; &lt;img title="Close" alt="Close" src="/en-US/Images/d +ailyuse_close.jpg" width="18" height="22" /&gt;&lt;/div&gt; &lt;div class="drop_heading"&gt; Treating Acne with a Daily Regimen&lt;/div&gt; &lt;div id="videoHolder"&gt; &lt;div id="myContent"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="drop2_text"&gt; &lt;a title="Click Here" href="/ExpertProfile.aspx?Use +rID=2011511131238"&gt;Click here&lt;/a&gt; to view additional content.&lt;/div&gt; &lt;div class="clear"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt;</ProductAttributes><Categories><CategoryId>1</CategoryId> +<Rank>0</Rank></Categories><Categories><CategoryId>17</CategoryId><Ra +nk>0</Rank></Categories><RelatedProducts><ProductsName>195</ProductsN +ame><Rank>1</Rank></RelatedProducts><RelatedProducts><ProductsName>19 +7</ProductsName><Rank/></RelatedProducts></Product><Product><Name/><D +efinition>OlayProfessional</Definition><listprice>0.0000</listprice>< +Id>197</Id><Enabled>1</Enabled><DisplayName>Pro-X Clear UV Moisturize +r — SPF 15</DisplayName><SecondDisplayName/><ShortDescription>This oi +l-free formula offers UVA/UVB protection without clogging pores.</Sho +rtDescription><LongDescription/><SeoUrl>Pro-X Clear UV Moisturizer — +SPF 15</SeoUrl><SmallImageUrl>/en-US/Images/ProX/Pro-X_Clear/Pro_X_Cl +ear_UV_moisturizer_100x100.png</SmallImageUrl><SmallImageAltText/><La +rgeImageUrl>/en-US/Images/ProX/Pro-X_Clear/Pro_X_Clear_UV_moisturizer +_265x265.png</LargeImageUrl><LargeImageAltText/><UpcCode>075609040962 +</UpcCode><MetadataTitle>Pro-X Clear UV Moisturizer — SPF 15</Metadat +aTitle><MetadataDescription>This oil-free formula offers UVA/UVB prot +ection without clogging pores. </MetadataDescription><MetadataKeyword +s/><ProductAttributes>FullIngredientsList~ACTIVE INGREDIENTS: OCTISAL +ATE 4.5%, AVOBENZONE 3%, HOMOSALATE 3%, OCTOCRYLENE 2.6% INACTIVE INGREDIENTS: WATER, GLYCERIN, POLYETHYLENE, DIMETHICONE, ISO +PROPYL ISOSTEARATE, PENTYLENEGLYCOL, PANTHENOL, TRIETHANOLAMINE, TOCO +PHERYL ACETATE, SODIUM DEHYDROACETATE, STEARYL ALCOHOL, BEHENYL ALCOH +OL, CETYL ALCOHOL, HYDROXYETHYLCELLULOSE, DIMETHICONOL, PEG-100 STEAR +ATE, CETEARYL GLUCOSIDE, CETEARYL ALCOHOL, ACRYLATES/C10-30 ALKYL ACR +YLATE CROSSPOLYMER, DISODIUMEDTA, CARBOMER, IODOPROPYNYL BUTYLCARBAMA +TE, BENZYL ALCOHOL, METHYLPARABEN, ETHYLPARABEN, PROPYLPARABEN |MediumProductImage~/en-US/Images/ProX/Pro-X_Clear/Pro_X_Clear_UV_mois +turizer_150x150.png|ProductLine~Olay Professional|ProductName~Pro-X C +lear UV Moisturizer — SPF 15|SEODisplayName~oil-free-spf-moisturizer| +ShortProductDescription~This oil-free formula offers UVA/UVB protecti +on without clogging pores.|ShortProductDescriptionCopy~This oil-free +SPF moisturizer helps protect your skin against harmful UVA/UVB sun d +amage.&lt;br/&gt; • Contains SPF 15 |SkinConcern~Combination skin|SkinType~Combination/oily|BuyNowButton~0 +|FragranceFree~0|IsNew~0|RequestOffer~0|AdditionalProductDetailCopy~T +his oil-free SPF moisturizer has a non-comedogenic formula that moist +urizes skin and has SPF 15 to help protect your skin against harmful +UVA/UVB rays.|AdditionalProductDetailSubheadline~product information| +AlsoRecommendedSubheadline~also recommended|ApplicationInstructionsCo +py~Apply evenly before sun exposure and as needed. For children under + 6 months of age, consult a doctor.|ApplicationInstructionsSubheadlin +e~application instructions|FullIngredientsSubheadline~full ingredient +s|ResultsAndResearch~&lt;script src="/en-US/Style Library/swfobject.j +s" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript"&gt; function MM_showHideLayersVideo() { //v9.0 var i, p, v, obj, args = MM_showHideLayersVideo.arguments; for (i = 0; i &lt; (args.length - 2); i += 3) with (document) if (getElementById &amp;&amp; ((obj = get +ElementById(args[i])) != null)) { v = args[i + 2]; if (obj.style) { obj = obj.style; v = (v == 'show') ? 'vi +sible' : (v == 'hide') ? 'hidden' : v; } obj.visibility = v; if (obj.visibility == 'hidden') { document.getElementById('videoHolder').style.display += 'none'; } else if (obj.visibility == 'visible') { document.getElementById('videoHolder').style.display += 'block'; } var flashvars = { splashImage: "/en-US/Images/prox/result +s/DrBerson.jpg", flvPath: "/en-US/flash/Prox/drBersen_390x218.flv" }; var params = { wmode: "opaque" }; swfobject.embedSWF("/en-US/flash/Prox/video_player.swf", +"myContent", "390", "218", "9.0.0", "/en-US/flash/Prox/expressInstall +.swf", flashvars, params); } } function MM_showHideLayers() { //v9.0 var i, p, v, obj, args = MM_showHideLayers.arguments; for (i = 0; i &lt; (args.length - 2); i += 3) with (document) if (getElementById &amp;&amp; ((obj = get +ElementById(args[i])) != null)) { v = args[i + 2]; if (obj.style) { obj = obj.style; v = (v == 'show') ? 'vi +sible' : (v == 'hide') ? 'hidden' : v; } obj.visibility = v; } } &lt;/script&gt; &lt;div class="boutique-landing-left-panel-container backgroun +d_none position_relative" style="background-image: none ! important;" +&gt; &lt;div class="whats_New_Title2"&gt;results and research&lt;/div&gt; &lt;div class="product-block"&gt; &lt;div class="image-block"&gt; &lt;a href="/en-US/Pdf/PG_ON5_P1Y061_COMP_Amida Consensus_Apr19_v2.pdf +" target="_blank"&gt;&lt;img width="69px" height="69px" src="/en-US/I +mages/Pro-X_Clear/prox_statement.jpg" alt="Olay Professional Alliance + for Skin Care Innovation, Consensus Statement on Pro-X Clear" title= +"Olay Professional Alliance for Skin Care Innovation, Consensus State +ment on Pro-X Clear"&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="text-block text_prof"&gt; &lt;p class="prof_head"&gt;The Alliance’s Consensus Statement on Pro-X + Clear&lt;/p&gt; &lt;p&gt;Our Olay Professional Alliance for Skin Care Innovation stand +s behind our newest line of products. &lt;a href="/en-US/Pdf/PG_ON5_P +1Y061_COMP_Amida Consensus_Apr19_v2.pdf" target="_blank"&gt;Read the +statement.&lt;/a&gt;&lt;/p&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="product-block"&gt; &lt;div class="image-block"&gt; &lt;a href="javascript:MM_showHideLayersVideo('dropdown_video' +,'','show');"&gt; &lt;img title="Dr Diane" alt="Dr Diane" src="/en-US/Images +/OlayProfessional/dr_diane.jpg" width="69" height="66" /&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="text-block text_prof width495"&gt; &lt;p class="prof_head"&gt; Dr. Diane Berson: Treating Acne with a Daily Regimen&lt;/p +&gt; &lt;p&gt; In this brief video, Dr. Berson highlights the main causes + of acne and the importance of using a daily regimen to achieve clear skin. &lt;a href +="javascript:MM_showHideLayersVideo('dropdown_video','','show');"&gt; Watch video.&lt;/a&gt; &lt;/p&gt; &lt;p&gt; &lt;a href="/ExpertProfile.aspx?UserID=2011511131238"&gt;V +iew Dr. Berson’s biography.&lt;/a&gt; &lt;/p&gt; &lt;/div&gt; &lt;div style="top: 60px" id="dropdown_video" class="drop_main_vid +eo" onmouseover="MM_showHideLayers('dropdown_video','','show')"&gt; &lt;div class="drop_main2 padding12bottom"&gt; &lt;div class="drop_close" onclick="MM_showHideLayersVideo +('dropdown_video','','hide')"&gt; &lt;img title="Close" alt="Close" src="/en-US/Images/d +ailyuse_close.jpg" width="18" height="22" /&gt;&lt;/div&gt; &lt;div class="drop_heading"&gt; Treating Acne with a Daily Regimen&lt;/div&gt; &lt;div id="videoHolder"&gt; &lt;div id="myContent"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="drop2_text"&gt; &lt;a title="Click Here" href="/ExpertProfile.aspx?Use +rID=2011511131238"&gt;Click here&lt;/a&gt; to view additional content.&lt;/div&gt; &lt;div class="clear"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/div&gt;</ProductAttributes><Categories><CategoryId>1</CategoryId> +<Rank>0</Rank></Categories><Categories><CategoryId>17</CategoryId><Ra +nk>0</Rank></Categories><RelatedProducts><ProductsName>195</ProductsN +ame><Rank>1</Rank></RelatedProducts><RelatedProducts><ProductsName>19 +6</ProductsName><Rank/></RelatedProducts></Product></Products>


In reply to split an xml file into pieces by vamsi.padakandla

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.