Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Zezinho S/A LOCK

[Resolvido] Carregar arquivo XML externo

Recommended Posts

E ai galera beleza

 

Estou precisando carregar arquivo XML externo, porém toda vez que carrego o arquivo dá erro.

O codigo a seguir é a forma como estou puxando o arquivo, acho que nessa parte não tem erro:

 

<form method="post" action="link.php" enctype="multipart/form-data">
   <table>
   <tr>
   <td>
   Selecione o arquivo: <input class="input"  type="file" name="arquivo" />
   </td>
   </tr>
   <tr>
   <td align="center">
   <input type="submit" class="button" value="Vizualizar Item" />
   </td>
   </tr>
   </table>
</form>

 

O codigo abaixo é onde estou lendo os arquivos, aqui é o problema pois ele não aceita arquivos externos.

Estou utilizando a biblioteca DomDocument porem acho que ele é o problema mas não posso deixar de usa-lo, pois as informações que tenho nos XML estão em tag's apenas por esse motivo.

 


$filename = $_FILES['arquivo']['name'];

$dom = new DomDocument;
$dom->preserveWhiteSpace = FALSE;
$dom->load($filename);

	echo '<br>---------------------------------------------------------------------------------------------------------------<br>';
	echo '<br>Sub-total pedido não finalizado<br>';

	$paramsAAA = $dom->getElementsByTagName('BUDGET'); // Find Sections
	$kq=0;
	foreach ($paramsAAA as $paramAAA) //go to each section 1 by 1
	{

	echo $kq." <B>- Sub Valor Geral :-> ".$paramsAAA->item($kq)->getAttribute('VALUE')."</b><br>";	
	$kq++;   

	}

	echo '<br>---------------------------------------------------------------------------------------------------------------<br>';


 

toda vez que coloco o arquivo direto no codigo e o mesmo arquivo na mesma pagina não dá erro, porem qundo coloco ele fora da mesma pasta ele da erro

 

estou colocando o erro abaixo para saberem qual é, segue a seguir:

 

Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "/home/storage/e/97/dc/mkplanejados/public_html/sistemaMK/1339358411_xml 3 pecas.xml"

 

 

Caso alguem tenha algum comentario sobre o codigo acima agradeço.

 

Valeuuuuu

Compartilhar este post


Link para o post
Compartilhar em outros sites

Para conseguir ler um arquivo externamente você deve ter habilitado em seu php.ini

allow_url_fopen = On (http://php.net/allow-url-fopen).

 

Acredito que você possa usar também o SimpleXml para ler isso, mas isso vai de cada caso.

 

Bons estudos...

Compartilhar este post


Link para o post
Compartilhar em outros sites

Coloque o XML que você está tentando ler para darmos uma olhada.

@braços

Compartilhar este post


Link para o post
Compartilhar em outros sites

Olá,

 

conforme pedido segue abaixo o arquivo xml. vou postar outro leitor mais completo logo no final do arquivo xml.

 

<?xml version="1.0" encoding="utf-8"?>
<LISTING CUSTOMERNUMBER="140" DESCRIPTION="Pedido" DATE="23/11/2011" HOUR="11:08:48" CURRENCYSYMBOL="R$" IDTYPE="pedido_df" UNIT="mm" AMBIENTS="2\0" QUANTITYINCREASE="N" DEFAULTPRICETABLEUSED="Y" ONLYSELECTEDITEMS="N" ALLOWSUPPLEMENTARYITEMS="Y" ALLOWEXTRAITEMS="Y">
 <ABOUTPROMOB VERSION="5" REVISION="33" BUILD="10" SYSTEM="xxxxxxxxx" DISTRIBUTION="Studio" SERIALNUMBER="26872286" PRODUCTCODE="CBGHGJHQOK" CUSTOMERNUMBER="139" SYSTEMREVISION="14/11/2011 10:29:37">
   <LIBRARIES>
     <LIBRARY LINE="Decore" REVISION="2011_02" VERSION="2011" />
     <LIBRARY LINE="fat" REVISION="" VERSION="" />
     <LIBRARY LINE="bibliotecas" REVISION="" VERSION="" />
     <LIBRARY LINE="aer" REVISION="" VERSION="" />
     <LIBRARY LINE="dore" REVISION="" VERSION="" />
     <LIBRARY LINE="coz" REVISION="" VERSION="" />
     <LIBRARY LINE="del" REVISION="" VERSION="" />
     <LIBRARY LINE="loual" REVISION="" VERSION="" />
     <LIBRARY LINE="hom" REVISION="" VERSION="" />
     <LIBRARY LINE="por" REVISION="" VERSION="" />
     <LIBRARY LINE="ace" REVISION="" VERSION="" />
     <LIBRARY LINE="off" REVISION="" VERSION="" />
     <LIBRARY LINE="brap" REVISION="" VERSION="" />
     <LIBRARY LINE="fal" REVISION="" VERSION="" />
     <LIBRARY LINE="Pai" REVISION="" VERSION="" />
     <LIBRARY LINE="noha" REVISION="" VERSION="" />
     <LIBRARY LINE="tam" REVISION="" VERSION="" />
     <LIBRARY LINE="bib" REVISION="" VERSION="" />
     <LIBRARY LINE="dor" REVISION="" VERSION="" />
     <LIBRARY LINE="Cozinomica" REVISION="" VERSION="" />
   </LIBRARIES>
 </ABOUTPROMOB>

 <CUSTOMERSDATA val="">
   <DATA ID="rep_nomeempresa" VALUE="aaaaaaaaaaaaaaaaaaaaaaaaa" />
   <DATA ID="rep_codempresa" VALUE="1373" />
   <DATA ID="rep_bairroempresa" VALUE="X" />
   <DATA ID="email" VALUE="x" />
   <DATA ID="rep_cidadeempresa" VALUE="X" />
   <DATA ID="fone" VALUE="x" />
   <DATA ID="cep" VALUE="x" />
   <DATA ID="uf" VALUE="x" />
   <DATA ID="nomecliente" VALUE="x" />
   <DATA ID="rep_telefoneempresa" VALUE="X" />
   <DATA ID="endentrega" VALUE="x" />
   <DATA ID="rep_emailempresa" VALUE="XX" />
   <DATA ID="rep_cepenpresa" VALUE="X" />
   <DATA ID="rg" VALUE="x" />
   <DATA ID="rep_contatoempresa" VALUE="X" />
   <DATA ID="cpfcnpj" VALUE="x" />
   <DATA ID="endereco" VALUE="x" />
   <DATA ID="rep_ordemcompra" VALUE="3201 DORM" />
   <DATA ID="rep_enderecoempresa" VALUE="X" />
   <DATA ID="cidade" VALUE="x" />
   <DATA ID="celular" VALUE="x" />
   <DATA ID="bairro" VALUE="x" />
   <DATA ID="rep_ufempresa" VALUE="X" />
   <DATA ID="observacoes" VALUE="" />
 </CUSTOMERSDATA>
 <TOTALPRICES TABLE="1083.37">
   <MARGINS>
     <ORDER VALUE="1098.16">
       <MARGIN ID="coze_icms" DESCRIPTION="ICMS" VALUE="0" />
       <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" VALUE="88.24001" />
       <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
       <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" VALUE="-48.5" />
       <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" VALUE="-27.62" />
       <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
       <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
       <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
       <MARGIN ID="Acrios_icms" DESCRIPTION="ICMS" VALUE="0" />
       <MARGIN ID="Acrios_IPI" DESCRIPTION="IPI - IPI Ace" VALUE="5.43" />
       <MARGIN ID="Acrios_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
       <MARGIN ID="Acrios_desc_2" DESCRIPTION="Desconto 2" VALUE="-2.96" />
       <MARGIN ID="Acrios_desc_3" DESCRIPTION="Desconto 3" VALUE="-1.69" />
       <MARGIN ID="Acrios_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
       <MARGIN ID="Acrios_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
       <MARGIN ID="Acrios_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
       <MARGIN ID="coas_icms" DESCRIPTION="ICMS" VALUE="0" />
       <MARGIN ID="coas_IPI" DESCRIPTION="IPI - Geral" VALUE="14.67" />
       <MARGIN ID="coas_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
       <MARGIN ID="coas_desc_2" DESCRIPTION="Desconto 2" VALUE="-8.05" />
       <MARGIN ID="coas_desc_3" DESCRIPTION="Desconto 3" VALUE="-4.6" />
       <MARGIN ID="coas_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
       <MARGIN ID="coas_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
       <MARGIN ID="coas_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
     </ORDER>
     <BUDGET VALUE="5600.61">
       <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="3667.25" />
       <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
       <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
       <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
       <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
       <MARGIN ID="coze_frete" DESCRIPTION="Frete" VALUE="0" />
       <MARGIN ID="coze_montagem" DESCRIPTION="Montagem" VALUE="0" />
       <MARGIN ID="Acrios_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="225.46" />
       <MARGIN ID="Acrios_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
       <MARGIN ID="Acrios_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
       <MARGIN ID="Acrios_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
       <MARGIN ID="Acrios_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
       <MARGIN ID="Acrios_frete" DESCRIPTION="Frete" VALUE="0" />
       <MARGIN ID="Acrios_montagem" DESCRIPTION="Montagem" VALUE="0" />
       <MARGIN ID="coas_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="609.74" />
       <MARGIN ID="coas_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
       <MARGIN ID="coas_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
       <MARGIN ID="coas_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
       <MARGIN ID="coas_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
       <MARGIN ID="coas_frete" DESCRIPTION="Frete" VALUE="0" />
       <MARGIN ID="coas_montagem" DESCRIPTION="Montagem" VALUE="0" />
     </BUDGET>
   </MARGINS>
 </TOTALPRICES>
 <AMBIENTS>
   <AMBIENT DESCRIPTION="Difratelli - Ambiente 3D" UNIQUEID="2\0">
     <TOTALPRICES TABLE="1083.37AA">
       <MARGINS>
         <ORDER VALUE="1098.16">
           <MARGIN ID="coze_icms" DESCRIPTION="ICMS" VALUE="0" />
           <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" VALUE="88.24001" />
           <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
           <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" VALUE="-48.5" />
           <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" VALUE="-27.62" />
           <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
           <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
           <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
           <MARGIN ID="Acrios_icms" DESCRIPTION="ICMS" VALUE="0" />
           <MARGIN ID="Acrios_IPI" DESCRIPTION="IPI - IPI Ace" VALUE="5.43" />
           <MARGIN ID="Acrios_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
           <MARGIN ID="Acrios_desc_2" DESCRIPTION="Desconto 2" VALUE="-2.96" />
           <MARGIN ID="Acrios_desc_3" DESCRIPTION="Desconto 3" VALUE="-1.69" />
           <MARGIN ID="Acrios_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
           <MARGIN ID="Acrios_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
           <MARGIN ID="Acrios_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
           <MARGIN ID="coas_icms" DESCRIPTION="ICMS" VALUE="0" />
           <MARGIN ID="coas_IPI" DESCRIPTION="IPI - Geral" VALUE="14.67" />
           <MARGIN ID="coas_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
           <MARGIN ID="coas_desc_2" DESCRIPTION="Desconto 2" VALUE="-8.05" />
           <MARGIN ID="coas_desc_3" DESCRIPTION="Desconto 3" VALUE="-4.6" />
           <MARGIN ID="coas_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
           <MARGIN ID="coas_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
           <MARGIN ID="coas_acr_1_pra" DESCRIPTION="Acréscimo " VALUE="0" />
         </ORDER>
         <BUDGET VALUE="5600.61">
           <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="3667.25" />
           <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
           <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
           <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
           <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
           <MARGIN ID="coze_frete" DESCRIPTION="Frete" VALUE="0" />
           <MARGIN ID="coze_montagem" DESCRIPTION="Montagem" VALUE="0" />
           <MARGIN ID="Acrios_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="225.46" />
           <MARGIN ID="Acrios_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
           <MARGIN ID="Acrios_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
           <MARGIN ID="Acrios_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
           <MARGIN ID="Acrios_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
           <MARGIN ID="Acrios_frete" DESCRIPTION="Frete" VALUE="0" />
           <MARGIN ID="Acrios_montagem" DESCRIPTION="Montagem" VALUE="0" />
           <MARGIN ID="coas_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="609.74" />
           <MARGIN ID="coas_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
           <MARGIN ID="coas_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
           <MARGIN ID="coas_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
           <MARGIN ID="coas_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
           <MARGIN ID="coas_frete" DESCRIPTION="Frete" VALUE="0" />
           <MARGIN ID="coas_montagem" DESCRIPTION="Montagem" VALUE="0" />
         </BUDGET>
       </MARGINS>
     </TOTALPRICES>
     <MODELINFORMATIONS>
       <MODELCATEGORYINFORMATIONS>

         <MODELCATEGORYINFORMATION DESCRIPTION="Cotà">
           <MODELINFORMATIONS>
             <MODELINFORMATION DESCRIPTION="Coos" ID="dif_cor">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="asddfgdfhdfh" ID="raerwerwerwer" />
                 <MODELTYPEINFORMATION DESCRIPTION="asdasdasdasdasdas" ID="werwerwerwerwerwerwerw" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
             <MODELINFORMATION DESCRIPTION="Fundos" ID="dif_coze_fundos">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="erwer" ID="dif_coze_fun_duraplac;dif_coze_duraplac_branco" />
                 <MODELTYPEINFORMATION DESCRIPTION="vxcvcvxcv" ID="dif_coze_fun_duraplac;dif_coze_duraplac_areia_perola" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
             <MODELINFORMATION DESCRIPTION="123456789" ID="32cvo">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="fsdgdfh45345" ID="234erdf" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
             <MODELINFORMATION DESCRIPTION="Portas" ID="123werdfgbv">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="5245B" ID="qwertyuidgfhjxcvb" />
                 <MODELTYPEINFORMATION DESCRIPTION="qeryttiuowertyy" ID="35tgrtsrt56y75" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
             <MODELINFORMATION DESCRIPTION="5645t645y6f5gtdfg" ID="45r34r5fgfd">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="453t4fvgrfgter" ID="34t5vgfrffdergf" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
           </MODELINFORMATIONS>
         </MODELCATEGORYINFORMATION>


	  <MODELCATEGORYINFORMATION DESCRIPTION="Asórios">
           <MODELINFORMATIONS>
             <MODELINFORMATION DESCRIPTION="53rft4gsdgtd" ID="45tr4t5fsdvsdg">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="or_192_100" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
             <MODELINFORMATION DESCRIPTION="Pures" ID="ace_pux">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="Nor_192mm_03" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
           </MODELINFORMATIONS>
         </MODELCATEGORYINFORMATION>


         <MODELCATEGORYINFORMATION DESCRIPTION="Coz">
           <MODELINFORMATIONS>
             <MODELINFORMATION DESCRIPTION="Corpo" ID="coz">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="Mel" ID="coz_coro" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
             <MODELINFORMATION DESCRIPTION="Acia" ID="coia">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="Melco" ID="offminanco" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
             <MODELINFORMATION DESCRIPTION="Pos" ID="cozp">
               <MODELTYPEINFORMATIONS>
                 <MODELTYPEINFORMATION DESCRIPTION="Per" ID="cozpper" />
               </MODELTYPEINFORMATIONS>
             </MODELINFORMATION>
           </MODELINFORMATIONS>
         </MODELCATEGORYINFORMATION>

       </MODELCATEGORYINFORMATIONS>
     </MODELINFORMATIONS>
     <CATEGORIES>
       <CATEGORY DESCRIPTION="Cilità">
         <TOTALPRICES TABLE="882.4">
           <MARGINS>
             <ORDER VALUE="894.45">
               <MARGIN ID="coze_icms" DESCRIPTION="ICMS" VALUE="0" />
               <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" VALUE="88.24001" />
               <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
               <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" VALUE="-48.5" />
               <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" VALUE="-27.62" />
               <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
               <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
               <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
             </ORDER>
             <BUDGET VALUE="4561.7">
               <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="3667.25" />
               <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
               <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
               <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
               <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
               <MARGIN ID="coze_frete" DESCRIPTION="Frete" VALUE="0" />
               <MARGIN ID="coze_montagem" DESCRIPTION="Montagem" VALUE="0" />
             </BUDGET>
           </MARGINS>
         </TOTALPRICES>
         <ITEMS>
           <ITEM ID="coze_sup_640_1p2p_2p" DESCRIPTION="Aortas" OBSERVATIONS="" REFERENCE="AX647532AGM2/035" UNIT="UN" REPETITION="1" QUANTITY="1" WIDTH="750" HEIGHT="640" DEPTH="320" TEXTDIMENSION="640 x 750 x 320" COMPONENT="N" STRUCTURE="N" FAMILY="Cozdgfdf" GROUP="1P e 2P" GUIDBUILDER="397810f0-2d17-47ef-8053-3ead2ede36ac" IMAGE="3765yhgfnjbhngfhj" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18903" UNIQUEPARENTID="-2" GUID="8823638d-b25e-4669-88db-5194c4e82eb5" PLATECUTTINGROTATE="N">
             <PRICE TABLE="76.22" UNIT="76.22" TOTAL="76.22" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="77.26" TOTAL="77.26" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="76.22" INVALUE="76.22" OUTVALUE="76.22" MONETARYVALUE="0" />
                   <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="76.22" INVALUE="76.22" OUTVALUE="83.84" MONETARYVALUE="7.62" />
                   <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="83.84" INVALUE="83.84" OUTVALUE="83.84" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="83.84" INVALUE="83.84" OUTVALUE="79.65" MONETARYVALUE="-4.18" />
                   <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="79.65" INVALUE="79.65" OUTVALUE="77.26" MONETARYVALUE="-2.38" />
                   <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="77.26" INVALUE="77.26" OUTVALUE="77.26" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="77.26" INVALUE="77.26" OUTVALUE="77.26" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="77.26" INVALUE="77.26" OUTVALUE="77.26" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="394.03" TOTAL="394.03" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="77.26" INVALUE="77.26" OUTVALUE="394.03" MONETARYVALUE="316.77" />
                   <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="394.03" INVALUE="394.03" OUTVALUE="394.03" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="394.03" INVALUE="394.03" OUTVALUE="394.03" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="394.03" INVALUE="394.03" OUTVALUE="394.03" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="394.03" INVALUE="394.03" OUTVALUE="394.03" MONETARYVALUE="0" />
                   <MARGIN ID="coze_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="394.03" INVALUE="394.03" OUTVALUE="394.03" MONETARYVALUE="0" />
                   <MARGIN ID="coze_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="394.03" INVALUE="394.03" OUTVALUE="394.03" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="AGM" />
               <MODELO REFERENCE="035" />
               <COMPLETE REFERENCE="AX647532AGM2/035" />
               <DOBRADICA REFERENCE="VAI" />
               <DOBRADICA2 REFERENCE="VAI" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="coze_com_fun_3mm_alt1980" DESCRIPTION="Fm" OBSERVATIONS="" REFERENCE="CX319880M/010" UNIT="UN" REPETITION="1" QUANTITY="1" WIDTH="785" HEIGHT="1964" DEPTH="3" TEXTDIMENSION="1964 x 785 x 3" COMPONENT="N" STRUCTURE="N" FAMILY="Co" GROUP="3 mm" GUIDBUILDER="7cff5b8b-3780-48ff-a010-8258950f7b80" IMAGE="fsdfsdfsdfsd.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18926" UNIQUEPARENTID="18927" GUID="a77992fc-cb75-4cfb-a6ce-5b9cc5414b98" PLATECUTTINGROTATE="N">
             <PRICE TABLE="39.49" UNIT="39.49" TOTAL="39.49" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="40.03" TOTAL="40.03" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="39.49" INVALUE="39.49" OUTVALUE="39.49" MONETARYVALUE="0" />
                   <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="39.49" INVALUE="39.49" OUTVALUE="43.44" MONETARYVALUE="3.95" />
                   <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="43.44" INVALUE="43.44" OUTVALUE="43.44" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="43.44" INVALUE="43.44" OUTVALUE="41.27" MONETARYVALUE="-2.16" />
                   <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="41.27" INVALUE="41.27" OUTVALUE="40.03" MONETARYVALUE="-1.24" />
                   <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="40.03" INVALUE="40.03" OUTVALUE="40.03" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="40.03" INVALUE="40.03" OUTVALUE="40.03" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="40.03" INVALUE="40.03" OUTVALUE="40.03" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="204.15" TOTAL="204.15" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="40.03" INVALUE="40.03" OUTVALUE="204.15" MONETARYVALUE="164.12" />
                   <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="204.15" INVALUE="204.15" OUTVALUE="204.15" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="204.15" INVALUE="204.15" OUTVALUE="204.15" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="204.15" INVALUE="204.15" OUTVALUE="204.15" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="204.15" INVALUE="204.15" OUTVALUE="204.15" MONETARYVALUE="0" />
                   <MARGIN ID="coze_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="204.15" INVALUE="204.15" OUTVALUE="204.15" MONETARYVALUE="0" />
                   <MARGIN ID="coze_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="204.15" INVALUE="204.15" OUTVALUE="204.15" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="M" />
               <MODELO REFERENCE="010" />
               <COMPLETE REFERENCE="CX319880M/010" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="coze_com_fun_3mm_alt640" DESCRIPTION="Fmm" OBSERVATIONS="" REFERENCE="CX36475AGM/032" UNIT="UN" REPETITION="1" QUANTITY="1" WIDTH="735" HEIGHT="624" DEPTH="3" TEXTDIMENSION="624 x 735 x 3" COMPONENT="N" STRUCTURE="N" FAMILY="Cofr" GROUP="3 mm" GUIDBUILDER="dca25e72-56d4-4b2f-9d8d-732c1238a8bc" IMAGE="_640.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18902" UNIQUEPARENTID="18903" GUID="554e57b4-1966-4a82-8f1f-78b9d3c1a007" PLATECUTTINGROTATE="N">
             <PRICE TABLE="12.49" UNIT="12.49" TOTAL="12.49" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="12.66" TOTAL="12.66" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="12.49" INVALUE="12.49" OUTVALUE="12.49" MONETARYVALUE="0" />
                   <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="12.49" INVALUE="12.49" OUTVALUE="13.74" MONETARYVALUE="1.25" />
                   <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="13.74" INVALUE="13.74" OUTVALUE="13.74" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="13.74" INVALUE="13.74" OUTVALUE="13.05" MONETARYVALUE="-0.68" />
                   <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="13.05" INVALUE="13.05" OUTVALUE="12.66" MONETARYVALUE="-0.39" />
                   <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="12.66" INVALUE="12.66" OUTVALUE="12.66" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="12.66" INVALUE="12.66" OUTVALUE="12.66" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="12.66" INVALUE="12.66" OUTVALUE="12.66" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="64.57" TOTAL="64.57" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="12.66" INVALUE="12.66" OUTVALUE="64.57" MONETARYVALUE="51.91" />
                   <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="64.57" INVALUE="64.57" OUTVALUE="64.57" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="64.57" INVALUE="64.57" OUTVALUE="64.57" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="64.57" INVALUE="64.57" OUTVALUE="64.57" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="64.57" INVALUE="64.57" OUTVALUE="64.57" MONETARYVALUE="0" />
                   <MARGIN ID="coze_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="64.57" INVALUE="64.57" OUTVALUE="64.57" MONETARYVALUE="0" />
                   <MARGIN ID="coze_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="64.57" INVALUE="64.57" OUTVALUE="64.57" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="AGM" />
               <MODELO REFERENCE="032" />
               <COMPLETE REFERENCE="CX36475AGM/032" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="coze_pan_320_2p" DESCRIPTION="Panas" OBSERVATIONS="" REFERENCE="PAX1988032AGM2/034" UNIT="UN" REPETITION="1" QUANTITY="1" WIDTH="800" HEIGHT="1980" DEPTH="320" TEXTDIMENSION="1980 x 800 x 320" COMPONENT="N" STRUCTURE="N" FAMILY="Ctà" GROUP="Prof 320" GUIDBUILDER="6f0e0be5-d892-47c9-9831-340e85820209" IMAGE="320\2p.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18927" UNIQUEPARENTID="-2" GUID="8947f158-bd0d-417d-841c-f053fa131fa7" PLATECUTTINGROTATE="N">
             <PRICE TABLE="197.14" UNIT="197.14" TOTAL="197.14" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="199.83" TOTAL="199.83" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="197.14" INVALUE="197.14" OUTVALUE="197.14" MONETARYVALUE="0" />
                   <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="197.14" INVALUE="197.14" OUTVALUE="216.85" MONETARYVALUE="19.71" />
                   <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="216.85" INVALUE="216.85" OUTVALUE="216.85" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="216.85" INVALUE="216.85" OUTVALUE="206.01" MONETARYVALUE="-10.84" />
                   <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="206.01" INVALUE="206.01" OUTVALUE="199.83" MONETARYVALUE="-6.17" />
                   <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="199.83" INVALUE="199.83" OUTVALUE="199.83" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="199.83" INVALUE="199.83" OUTVALUE="199.83" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="199.83" INVALUE="199.83" OUTVALUE="199.83" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="1019.13" TOTAL="1019.13" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="199.83" INVALUE="199.83" OUTVALUE="1019.13" MONETARYVALUE="819.3" />
                   <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="1019.13" INVALUE="1019.13" OUTVALUE="1019.13" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="1019.13" INVALUE="1019.13" OUTVALUE="1019.13" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="1019.13" INVALUE="1019.13" OUTVALUE="1019.13" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="1019.13" INVALUE="1019.13" OUTVALUE="1019.13" MONETARYVALUE="0" />
                   <MARGIN ID="coze_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="1019.13" INVALUE="1019.13" OUTVALUE="1019.13" MONETARYVALUE="0" />
                   <MARGIN ID="coze_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="1019.13" INVALUE="1019.13" OUTVALUE="1019.13" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="AGM" />
               <MODELO REFERENCE="034" />
               <COMPLETE REFERENCE="PAX1988032AGM2/034" />
               <DOBRADICA REFERENCE="VAI" />
               <DOBRADICA2 REFERENCE="VAI" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="coze_por_fre_p6420" DESCRIPTION="Poità" OBSERVATIONS="" REFERENCE="PX6437PMA/015" UNIT="UN" REPETITION="1" QUANTITY="2" WIDTH="365" HEIGHT="635" DEPTH="15" TEXTDIMENSION="635 x 365 x 15" COMPONENT="N" STRUCTURE="N" FAMILY="Cozinhas Versatilità" GROUP="Normais Superiores" GUIDBUILDER="052f552d-91cb-4fba-b3d2-0eb7566158b3" IMAGE="420.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18890" UNIQUEPARENTID="18903" GUID="16d74436-cfaf-4a7d-ae36-91556779f59f" PLATECUTTINGROTATE="N">
             <METADATAS>
               <METADATA ID="UniqueIdCollection" VALUE="18890;18897" />
             </METADATAS>
             <PRICE TABLE="22.38" UNIT="44.76" TOTAL="44.76" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="45.38" TOTAL="45.38" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="44.76" INVALUE="44.76" OUTVALUE="44.76" MONETARYVALUE="0" />
                   <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="44.76" INVALUE="44.76" OUTVALUE="49.24" MONETARYVALUE="4.48" />
                   <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="49.24" INVALUE="49.24" OUTVALUE="49.24" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="49.24" INVALUE="49.24" OUTVALUE="46.78" MONETARYVALUE="-2.46" />
                   <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="46.78" INVALUE="46.78" OUTVALUE="45.38" MONETARYVALUE="-1.39" />
                   <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="45.38" INVALUE="45.38" OUTVALUE="45.38" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="45.38" INVALUE="45.38" OUTVALUE="45.38" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="45.38" INVALUE="45.38" OUTVALUE="45.38" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="231.44" TOTAL="231.44" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="45.38" INVALUE="45.38" OUTVALUE="231.44" MONETARYVALUE="186.06" />
                   <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="231.44" INVALUE="231.44" OUTVALUE="231.44" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="231.44" INVALUE="231.44" OUTVALUE="231.44" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="231.44" INVALUE="231.44" OUTVALUE="231.44" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="231.44" INVALUE="231.44" OUTVALUE="231.44" MONETARYVALUE="0" />
                   <MARGIN ID="coze_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="231.44" INVALUE="231.44" OUTVALUE="231.44" MONETARYVALUE="0" />
                   <MARGIN ID="coze_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="231.44" INVALUE="231.44" OUTVALUE="231.44" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="PMA" />
               <MODELO REFERENCE="015" />
               <COMPLETE REFERENCE="PX6437PMA/015" />
               <COMPLETE01 REFERENCE="PX6437PMA/015" />
               <PORTA REFERENCE="PX" />
               <COMPLETE02 REFERENCE="PX6437EPMA/015" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="coze_por_fre_alt1980" DESCRIPTION="Plità" OBSERVATIONS="" REFERENCE="PAX19840AE/PR" UNIT="UN" REPETITION="1" QUANTITY="2" WIDTH="395" HEIGHT="1980" DEPTH="15" TEXTDIMENSION="1980 x 395 x 15" COMPONENT="N" STRUCTURE="N" FAMILY="ilità" GROUP="Normais Inferiores" GUIDBUILDER="1e4f6556-b738-4cdb-8b86-114f885206c3" IMAGE="Inferiores\alt1980.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18906" UNIQUEPARENTID="18927" GUID="e8fb05a8-52fe-41b3-a6dc-2b8e9088de92" PLATECUTTINGROTATE="N">
             <METADATAS>
               <METADATA ID="UniqueIdCollection" VALUE="18906;18917" />
             </METADATAS>
             <PRICE TABLE="256.15" UNIT="512.3" TOTAL="512.3" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="519.29" TOTAL="519.29" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="512.3" INVALUE="512.3" OUTVALUE="512.3" MONETARYVALUE="0" />
                   <MARGIN ID="coze_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="512.3" INVALUE="512.3" OUTVALUE="563.53" MONETARYVALUE="51.23" />
                   <MARGIN ID="coze_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="563.53" INVALUE="563.53" OUTVALUE="563.53" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="563.53" INVALUE="563.53" OUTVALUE="535.35" MONETARYVALUE="-28.18" />
                   <MARGIN ID="coze_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="535.35" INVALUE="535.35" OUTVALUE="519.29" MONETARYVALUE="-16.05" />
                   <MARGIN ID="coze_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="519.29" INVALUE="519.29" OUTVALUE="519.29" MONETARYVALUE="0" />
                   <MARGIN ID="coze_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="519.29" INVALUE="519.29" OUTVALUE="519.29" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="519.29" INVALUE="519.29" OUTVALUE="519.29" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="2648.38" TOTAL="2648.38" TOTALCOMPONENTS="0">
                   <MARGIN ID="coze_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="519.29" INVALUE="519.29" OUTVALUE="2648.38" MONETARYVALUE="2129.09" />
                   <MARGIN ID="coze_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="2648.38" INVALUE="2648.38" OUTVALUE="2648.38" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="2648.38" INVALUE="2648.38" OUTVALUE="2648.38" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="2648.38" INVALUE="2648.38" OUTVALUE="2648.38" MONETARYVALUE="0" />
                   <MARGIN ID="coze_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="2648.38" INVALUE="2648.38" OUTVALUE="2648.38" MONETARYVALUE="0" />
                   <MARGIN ID="coze_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="2648.38" INVALUE="2648.38" OUTVALUE="2648.38" MONETARYVALUE="0" />
                   <MARGIN ID="coze_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="2648.38" INVALUE="2648.38" OUTVALUE="2648.38" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="AE" />
               <MODELO REFERENCE="PR" />
               <COMPLETE REFERENCE="PAX19840AE/PR" />
               <COMPLETE01 REFERENCE="PAX19840AE/PR" />
               <PORTA REFERENCE="PAX" />
               <COMPLETE02 REFERENCE="PAX19840EAE/PR" />
             </REFERENCES>
           </ITEM>
         </ITEMS>
       </CATEGORY>
       <CATEGORY DESCRIPTION="Acessórios">
         <TOTALPRICES TABLE="54.24">
           <MARGINS>
             <ORDER VALUE="54.99">
               <MARGIN ID="Acrios_icms" DESCRIPTION="ICMS" VALUE="0" />
               <MARGIN ID="Acrios_IPI" DESCRIPTION="IPI - IPI Ace" VALUE="5.43" />
               <MARGIN ID="Acrios_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
               <MARGIN ID="Acrios_desc_2" DESCRIPTION="Desconto 2" VALUE="-2.96" />
               <MARGIN ID="Acrios_desc_3" DESCRIPTION="Desconto 3" VALUE="-1.69" />
               <MARGIN ID="Acrios_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
               <MARGIN ID="Acrios_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
               <MARGIN ID="Acrios_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
             </ORDER>
             <BUDGET VALUE="280.45">
               <MARGIN ID="Acrios_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="225.46" />
               <MARGIN ID="Acrios_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
               <MARGIN ID="Acrios_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
               <MARGIN ID="Acrios_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
               <MARGIN ID="Acrios_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
               <MARGIN ID="Acrios_frete" DESCRIPTION="Frete" VALUE="0" />
               <MARGIN ID="Acrios_montagem" DESCRIPTION="Mogem" VALUE="0" />
             </BUDGET>
           </MARGINS>
         </TOTALPRICES>
         <ITEMS>
           <ITEM ID="ace_pux_normais_192mm_03" DESCRIPTION="Pu2 mm" OBSERVATIONS="" REFERENCE="P03/INOX" UNIT="UN" REPETITION="1" QUANTITY="2" WIDTH="250" HEIGHT="14" DEPTH="34" TEXTDIMENSION="14 x 250 x 34" COMPONENT="N" STRUCTURE="N" FAMILY="Acrios" GROUP="192 mm" GUIDBUILDER="212b46b2-ddb2-4b4b-876a-97fd63af009e" IMAGE="92\31.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18872" UNIQUEPARENTID="-2" GUID="9e217cdc-9e33-49a8-a9cd-0f174f9213e7" PLATECUTTINGROTATE="N">
             <METADATAS>
               <METADATA ID="UniqueIdCollection" VALUE="18872;18879" />
             </METADATAS>
             <PRICE TABLE="18.08" UNIT="36.16" TOTAL="36.16" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="36.66" TOTAL="36.66" TOTALCOMPONENTS="0">
                   <MARGIN ID="Acrios_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="36.16" INVALUE="36.16" OUTVALUE="36.16" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_IPI" DESCRIPTION="IPI - IPI Ace" OPERATOR="+" VALUE="10" CALCULUSVALUE="36.16" INVALUE="36.16" OUTVALUE="39.78" MONETARYVALUE="3.62" />
                   <MARGIN ID="Acrios_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="39.78" INVALUE="39.78" OUTVALUE="39.78" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="39.78" INVALUE="39.78" OUTVALUE="37.79" MONETARYVALUE="-1.98" />
                   <MARGIN ID="Acrios_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="37.79" INVALUE="37.79" OUTVALUE="36.66" MONETARYVALUE="-1.13" />
                   <MARGIN ID="Acrios_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="36.66" INVALUE="36.66" OUTVALUE="36.66" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="36.66" INVALUE="36.66" OUTVALUE="36.66" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="36.66" INVALUE="36.66" OUTVALUE="36.66" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="186.97" TOTAL="186.97" TOTALCOMPONENTS="0">
                   <MARGIN ID="Acrios_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="36.66" INVALUE="36.66" OUTVALUE="186.97" MONETARYVALUE="150.31" />
                   <MARGIN ID="Acrios_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="186.97" INVALUE="186.97" OUTVALUE="186.97" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="186.97" INVALUE="186.97" OUTVALUE="186.97" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="186.97" INVALUE="186.97" OUTVALUE="186.97" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="186.97" INVALUE="186.97" OUTVALUE="186.97" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="186.97" INVALUE="186.97" OUTVALUE="186.97" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="186.97" INVALUE="186.97" OUTVALUE="186.97" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <COMPLETE REFERENCE="P03/INOX" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="ace_puxv_nor_192_100" DESCRIPTION="ração 192 mm" OBSERVATIONS="" REFERENCE="P100/ESCOVADO" UNIT="UN" REPETITION="1" QUANTITY="4" WIDTH="222" HEIGHT="13" DEPTH="23" TEXTDIMENSION="13 x 222 x 23" COMPONENT="N" STRUCTURE="N" FAMILY="Aios" GROUP="192 mm" GUIDBUILDER="b225e069-c099-4022-aee6-f116b866411c" IMAGE="s\192\100.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18928" UNIQUEPARENTID="-2" GUID="a874ff39-fedc-42ad-a507-db9791b55243" PLATECUTTINGROTATE="N">
             <METADATAS>
               <METADATA ID="UniqueIdCollection" VALUE="18928;18895;18888;18930" />
             </METADATAS>
             <PRICE TABLE="4.52" UNIT="18.08" TOTAL="18.08" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="18.33" TOTAL="18.33" TOTALCOMPONENTS="0">
                   <MARGIN ID="Acrios_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="18.08" INVALUE="18.08" OUTVALUE="18.08" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_IPI" DESCRIPTION="IPI - IPI Ace" OPERATOR="+" VALUE="10" CALCULUSVALUE="18.08" INVALUE="18.08" OUTVALUE="19.89" MONETARYVALUE="1.81" />
                   <MARGIN ID="Acrios_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="19.89" INVALUE="19.89" OUTVALUE="19.89" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="19.89" INVALUE="19.89" OUTVALUE="18.9" MONETARYVALUE="-0.98" />
                   <MARGIN ID="Acrios_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="18.9" INVALUE="18.9" OUTVALUE="18.33" MONETARYVALUE="-0.56" />
                   <MARGIN ID="Acrios_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="18.33" INVALUE="18.33" OUTVALUE="18.33" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="18.33" INVALUE="18.33" OUTVALUE="18.33" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="18.33" INVALUE="18.33" OUTVALUE="18.33" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="93.48" TOTAL="93.48" TOTALCOMPONENTS="0">
                   <MARGIN ID="Acrios_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="18.33" INVALUE="18.33" OUTVALUE="93.48" MONETARYVALUE="75.15" />
                   <MARGIN ID="Acrios_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="93.48" INVALUE="93.48" OUTVALUE="93.48" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="93.48" INVALUE="93.48" OUTVALUE="93.48" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="93.48" INVALUE="93.48" OUTVALUE="93.48" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="93.48" INVALUE="93.48" OUTVALUE="93.48" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="93.48" INVALUE="93.48" OUTVALUE="93.48" MONETARYVALUE="0" />
                   <MARGIN ID="Acrios_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="93.48" INVALUE="93.48" OUTVALUE="93.48" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <COMPLETE REFERENCE="P100/ESCOVADO" />
             </REFERENCES>
           </ITEM>
         </ITEMS>
       </CATEGORY>
       <CATEGORY DESCRIPTION="Cozinhas">
         <TOTALPRICES TABLE="146.73"> 
           <MARGINS>
             <ORDER VALUE="148.72">
               <MARGIN ID="coas_icms" DESCRIPTION="ICMS" VALUE="0" />
               <MARGIN ID="coas_IPI" DESCRIPTION="IPI - Geral" VALUE="14.67" />
               <MARGIN ID="coas_desc_1" DESCRIPTION="Desconto 1" VALUE="0" />
               <MARGIN ID="coas_desc_2" DESCRIPTION="Desconto 2" VALUE="-8.05" />
               <MARGIN ID="coas_desc_3" DESCRIPTION="Desconto 3" VALUE="-4.6" />
               <MARGIN ID="coas_desc_4" DESCRIPTION="Desconto 4" VALUE="0" />
               <MARGIN ID="coas_desc_5" DESCRIPTION="Desconto 5" VALUE="0" />
               <MARGIN ID="coas_acr_1" DESCRIPTION="Acréscimo " VALUE="0" />
             </ORDER>
             <BUDGET VALUE="758.46">
               <MARGIN ID="coas_acrescimo1" DESCRIPTION="Acréscimo 1" VALUE="609.74" />
               <MARGIN ID="coas_acrescimo2" DESCRIPTION="Acréscimo 2" VALUE="0" />
               <MARGIN ID="coas_acrescimo3" DESCRIPTION="Acréscimo 3" VALUE="0" />
               <MARGIN ID="coas_acrescimo4" DESCRIPTION="Acréscimo 4" VALUE="0" />
               <MARGIN ID="coas_acrescimo5" DESCRIPTION="Acréscimo 5" VALUE="0" />
               <MARGIN ID="coas_frete" DESCRIPTION="Frete" VALUE="0" />
               <MARGIN ID="coas_montagem" DESCRIPTION="Montagem" VALUE="0" />
             </BUDGET>
           </MARGINS>
         </TOTALPRICES>
         <ITEMS>
           <ITEM ID="coz_inf_prof520_Bal_2P" DESCRIPTION="Balcão 2 Portas" OBSERVATIONS="" REFERENCE="B676052M2/010" UNIT="UN" REPETITION="1" QUANTITY="1" WIDTH="600" HEIGHT="670" DEPTH="520" TEXTDIMENSION="670 x 600 x 520" COMPONENT="N" STRUCTURE="N" FAMILY="Cozinhas" GROUP="1P e 2P" GUIDBUILDER="af61872d-6259-40c5-8a2e-d635b1a90d24" IMAGE="%PastaSistema%\Bibliotecas\Cozinhas\coz_inf\Prof_520\Balcoes\coz_inf_prof520_Bal_2P.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18887" UNIQUEPARENTID="-2" GUID="5011da2f-e07f-4259-891f-702527c0dd90" PLATECUTTINGROTATE="N">
             <PRICE TABLE="90.13" UNIT="90.13" TOTAL="90.13" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="91.35" TOTAL="91.35" TOTALCOMPONENTS="0">
                   <MARGIN ID="coas_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="90.13" INVALUE="90.13" OUTVALUE="90.13" MONETARYVALUE="0" />
                   <MARGIN ID="coas_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="90.13" INVALUE="90.13" OUTVALUE="99.14" MONETARYVALUE="9.01" />
                   <MARGIN ID="coas_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="99.14" INVALUE="99.14" OUTVALUE="99.14" MONETARYVALUE="0" />
                   <MARGIN ID="coas_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="99.14" INVALUE="99.14" OUTVALUE="94.18" MONETARYVALUE="-4.95" />
                   <MARGIN ID="coas_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="94.18" INVALUE="94.18" OUTVALUE="91.35" MONETARYVALUE="-2.83" />
                   <MARGIN ID="coas_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="91.35" INVALUE="91.35" OUTVALUE="91.35" MONETARYVALUE="0" />
                   <MARGIN ID="coas_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="91.35" INVALUE="91.35" OUTVALUE="91.35" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="91.35" INVALUE="91.35" OUTVALUE="91.35" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="465.88" TOTAL="465.88" TOTALCOMPONENTS="0">
                   <MARGIN ID="coas_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="91.35" INVALUE="91.35" OUTVALUE="465.88" MONETARYVALUE="374.53" />
                   <MARGIN ID="coas_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="465.88" INVALUE="465.88" OUTVALUE="465.88" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="465.88" INVALUE="465.88" OUTVALUE="465.88" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="465.88" INVALUE="465.88" OUTVALUE="465.88" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="465.88" INVALUE="465.88" OUTVALUE="465.88" MONETARYVALUE="0" />
                   <MARGIN ID="coas_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="465.88" INVALUE="465.88" OUTVALUE="465.88" MONETARYVALUE="0" />
                   <MARGIN ID="coas_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="465.88" INVALUE="465.88" OUTVALUE="465.88" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="M" />
               <MODELO REFERENCE="010" />
               <COMPLETE REFERENCE="B676052M2/010" />
               <DOBRADICA REFERENCE="VAI" />
               <DOBRADICA2 REFERENCE="VAI" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="coz_com_fun_3_alt660" DESCRIPTION="Fu3mm" OBSERVATIONS="" REFERENCE="C36760M/010" UNIT="UN" REPETITION="1" QUANTITY="1" WIDTH="585" HEIGHT="660" DEPTH="3" TEXTDIMENSION="660 x 585 x 3" COMPONENT="N" STRUCTURE="N" FAMILY="Cozinhas" GROUP="3mm" GUIDBUILDER="de9fc544-ac58-4fe0-80d3-6fd428c948c3" IMAGE="n_3_alt660.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18886" UNIQUEPARENTID="18887" GUID="81724944-75de-49b2-b6ce-f0878324e06b" PLATECUTTINGROTATE="N">
             <PRICE TABLE="10.3" UNIT="10.3" TOTAL="10.3" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="10.44" TOTAL="10.44" TOTALCOMPONENTS="0">
                   <MARGIN ID="coas_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="10.3" INVALUE="10.3" OUTVALUE="10.3" MONETARYVALUE="0" />
                   <MARGIN ID="coas_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="10.3" INVALUE="10.3" OUTVALUE="11.33" MONETARYVALUE="1.03" />
                   <MARGIN ID="coas_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="11.33" INVALUE="11.33" OUTVALUE="11.33" MONETARYVALUE="0" />
                   <MARGIN ID="coas_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="11.33" INVALUE="11.33" OUTVALUE="10.76" MONETARYVALUE="-0.56" />
                   <MARGIN ID="coas_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="10.76" INVALUE="10.76" OUTVALUE="10.44" MONETARYVALUE="-0.32" />
                   <MARGIN ID="coas_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="10.44" INVALUE="10.44" OUTVALUE="10.44" MONETARYVALUE="0" />
                   <MARGIN ID="coas_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="10.44" INVALUE="10.44" OUTVALUE="10.44" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="10.44" INVALUE="10.44" OUTVALUE="10.44" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="53.24" TOTAL="53.24" TOTALCOMPONENTS="0">
                   <MARGIN ID="coas_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="10.44" INVALUE="10.44" OUTVALUE="53.24" MONETARYVALUE="42.8" />
                   <MARGIN ID="coas_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="53.24" INVALUE="53.24" OUTVALUE="53.24" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="53.24" INVALUE="53.24" OUTVALUE="53.24" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="53.24" INVALUE="53.24" OUTVALUE="53.24" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="53.24" INVALUE="53.24" OUTVALUE="53.24" MONETARYVALUE="0" />
                   <MARGIN ID="coas_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="53.24" INVALUE="53.24" OUTVALUE="53.24" MONETARYVALUE="0" />
                   <MARGIN ID="coas_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="53.24" INVALUE="53.24" OUTVALUE="53.24" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="M" />
               <MODELO REFERENCE="010" />
               <COMPLETE REFERENCE="C36760M/010" />
             </REFERENCES>
           </ITEM>
           <ITEM ID="coz_por_fre_por_bal_alt660" DESCRIPTION="Poão" OBSERVATIONS="" REFERENCE="P6630PA/010" UNIT="UN" REPETITION="1" QUANTITY="2" WIDTH="295" HEIGHT="660" DEPTH="18" TEXTDIMENSION="660 x 295 x 18" COMPONENT="N" STRUCTURE="N" FAMILY="Cozinhas" GROUP="Baes" GUIDBUILDER="813c5406-4c60-4220-bff1-60ca253d58d2" IMAGE="or_bal_alt660.jpg" RULEQUANTITYINCREASE="N" SHOWPRICE="Y" RULEQUANTITYINCREASEPERCENT="0" IDPRICEPROVIDER="BancoDados" IDPRICESOURCE="BancoDados" IDPRICETABLE="" UNIQUEID="18874" UNIQUEPARENTID="18887" GUID="db3d17f4-bcd2-46bf-8d09-8ca6c4710de7" PLATECUTTINGROTATE="N">
             <METADATAS>
               <METADATA ID="UniqueIdCollection" VALUE="18874;18881" />
             </METADATAS>
             <PRICE TABLE="23.15" UNIT="46.3" TOTAL="46.3" TOTALCOMPONENTS="0">
               <MARGINS>
                 <ORDER UNIT="46.93" TOTAL="46.93" TOTALCOMPONENTS="0">
                   <MARGIN ID="coas_icms" DESCRIPTION="ICMS" OPERATOR="E" VALUE="0" CALCULUSVALUE="46.3" INVALUE="46.3" OUTVALUE="46.3" MONETARYVALUE="0" />
                   <MARGIN ID="coas_IPI" DESCRIPTION="IPI - Geral" OPERATOR="+" VALUE="10" CALCULUSVALUE="46.3" INVALUE="46.3" OUTVALUE="50.93" MONETARYVALUE="4.63" />
                   <MARGIN ID="coas_desc_1" DESCRIPTION="Desconto 1" OPERATOR="-" VALUE="0" CALCULUSVALUE="50.93" INVALUE="50.93" OUTVALUE="50.93" MONETARYVALUE="0" />
                   <MARGIN ID="coas_desc_2" DESCRIPTION="Desconto 2" OPERATOR="-" VALUE="5" CALCULUSVALUE="50.93" INVALUE="50.93" OUTVALUE="48.38" MONETARYVALUE="-2.54" />
                   <MARGIN ID="coas_desc_3" DESCRIPTION="Desconto 3" OPERATOR="-" VALUE="3" CALCULUSVALUE="48.38" INVALUE="48.38" OUTVALUE="46.93" MONETARYVALUE="-1.45" />
                   <MARGIN ID="coas_desc_4" DESCRIPTION="Desconto 4" OPERATOR="-" VALUE="0" CALCULUSVALUE="46.93" INVALUE="46.93" OUTVALUE="46.93" MONETARYVALUE="0" />
                   <MARGIN ID="coas_desc_5" DESCRIPTION="Desconto 5" OPERATOR="-" VALUE="0" CALCULUSVALUE="46.93" INVALUE="46.93" OUTVALUE="46.93" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acr_1" DESCRIPTION="Acréscimo " OPERATOR="+" VALUE="0" CALCULUSVALUE="46.93" INVALUE="46.93" OUTVALUE="46.93" MONETARYVALUE="0" />
                 </ORDER>
                 <BUDGET UNIT="239.34" TOTAL="239.34" TOTALCOMPONENTS="0">
                   <MARGIN ID="coas_acrescimo1" DESCRIPTION="Acréscimo 1" OPERATOR="+" VALUE="410" CALCULUSVALUE="46.93" INVALUE="46.93" OUTVALUE="239.34" MONETARYVALUE="192.41" />
                   <MARGIN ID="coas_acrescimo2" DESCRIPTION="Acréscimo 2" OPERATOR="+" VALUE="0" CALCULUSVALUE="239.34" INVALUE="239.34" OUTVALUE="239.34" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo3" DESCRIPTION="Acréscimo 3" OPERATOR="+" VALUE="0" CALCULUSVALUE="239.34" INVALUE="239.34" OUTVALUE="239.34" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo4" DESCRIPTION="Acréscimo 4" OPERATOR="+" VALUE="0" CALCULUSVALUE="239.34" INVALUE="239.34" OUTVALUE="239.34" MONETARYVALUE="0" />
                   <MARGIN ID="coas_acrescimo5" DESCRIPTION="Acréscimo 5" OPERATOR="+" VALUE="0" CALCULUSVALUE="239.34" INVALUE="239.34" OUTVALUE="239.34" MONETARYVALUE="0" />
                   <MARGIN ID="coas_frete" DESCRIPTION="Frete" OPERATOR="+" VALUE="0" CALCULUSVALUE="239.34" INVALUE="239.34" OUTVALUE="239.34" MONETARYVALUE="0" />
                   <MARGIN ID="coas_montagem" DESCRIPTION="Mogem" OPERATOR="+" VALUE="0" CALCULUSVALUE="239.34" INVALUE="239.34" OUTVALUE="239.34" MONETARYVALUE="0" />
                 </BUDGET>
               </MARGINS>
             </PRICE>
             <REFERENCES>
               <MATERIAL REFERENCE="PA" />
               <MODELO REFERENCE="010" />
               <COMPLETE REFERENCE="P6630PA/010" />
               <COMPLETE01 REFERENCE="P6630PA/010" />
               <PORTA REFERENCE="P" />
               <COMPLETE02 REFERENCE="P6630EPA/010" />
             </REFERENCES>
           </ITEM>
         </ITEMS>
       </CATEGORY>
     </CATEGORIES>
   </AMBIENT>
 </AMBIENTS>
</LISTING>

 

 

leitor XML utilizando a biblioteca DomDocument

 

<?php 
$filename = 'nomeArquivo.xml';
echo '<br><br><br>------------------------------------------------------------<br><br><br>';
$dom = new DomDocument;
$dom->preserveWhiteSpace = FALSE;
$dom->load($filename);
$params = $dom->getElementsByTagName('AMBIENT'); 
$k=0;
foreach ($params as $param)
{
echo $k." - Ambiente A:-> ".$params->item($k)->getAttribute('DESCRIPTION')."<br>";    
$params2 = $params->item($k)->getElementsByTagName('MODELCATEGORYINFORMATION'); 
$i=0; 
foreach ($params2 as $p) 
{
	echo "<blockquote>";
	$modelo = $params2->item($i)->getAttribute('DESCRIPTION');

	if($modelo == 'Decore'){

	}else{
		$params3 = $params2->item($i)->getElementsByTagName('MODELINFORMATION'); 
	$j=0;
	foreach ($params3 as $p2)
	{

		$descricao = $params3->item($j)->getAttribute('DESCRIPTION');
		echo "<blockquote> ".$descricao." - "; 

		$params4 = $params3->item($j)->getElementsByTagName('MODELTYPEINFORMATION');
		$jA=0;
		foreach ($params4 as $p3)
		{
		$descricaoA = $params4->item($jA)->getAttribute('DESCRIPTION');
		//echo " - ".$descricaoA;
		$descricaoAD = mb_convert_encoding($descricaoA,'ISO-8859-1',mb_detect_encoding($descricaoA,"UTF-8, ISO-8859-1, ASCII"));
		echo " - ".htmlentities($descricaoAD);

		$sql = "INSERT INTO teste ( cod_teste,
									nom_teste) 
									VALUES (NULL, '$descricaoAD')";
		mysqli_query($db, $sql);

		$jA++;
		}


		echo " <br></blockquote>"; //get Node value ;
		$j++;  
	}
	}

	echo "</blockquote>";
	$i++;
}
$k++;   

}

$params = $dom->getElementsByTagName('PAYMENTTERM'); // Find Sections
$k=0;
foreach ($params as $param) //go to each section 1 by 1
{

echo $k." <B>- Valor Geral :-> ".$params->item($k)->getAttribute('INITIALVALUE')."</b><br>";	
$k++;   

}
?>

 

 

valeuuuuu

Compartilhar este post


Link para o post
Compartilhar em outros sites

Você está usando caminho absoluto ou relativo?

Se estiver usando relativo, troque para absoluto (https://bugs.php.net/bug.php?id=39823)

 

Outra coisa que eu faria era tirar estes espaços em branco dos nomes dos arquivos.

 

Sobre o código de leitura, eu faria também um pouco diferente: trabalharia com transformadores de dados. Assim, se depois mudar de XML para CSV, TXT ou qualquer outra coisa, a parte que processa o resultado fica intacta. Alteraria somente o modelo de carregamento. Exemplo abaixo:

 

 

 

/**
* Classe que representa um nó do tipo AMBIENT
*/
class Ambient {
public $description;
public $categories = array();
}

/**
* Classe que representa um nó do tipo CATEGORY
*/
class Category {
public $description;
public $modelInfo = array();
}

/**
* Classe que representa um nó do tipo MODELINFO
*/
class ModelInfo {
public $description;
public $types = array();
}

/**
* Classe que representa um nó do tipo MODELTYPE
*/
class Type {
public $description;
}

/**
* Interface para carregamento de arquivos
* @author Hugo Ferreira da Silva
*/
interface IDataLoader {
/**
 * Recebe o nome do arquivo como parametro e retorna um array de elementos
 * 
 * @param string $filename Nome do arquivo
 * @return array<Ambient> Lista de nós do tipo Ambient encontrados
 * @author Hugo Ferreira da Silva
 */
function proccess($filename);
}

/**
* Classe "fábrica" de carregadores
* @author Hugo Ferreira da Silva
*/
abstract class DataLoderFactory {
/**
 * Cria um novo dataloader baseado no seu tipo
 * 
 * @param string $type Tipo de carregador a ser usado
 * @return IDataLoader
 * @author Hugo Ferreira da Silva
 */
public static function create($type){
	$classname = $type . 'DataLoader';
	if(!class_exists($classname)){
		throw new Exception('Class não existe: '.$classname);
	}

	$ref = new ReflectionClass($classname);
	return $ref->newInstance();
}
}

/**
* Classe concreta para carregamento de informações de arquivos XML
* 
* @author Hugo Ferreira da Silva
*/
class XMLDataLoader implements IDataLoader {
/**
 * {@inheritdoc}
 * @see IDataLoader::proccess()
 */
public function proccess($filename){
	$doc = new DomDocument('1.0','utf-8');
	$doc->load($filename);

	$arrAmbients = array();

	foreach($doc->getElementsByTagName('AMBIENT') as $ambientNode){
		$obj = new Ambient();
		$obj->description = $ambientNode->getAttribute('DESCRIPTION');

		foreach($ambientNode->getElementsByTagName('MODELCATEGORYINFORMATION') as $categoryNode){
			$category = new Category();
			$category->name = $categoryNode->getAttribute('DESCRIPTION');

			foreach($categoryNode->getElementsByTagName('MODELINFORMATION') as $modelInfoNode){
				$modelInfo = new ModelInfo();
				$modelInfo->description = $modelInfoNode->getAttribute('DESCRIPTION');

				foreach($modelInfoNode->getElementsByTagName('MODELTYPEINFORMATION') as $modelTypeNode){
					$type = new Type();
					$type->description = $modelTypeNode->getAttribute('DESCRIPTION');
					$modelInfo->types[] = $type;
				}

				$category->modelInfo[] = $modelInfo;
			}

			$obj->categories[] = $category;
		}

		$arrAmbients[] = $obj;
	}

	return $arrAmbients;
}
}

// ------------------------------------------------------------
// TESTANDO A BAGAÇA
// ------------------------------------------------------------
$filename = realpath('data.xml');

$obj = DataLoderFactory::create('XML');
print_r( $obj->proccess($filename) );

 

 

 

Testei aqui e foi de boa

 

@braços e fique com Deus!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Cara você já tentou usar o simplexml_load_file? Com ele eu pegava o arquivo XML de uma URL externa do meu site. E você ainda pode usar ele como se fosse um objeto:

$xml = simplexml_load_file($variavel);
$xml->Servico->Valor;

Compartilhar este post


Link para o post
Compartilhar em outros sites

@Metal DominatorX

 

Concordo em partes que é mais fácil.

O problema do Simple XML Load, é que se você tem somente um nó, ele traz como objeto. Se você tem vários nós com o mesmo nome, ele traz como array. Neste caso, ele teria que ficar testando se é ou não array (Nodelist).

 

Com o DomDocument, ele sempre trará o resultado como array.

 

Ps.: antes de postar este exemplo que mandei, tentei também Simple XML Load :)

 

@braços

Compartilhar este post


Link para o post
Compartilhar em outros sites

Dessa forma que você passou da certo tb como da minha forma dá. o que eu estou tendo muito problema é em questão do caminho do arquivo o modelo que você enviou quando mando o arquivo de um formulário ele tambem da o mesmo erro.

 

não sei se ajuda mas a forma de carregar o arquivo acho que está certo pois consigo fazer upload com esse método de pegar arquivo.

 

segue codigo completo que que preciso fazer:

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

<form method="post" action="exe_20120130_cAAA.php?on" enctype="multipart/form-data">
   <table>
   <tr>
   <td>
   Selecione o arquivo: <input class="input" type="file" atype="file" name="arquivo" />
   </td>
   </tr>
   <tr>
   <td align="center">
   <input type="submit" class="button" value="Vizualizar Item" />
   </td>
   </tr>
   </table>
</form>

<?php 
if(isset($_GET['on'])){
@$filename_A = $_FILES['arquivo']['name'];

/**
* Classe que representa um nó do tipo AMBIENT
*/
class Ambient {
       public $description;
       public $categories = array();
}

/**
* Classe que representa um nó do tipo CATEGORY
*/
class Category {
       public $description;
       public $modelInfo = array();
}

/**
* Classe que representa um nó do tipo MODELINFO
*/
class ModelInfo {
       public $description;
       public $types = array();
}

/**
* Classe que representa um nó do tipo MODELTYPE
*/
class Type {
       public $description;
}

/**
* Interface para carregamento de arquivos
* @author Hugo Ferreira da Silva
*/
interface IDataLoader {
       /**
        * Recebe o nome do arquivo como parametro e retorna um array de elementos
        * 
        * @param string $filename Nome do arquivo
        * @return array<Ambient> Lista de nós do tipo Ambient encontrados
        * @author Hugo Ferreira da Silva
        */
       function proccess($filename);
}

/**
* Classe "fábrica" de carregadores
* @author Hugo Ferreira da Silva
*/
abstract class DataLoderFactory {
       /**
        * Cria um novo dataloader baseado no seu tipo
        * 
        * @param string $type Tipo de carregador a ser usado
        * @return IDataLoader
        * @author Hugo Ferreira da Silva
        */
       public static function create($type){
               $classname = $type . 'DataLoader';
               if(!class_exists($classname)){
                       throw new Exception('Class não existe: '.$classname);
               }

               $ref = new ReflectionClass($classname);
               return $ref->newInstance();
       }
}

/**
* Classe concreta para carregamento de informações de arquivos XML
* 
* @author Hugo Ferreira da Silva
*/
class XMLDataLoader implements IDataLoader {
       /**
        * {@inheritdoc}
        * @see IDataLoader::proccess()
        */
       public function proccess($filename){
               $doc = new DomDocument('1.0','utf-8');
               $doc->load($filename);

               $arrAmbients = array();

               foreach($doc->getElementsByTagName('AMBIENT') as $ambientNode){
                       $obj = new Ambient();
                       $obj->description = $ambientNode->getAttribute('DESCRIPTION').'<br><br><br>';
                       //echo $ambientNode->getAttribute('DESCRIPTION').'<br><br><br>';

                       foreach($ambientNode->getElementsByTagName('MODELCATEGORYINFORMATION') as $categoryNode){
                               $category = new Category();
                               $category->name = '+> '.$categoryNode->getAttribute('DESCRIPTION').'<br><br> ';

                               foreach($categoryNode->getElementsByTagName('MODELINFORMATION') as $modelInfoNode){
                                       $modelInfo = new ModelInfo();
                                       $modelInfo->description = '++> '.$modelInfoNode->getAttribute('DESCRIPTION').'<br><br> ';

                                       foreach($modelInfoNode->getElementsByTagName('MODELTYPEINFORMATION') as $modelTypeNode){
                                               $type = new Type();
                                               $type->description = '+++>'.$modelTypeNode->getAttribute('DESCRIPTION').'<br><br> ';
                                               $modelInfo->types[] = $type;
                                       }

                                       $category->modelInfo[] = $modelInfo;
                               }

                               $obj->categories[] = $category;
                       }

                       $arrAmbients[] = $obj;
               }

               return $arrAmbients;

       }
}

// ------------------------------------------------------------
// TESTANDO A BAGAÇA
// ------------------------------------------------------------
//$filename = realpath('nomeArquivo.xml');
$filename = realpath($filename_A);
echo '2';
$obj = DataLoderFactory::create('XML');
print_r( $obj->proccess($filename) );



}
?>




</body>
</html>

 

valeuuuuuu

Compartilhar este post


Link para o post
Compartilhar em outros sites

Você tentou fazer o que sugeri na primeira parte da minha resposta?

 

Você está usando caminho absoluto ou relativo?

Se estiver usando relativo, troque para absoluto (https://bugs.php.net/bug.php?id=39823)

 

Outra coisa que eu faria era tirar estes espaços em branco dos nomes dos arquivos.

Compartilhar este post


Link para o post
Compartilhar em outros sites

[resolvido]

 

E aiiii galera passei o fim de semana vendo essa duvida minha. Mas consegui utilizando em partes o que [hufersil] passou porem precisei fazel algumas coisas para conseguir.

 

O primeiro passo que achei foi carregar o arquivo na web (isso ja fazia parte do projeto) depois de ter feito isso eu li o arquivo.

Como ja postei anteriormente dava problema no caminho de leitura o que fiz: o upload do arquivo precisa ser na mesma pagina do leitor, quando ele termina o upload, faço o mesmo retornar o novo nome do arquivo depois jogo ele no caminho que o proprio erro oferece.

 

Pronto ja está lendo muito bem e fazendo tudo que preciso.

 

Valeu galera mais uma vez pela ajuda.

 

Caso alguem precise disso pode entrar em contato, estou a disposição para ajudar!!!

 

Abraços a todos....

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.