问:
Laravel 9 Api Xml Parse
I'm trying to parse xml file which comes from FileUpload as a request and convert and return as json, but i always get this json object:

```<code>{
    "@attributes": {
        "schemaLocation": "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.1.xsd"
    }
}
</code>```

Here is the json file:

```<?xml version="1.0" encoding="utf-8"?>
<Invoice
    xmlns:ubltr="urn:oasis:names:specification:ubl:schema:xsd:TurkishCustomizationExtensionComponents"
    xmlns:cctc="urn:un:unece:uncefact:documentation:2"
    xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
    xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
    xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
    xmlns:xades="http://uri.etsi.org/01903/v1.3.2#"
    xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.1.xsd"
    xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
    <ext:UBLExtensions>
        <ext:UBLExtension>
            <ext:ExtensionContent />
        </ext:UBLExtension>
    </ext:UBLExtensions>
    <cbc:UBLVersionID>2.1</cbc:UBLVersionID>
    <cbc:CustomizationID>TR1.2</cbc:CustomizationID>
    <cbc:ProfileID>IHRACAT</cbc:ProfileID>
    <cbc:ID>UNI2022000001948</cbc:ID>
    <cbc:CopyIndicator>false</cbc:CopyIndicator>
    <cbc:UUID>1122c98e-f17b-48bc-a917-3694972d45a3</cbc:UUID>
    <cbc:IssueDate>2022-11-09</cbc:IssueDate>
    <cbc:IssueTime>11:55:47.0000000+03:00</cbc:IssueTime>
    <cbc:InvoiceTypeCode>ISTISNA</cbc:InvoiceTypeCode>
    <cbc:Note>1920442.28</cbc:Note>
    <cbc:Note>0.00</cbc:Note>
    <cbc:Note>1920442.28</cbc:Note>
    <cbc:Note>1920442.28</cbc:Note>
    <cbc:Note>TOPLAM : 4106 ADET / 215 KOLİ  </cbc:Note>
    <cbc:Note>Mallar TÜRK Menşelidir. </cbc:Note>
    <cbc:Note />
    <cbc:Note>İmalatçı :ÜNLÜ TEKSTİL SAN. VE TİC. A.Ş. </cbc:Note>
    <cbc:Note>İmalatçı  Adresi :Emek Mah. Sıvat Cad. No:15 Sancaktepe / İSTANBUL </cbc:Note>
    <cbc:Note>İmalatçı  Vergi No :9150249785 </cbc:Note>
    <cbc:Note>İmalatçı  Vergi Dairesi : ÇAMLICA İHTİSAS </cbc:Note>
    <cbc:Note>Kur : 21,2773 GBP / TRY,  Fatura Toplamı : 90.257,80 GBP</cbc:Note>
    <cbc:Note>Yalnız, DoksanBinİkiYüzElliYedi GBP.Seksen Cent'dir. </cbc:Note>
    <cbc:Note>Vergi İstisna Muafiyet Sebebi : 301-11/1-a Mal İhracatı</cbc:Note>
    <cbc:DocumentCurrencyCode>GBP</cbc:DocumentCurrencyCode>
    <cbc:PricingCurrencyCode>GBP</cbc:PricingCurrencyCode>
    <cbc:LineCountNumeric>5</cbc:LineCountNumeric>
    <cac:AdditionalDocumentReference>
        <cbc:ID>00000000-0000-0000-0000-000000000000</cbc:ID>
        <cbc:IssueDate>2022-11-09</cbc:IssueDate>
        <cbc:DocumentType>XSLT</cbc:DocumentType>
    </cac:AdditionalDocumentReference>
    <cac:Signature>
        <cbc:ID schemeID="VKN_TCKN">9130300454</cbc:ID>
        <cac:SignatoryParty>
            <cac:PartyIdentification>
                <cbc:ID schemeID="VKN">9130300454</cbc:ID>
            </cac:PartyIdentification>
            <cac:PostalAddress>
                <cbc:StreetName>EMEK MH. SIVAT CD NO:17</cbc:StreetName>
                <cbc:BuildingName>SARIGAZİ</cbc:BuildingName>
                <cbc:BuildingNumber>17</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Sancaktepe</cbc:CitySubdivisionName>
                <cbc:CityName>İstanbul </cbc:CityName>
                <cbc:PostalZone>34785</cbc:PostalZone>
                <cac:Country>
                    <cbc:Name>TR</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
        </cac:SignatoryParty>
        <cac:DigitalSignatureAttachment>
            <cac:ExternalReference>
                <cbc:URI>#Signature_UNI2022000001948</cbc:URI>
            </cac:ExternalReference>
        </cac:DigitalSignatureAttachment>
    </cac:Signature>
    <cac:AccountingSupplierParty>
        <cac:Party>
            <cbc:WebsiteURI>www.unlu.com</cbc:WebsiteURI>
            <cac:PartyIdentification>
                <cbc:ID schemeID="VKN">9130300454</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyIdentification>
                <cbc:ID schemeID="MERSISNO">0913030045400010</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyIdentification>
                <cbc:ID schemeID="TICARETSICILNO">692371</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>ÜNL DIŞ TİCARET LTD. ŞTİ. </cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>EMEK MH. SIVAT CD NO:17</cbc:StreetName>
                <cbc:BuildingName>SARIGAZİ</cbc:BuildingName>
                <cbc:BuildingNumber>17</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Sancaktepe</cbc:CitySubdivisionName>
                <cbc:CityName>İstanbul </cbc:CityName>
                <cbc:PostalZone>34785</cbc:PostalZone>
                <cac:Country>
                    <cbc:Name>TR</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name>SULTANBEYLİ</cbc:Name>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:Contact>
                <cbc:Telephone>2166456900</cbc:Telephone>
                <cbc:Telefax>2164155467</cbc:Telefax>
                <cbc:ElectronicMail>serkan.atmis@unlu.com</cbc:ElectronicMail>
            </cac:Contact>
        </cac:Party>
    </cac:AccountingSupplierParty>
    <cac:AccountingCustomerParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="VKN">1460415308</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>Gümrük ve Ticaret Bakanlığı</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>Üniversiteler Mahallesi Dumlupınar Bulvarı</cbc:StreetName>
                <cbc:BuildingNumber>151</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Çankaya</cbc:CitySubdivisionName>
                <cbc:CityName>Ankara</cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>TR</cbc:IdentificationCode>
                    <cbc:Name>Türkiye</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name>Ulus</cbc:Name>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
        </cac:Party>
    </cac:AccountingCustomerParty>
    <cac:BuyerCustomerParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="PARTYTYPE">EXPORT</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>JP BODEN & CO LTD.</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>114-120 VICTORIA ROAD, LONDON,</cbc:StreetName>
                <cbc:BuildingName />
                <cbc:CitySubdivisionName>6 NY</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name />
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>JP BODEN & CO LTD.</cbc:RegistrationName>
                <cbc:CompanyID>1111111111</cbc:CompanyID>
            </cac:PartyLegalEntity>
            <cac:Contact />
        </cac:Party>
    </cac:BuyerCustomerParty>
    <cac:SellerSupplierParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="PARTYTYPE">EXPORT</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>JP BODEN & CO LTD.</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name />
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>JP BODEN & CO LTD.</cbc:RegistrationName>
                <cbc:CompanyID>1111111111</cbc:CompanyID>
            </cac:PartyLegalEntity>
            <cac:Contact />
        </cac:Party>
    </cac:SellerSupplierParty>
    <cac:PaymentMeans>
        <cbc:PaymentMeansCode>1</cbc:PaymentMeansCode>
        <cbc:PaymentDueDate>2022-11-09</cbc:PaymentDueDate>
    </cac:PaymentMeans>
    <cac:PaymentTerms>
        <cbc:Note>DIGER – Mal Mukabili</cbc:Note>
    </cac:PaymentTerms>
    <cac:PricingExchangeRate>
        <cbc:SourceCurrencyCode>GBP</cbc:SourceCurrencyCode>
        <cbc:TargetCurrencyCode>GBP</cbc:TargetCurrencyCode>
        <cbc:CalculationRate>21.2773</cbc:CalculationRate>
        <cbc:Date>2022-11-09</cbc:Date>
    </cac:PricingExchangeRate>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="GBP">0.00</cbc:TaxAmount>
        <cac:TaxSubtotal>
            <cbc:TaxableAmount currencyID="GBP">90257.80</cbc:TaxableAmount>
            <cbc:TaxAmount currencyID="GBP">0.00</cbc:TaxAmount>
            <cbc:Percent>0.00</cbc:Percent>
            <cac:TaxCategory>
                <cbc:TaxExemptionReasonCode>301</cbc:TaxExemptionReasonCode>
                <cbc:TaxExemptionReason>11/1-a Mal İhracatı</cbc:TaxExemptionReason>
                <cac:TaxScheme>
                    <cbc:Name>KDV</cbc:Name>
                    <cbc:TaxTypeCode>0015</cbc:TaxTypeCode>
                </cac:TaxScheme>
            </cac:TaxCategory>
        </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:LegalMonetaryTotal>
        <cbc:LineExtensionAmount currencyID="GBP">90257.80</cbc:LineExtensionAmount>
        <cbc:TaxExclusiveAmount currencyID="GBP">90257.80</cbc:TaxExclusiveAmount>
        <cbc:TaxInclusiveAmount currencyID="GBP">90257.80</cbc:TaxInclusiveAmount>
        <cbc:AllowanceTotalAmount currencyID="GBP">0.00</cbc:AllowanceTotalAmount>
        <cbc:ChargeTotalAmount currencyID="GBP">0.00</cbc:ChargeTotalAmount>
        <cbc:PayableAmount currencyID="GBP">90257.80</cbc:PayableAmount>
    </cac:LegalMonetaryTotal>
    <cac:InvoiceLine>
        <cbc:ID>1</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">1304.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">28427.20</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>1</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>2</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">873.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">19031.40</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>2</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>3</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">747.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">17031.60</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>3</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">22.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>4</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">613.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">13363.40</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>4</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>5</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">569.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">12404.20</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>5</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
</Invoice>
```
<p>and here is the Controller code:</p>
``` public function getXml(Request $request)
    {
        $file = $request->file('xmlfile');

        $xmlObject = simplexml_load_string($file->get());
        $json = json_encode($xmlObject);
        $phpArray = json_decode($json, true);

        return response()->json($phpArray);
    }
```

What is wrong, i couldn't find it.

Title: Laravel 9 Api Xml Parse

Body:
I'm trying to parse xml file which comes from FileUpload as a request and convert and return as json, but i always get this json object:

{
    "@attributes": {
        "schemaLocation": "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.1.xsd"
    }
}

Here is the json file:

<?xml version="1.0" encoding="utf-8"?>
<Invoice
    xmlns:ubltr="urn:oasis:names:specification:ubl:schema:xsd:TurkishCustomizationExtensionComponents"
    xmlns:cctc="urn:un:unece:uncefact:documentation:2"
    xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
    xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
    xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
    xmlns:xades="http://uri.etsi.org/01903/v1.3.2#"
    xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.1.xsd"
    xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
    <ext:UBLExtensions>
        <ext:UBLExtension>
            <ext:ExtensionContent />
        </ext:UBLExtension>
    </ext:UBLExtensions>
    <cbc:UBLVersionID>2.1</cbc:UBLVersionID>
    <cbc:CustomizationID>TR1.2</cbc:CustomizationID>
    <cbc:ProfileID>IHRACAT</cbc:ProfileID>
    <cbc:ID>UNI2022000001948</cbc:ID>
    <cbc:CopyIndicator>false</cbc:CopyIndicator>
    <cbc:UUID>1122c98e-f17b-48bc-a917-3694972d45a3</cbc:UUID>
    <cbc:IssueDate>2022-11-09</cbc:IssueDate>
    <cbc:IssueTime>11:55:47.0000000+03:00</cbc:IssueTime>
    <cbc:InvoiceTypeCode>ISTISNA</cbc:InvoiceTypeCode>
    <cbc:Note>1920442.28</cbc:Note>
    <cbc:Note>0.00</cbc:Note>
    <cbc:Note>1920442.28</cbc:Note>
    <cbc:Note>1920442.28</cbc:Note>
    <cbc:Note>TOPLAM : 4106 ADET / 215 KOLİ  </cbc:Note>
    <cbc:Note>Mallar TÜRK Menşelidir. </cbc:Note>
    <cbc:Note />
    <cbc:Note>İmalatçı :ÜNLÜ TEKSTİL SAN. VE TİC. A.Ş. </cbc:Note>
    <cbc:Note>İmalatçı  Adresi :Emek Mah. Sıvat Cad. No:15 Sancaktepe / İSTANBUL </cbc:Note>
    <cbc:Note>İmalatçı  Vergi No :9150249785 </cbc:Note>
    <cbc:Note>İmalatçı  Vergi Dairesi : ÇAMLICA İHTİSAS </cbc:Note>
    <cbc:Note>Kur : 21,2773 GBP / TRY,  Fatura Toplamı : 90.257,80 GBP</cbc:Note>
    <cbc:Note>Yalnız, DoksanBinİkiYüzElliYedi GBP.Seksen Cent'dir. </cbc:Note>
    <cbc:Note>Vergi İstisna Muafiyet Sebebi : 301-11/1-a Mal İhracatı</cbc:Note>
    <cbc:DocumentCurrencyCode>GBP</cbc:DocumentCurrencyCode>
    <cbc:PricingCurrencyCode>GBP</cbc:PricingCurrencyCode>
    <cbc:LineCountNumeric>5</cbc:LineCountNumeric>
    <cac:AdditionalDocumentReference>
        <cbc:ID>00000000-0000-0000-0000-000000000000</cbc:ID>
        <cbc:IssueDate>2022-11-09</cbc:IssueDate>
        <cbc:DocumentType>XSLT</cbc:DocumentType>
    </cac:AdditionalDocumentReference>
    <cac:Signature>
        <cbc:ID schemeID="VKN_TCKN">9130300454</cbc:ID>
        <cac:SignatoryParty>
            <cac:PartyIdentification>
                <cbc:ID schemeID="VKN">9130300454</cbc:ID>
            </cac:PartyIdentification>
            <cac:PostalAddress>
                <cbc:StreetName>EMEK MH. SIVAT CD NO:17</cbc:StreetName>
                <cbc:BuildingName>SARIGAZİ</cbc:BuildingName>
                <cbc:BuildingNumber>17</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Sancaktepe</cbc:CitySubdivisionName>
                <cbc:CityName>İstanbul </cbc:CityName>
                <cbc:PostalZone>34785</cbc:PostalZone>
                <cac:Country>
                    <cbc:Name>TR</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
        </cac:SignatoryParty>
        <cac:DigitalSignatureAttachment>
            <cac:ExternalReference>
                <cbc:URI>#Signature_UNI2022000001948</cbc:URI>
            </cac:ExternalReference>
        </cac:DigitalSignatureAttachment>
    </cac:Signature>
    <cac:AccountingSupplierParty>
        <cac:Party>
            <cbc:WebsiteURI>www.unlu.com</cbc:WebsiteURI>
            <cac:PartyIdentification>
                <cbc:ID schemeID="VKN">9130300454</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyIdentification>
                <cbc:ID schemeID="MERSISNO">0913030045400010</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyIdentification>
                <cbc:ID schemeID="TICARETSICILNO">692371</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>ÜNL DIŞ TİCARET LTD. ŞTİ. </cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>EMEK MH. SIVAT CD NO:17</cbc:StreetName>
                <cbc:BuildingName>SARIGAZİ</cbc:BuildingName>
                <cbc:BuildingNumber>17</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Sancaktepe</cbc:CitySubdivisionName>
                <cbc:CityName>İstanbul </cbc:CityName>
                <cbc:PostalZone>34785</cbc:PostalZone>
                <cac:Country>
                    <cbc:Name>TR</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name>SULTANBEYLİ</cbc:Name>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:Contact>
                <cbc:Telephone>2166456900</cbc:Telephone>
                <cbc:Telefax>2164155467</cbc:Telefax>
                <cbc:ElectronicMail>serkan.atmis@unlu.com</cbc:ElectronicMail>
            </cac:Contact>
        </cac:Party>
    </cac:AccountingSupplierParty>
    <cac:AccountingCustomerParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="VKN">1460415308</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>Gümrük ve Ticaret Bakanlığı</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>Üniversiteler Mahallesi Dumlupınar Bulvarı</cbc:StreetName>
                <cbc:BuildingNumber>151</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Çankaya</cbc:CitySubdivisionName>
                <cbc:CityName>Ankara</cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>TR</cbc:IdentificationCode>
                    <cbc:Name>Türkiye</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name>Ulus</cbc:Name>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
        </cac:Party>
    </cac:AccountingCustomerParty>
    <cac:BuyerCustomerParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="PARTYTYPE">EXPORT</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>JP BODEN & CO LTD.</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>114-120 VICTORIA ROAD, LONDON,</cbc:StreetName>
                <cbc:BuildingName />
                <cbc:CitySubdivisionName>6 NY</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name />
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>JP BODEN & CO LTD.</cbc:RegistrationName>
                <cbc:CompanyID>1111111111</cbc:CompanyID>
            </cac:PartyLegalEntity>
            <cac:Contact />
        </cac:Party>
    </cac:BuyerCustomerParty>
    <cac:SellerSupplierParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="PARTYTYPE">EXPORT</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>JP BODEN & CO LTD.</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:Name />
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>JP BODEN & CO LTD.</cbc:RegistrationName>
                <cbc:CompanyID>1111111111</cbc:CompanyID>
            </cac:PartyLegalEntity>
            <cac:Contact />
        </cac:Party>
    </cac:SellerSupplierParty>
    <cac:PaymentMeans>
        <cbc:PaymentMeansCode>1</cbc:PaymentMeansCode>
        <cbc:PaymentDueDate>2022-11-09</cbc:PaymentDueDate>
    </cac:PaymentMeans>
    <cac:PaymentTerms>
        <cbc:Note>DIGER – Mal Mukabili</cbc:Note>
    </cac:PaymentTerms>
    <cac:PricingExchangeRate>
        <cbc:SourceCurrencyCode>GBP</cbc:SourceCurrencyCode>
        <cbc:TargetCurrencyCode>GBP</cbc:TargetCurrencyCode>
        <cbc:CalculationRate>21.2773</cbc:CalculationRate>
        <cbc:Date>2022-11-09</cbc:Date>
    </cac:PricingExchangeRate>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="GBP">0.00</cbc:TaxAmount>
        <cac:TaxSubtotal>
            <cbc:TaxableAmount currencyID="GBP">90257.80</cbc:TaxableAmount>
            <cbc:TaxAmount currencyID="GBP">0.00</cbc:TaxAmount>
            <cbc:Percent>0.00</cbc:Percent>
            <cac:TaxCategory>
                <cbc:TaxExemptionReasonCode>301</cbc:TaxExemptionReasonCode>
                <cbc:TaxExemptionReason>11/1-a Mal İhracatı</cbc:TaxExemptionReason>
                <cac:TaxScheme>
                    <cbc:Name>KDV</cbc:Name>
                    <cbc:TaxTypeCode>0015</cbc:TaxTypeCode>
                </cac:TaxScheme>
            </cac:TaxCategory>
        </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:LegalMonetaryTotal>
        <cbc:LineExtensionAmount currencyID="GBP">90257.80</cbc:LineExtensionAmount>
        <cbc:TaxExclusiveAmount currencyID="GBP">90257.80</cbc:TaxExclusiveAmount>
        <cbc:TaxInclusiveAmount currencyID="GBP">90257.80</cbc:TaxInclusiveAmount>
        <cbc:AllowanceTotalAmount currencyID="GBP">0.00</cbc:AllowanceTotalAmount>
        <cbc:ChargeTotalAmount currencyID="GBP">0.00</cbc:ChargeTotalAmount>
        <cbc:PayableAmount currencyID="GBP">90257.80</cbc:PayableAmount>
    </cac:LegalMonetaryTotal>
    <cac:InvoiceLine>
        <cbc:ID>1</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">1304.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">28427.20</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>1</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>2</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">873.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">19031.40</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>2</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>3</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">747.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">17031.60</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>3</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">22.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>4</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">613.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">13363.40</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>4</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
    <cac:InvoiceLine>
        <cbc:ID>5</cbc:ID>
        <cbc:Note>"%92 VİSKON %8 ELASTAN BOYALI DOKUMA BAYAN PANTOLON (ASTARLI )</cbc:Note>
        <cbc:InvoicedQuantity unitCode="C62">569.00000000</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="GBP">12404.20</cbc:LineExtensionAmount>
        <cac:Delivery>
            <cac:DeliveryAddress>
                <cbc:Room>İNGİLTERE - LE3 8DU</cbc:Room>
                <cbc:StreetName>Boden Central ,Kirby Road Glenfield , LE3 8DU</cbc:StreetName>
                <cbc:BuildingName>Leicester</cbc:BuildingName>
                <cbc:CitySubdivisionName>LE19</cbc:CitySubdivisionName>
                <cbc:CityName>NW10 </cbc:CityName>
                <cac:Country>
                    <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                    <cbc:Name>İngiltere (Birleşik Krallık) </cbc:Name>
                </cac:Country>
            </cac:DeliveryAddress>
            <cac:DeliveryTerms>
                <cbc:ID schemeID="INCOTERMS">FCA</cbc:ID>
            </cac:DeliveryTerms>
            <cac:Shipment>
                <cbc:ID>5</cbc:ID>
                <cac:GoodsItem>
                    <cbc:RequiredCustomsID>620469180000</cbc:RequiredCustomsID>
                </cac:GoodsItem>
                <cac:ShipmentStage>
                    <cbc:TransportModeCode>3</cbc:TransportModeCode>
                </cac:ShipmentStage>
                <cac:TransportHandlingUnit>
                    <cac:ActualPackage />
                </cac:TransportHandlingUnit>
            </cac:Shipment>
        </cac:Delivery>
        <cac:Item>
            <cbc:Name>PANTOLON</cbc:Name>
            <cbc:ModelName>600.10.006</cbc:ModelName>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="GBP">21.80000000</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
</Invoice>

and here is the Controller code:

 public function getXml(Request $request)
    {
        $file = $request->file('xmlfile');

        $xmlObject = simplexml_load_string($file->get());
        $json = json_encode($xmlObject);
        $phpArray = json_decode($json, true);

        return response()->json($phpArray);
    }

What is wrong, i couldn't find it.


来源: stackexchange

问:
What's the point of Keras its Unstateful LSTM model?
Keras distinguishes "Stateful" and "Unstateful" LSTM's, by default having them configured as "Unstateful". This is something that confused me a lot as LSTM's by definition are stateful. Isn't the whole point of LSTM's that it retains and upates learnings from historic data sequentially using its cell states?

When digging deeper into the Keras documentation on "Stateful" option in their LSTM layers, it brings more questions to my mind:

If I understand correctly, an "Unstateful" LSTM in Keras is basically clearing the cell states after each batch it trains on. It seems that this destroys the whole purpose of LSTM's, or at least reduces its usefulness to the size of a batch.

In line with what I mentioned, I'm confused why this is the case? ( Is this just a matter of optimizing (computational resources) efficiency in learning?  )

According to their documentation on a "Stateful" LSTM:

stateful: Boolean (default False). If True, the last state for each
sample at index i in a batch will be used as initial state for the
sample of index i in the following batch.

does that mean that a "Stateful" LSTM for a continuous time series should have a batch_size=1?

As there's not necessarily a predefined relation between sequences of samples, just between samples. The LSTM should then relate it to earlier samples through cell states, instead of predefining this based on the above definition, which seems to assume each batch's sequence of samples follows a learnable trend, as the cell state is reused in the same order for each.

In short: is my interpretation correct and should "Stateful" only be used on a batch size > 1 if the batches represent recurring sequences to learn and otherwise only use it on batch_size=1?

Is training a “Stateless” LSTM with a batch_size >= num of samples, i.e. processing the whole dataset in one batch, the same as training a "Stateful" LSTM with a batch_size = 1? As in both cases the cell state wil be maintained and updated according to the previous value when propagating each sample forward into the LSTM right?

Any insights on these questions would be much appreciated!

ContentLicense: CC BY-SA 4.0


问:
How to implement PKCE for OpenId Connect in Nuxtjs
Please help, I look around on Internet for almost 2 days but found no solution.
Currently, I use oidc-client to implement SSO login for my Nuxtjs App (Nuxt 2). Everything work ok. But due to change of rules, we need to add PKCE to this authentication. I have already tried @nuxtjs/auth-next and use scheme openIDConnect (https://auth.nuxtjs.org/schemes/openIDConnect) but it doesn't work at all.
It keeps showing 2 errors:

```<code>1. [AUTH] [OPENID CONNECT] Invalid configuration. Value of scheme option scope is not supported by scopes_supported of by Authorization Server.
</code>```

=> I confirm that All scopes are valid

```<code>2. TypeError: Cannot read properties of null (reading 'common')
    at RequestHandler._requestHasAuthorizationHeader (runtime.mjs:951:29)
    at eval (runtime.mjs:928:28)
</code>```

=> Really Don't know why this error happens

Below is my old code that works fine if no need PKCE:

```<code>import { UserManager, UserManagerSettings } from 'oidc-client'

export const oidcSettings: UserManagerSettings = {
  authority: process.env.SSO_API,
  client_id: process.env.SSO_CLIENT_ID,
  redirect_uri: process.env.SSO_LOGIN_REDIRECT_URI,
  response_type: 'code',
  scope: 'openid offline email profile offline_access',
  post_logout_redirect_uri: process.env.SSO_LOGOUT_REDIRECT_URI,
}

export const oidcUser = new UserManager(oidcSettings)

export const loginWithOidc = async () => {
  try {
    const response = await oidcUser.signinRedirect()
    return response
  } catch (error: any) {
    return error
  }
}
</code>```

And this is code inside nuxt.config.js. I am sure that the configuration endpoints is correct and no problem with this because it work fine with my old code.

```<code>auth: {
    strategies: {
      oidcmock: {
        scheme: 'openIDConnect',
        responseType: 'code',
        clientId: 'fpl-web-client',
        scope: 'openid offline email profile offline_access',
        grantType: 'authorization_code',
        logoutRedirectUri: 'http://localhost:80',
        redirectUri: 'http://localhost:80/login/sso/callback',
        endpoints: {
          configuration: process.env.ENDPOINTS_CONFIG,
        },
        codeChallengeMethod: 'S256',
      },
    },
  },
</code>```

Hope to receive any advice soons.
Merry Christmas

Body:
Please help, I look around on Internet for almost 2 days but found no solution.
Currently, I use oidc-client to implement SSO login for my Nuxtjs App (Nuxt 2). Everything work ok. But due to change of rules, we need to add PKCE to this authentication. I have already tried @nuxtjs/auth-next and use scheme openIDConnect (https://auth.nuxtjs.org/schemes/openIDConnect) but it doesn't work at all.
It keeps showing 2 errors:

1. [AUTH] [OPENID CONNECT] Invalid configuration. Value of scheme option scope is not supported by scopes_supported of by Authorization Server.

=> I confirm that All scopes are valid

2. TypeError: Cannot read properties of null (reading 'common')
    at RequestHandler._requestHasAuthorizationHeader (runtime.mjs:951:29)
    at eval (runtime.mjs:928:28)

=> Really Don't know why this error happens

Below is my old code that works fine if no need PKCE:

import { UserManager, UserManagerSettings } from 'oidc-client'

export const oidcSettings: UserManagerSettings = {
  authority: process.env.SSO_API,
  client_id: process.env.SSO_CLIENT_ID,
  redirect_uri: process.env.SSO_LOGIN_REDIRECT_URI,
  response_type: 'code',
  scope: 'openid offline email profile offline_access',
  post_logout_redirect_uri: process.env.SSO_LOGOUT_REDIRECT_URI,
}

export const oidcUser = new UserManager(oidcSettings)

export const loginWithOidc = async () => {
  try {
    const response = await oidcUser.signinRedirect()
    return response
  } catch (error: any) {
    return error
  }
}

And this is code inside nuxt.config.js. I am sure that the configuration endpoints is correct and no problem with this because it work fine with my old code.

auth: {
    strategies: {
      oidcmock: {
        scheme: 'openIDConnect',
        responseType: 'code',
        clientId: 'fpl-web-client',
        scope: 'openid offline email profile offline_access',
        grantType: 'authorization_code',
        logoutRedirectUri: 'http://localhost:80',
        redirectUri: 'http://localhost:80/login/sso/callback',
        endpoints: {
          configuration: process.env.ENDPOINTS_CONFIG,
        },
        codeChallengeMethod: 'S256',
      },
    },
  },

Hope to receive any advice soons.
Merry Christmas


问:
Terraform: How to share resource from shared modules to environment specific modules?
Firstly, my terminology might be poor as I'm just starting out with Terraform, so I apologize.

I have the following structure on my infrastructure Terraform project:

```<code>├── environments
│   ├── dev
│   ├── staging
│   └── prod
├── modules
│   ├── iam
│   ├── lambda
│   ├── s3
│   ├── ...
│   └── security
├── shared
│   ├── containers
│   ├── iam
│   ├── ...
│   └── s3
└── main.tf
</code>```

So a little bit context: I am using the /environments/ directory for creating custom resources for each application environment. Those resources are created based on the modules defined on the /modules/ directory, and that's what I'm referring with "environment specific modules".

On the /shared/ directory I have modules which are used the same for all environments. Those are used on /main.tf and applied when terraform apply runs on root.

There are cases when I want to reference a shared resource inside an environment. For example a container (AWS ECR) shared upon all environments. The repository_url of this container will be the same while the image tag will change. How can I reference it inside /modules/lambda/main.tf for example? I though about using a variable on the lambda module, so the value can be specified when the module is created on environments/dev/main.tf, but how can I reference it?

I thought about having the following code on environments/dev/main.tf:

```<code>module "containers" {
    source = "../../shared/containers/"
}

module "lambda" {
    source        = "../../modules/lambda/"
    container_url = module.containers.lambda_repository_url
}
</code>```

but wouldn't that recreate the resources on the shared modules each time the environment is applied?

Body:
Firstly, my terminology might be poor as I'm just starting out with Terraform, so I apologize.

I have the following structure on my infrastructure Terraform project:

├── environments
│   ├── dev
│   ├── staging
│   └── prod
├── modules
│   ├── iam
│   ├── lambda
│   ├── s3
│   ├── ...
│   └── security
├── shared
│   ├── containers
│   ├── iam
│   ├── ...
│   └── s3
└── main.tf

So a little bit context: I am using the /environments/ directory for creating custom resources for each application environment. Those resources are created based on the modules defined on the /modules/ directory, and that's what I'm referring with "environment specific modules".

On the /shared/ directory I have modules which are used the same for all environments. Those are used on /main.tf and applied when terraform apply runs on root.

There are cases when I want to reference a shared resource inside an environment. For example a container (AWS ECR) shared upon all environments. The repository_url of this container will be the same while the image tag will change. How can I reference it inside /modules/lambda/main.tf for example? I though about using a variable on the lambda module, so the value can be specified when the module is created on environments/dev/main.tf, but how can I reference it?

I thought about having the following code on environments/dev/main.tf:

module "containers" {
    source = "../../shared/containers/"
}

module "lambda" {
    source        = "../../modules/lambda/"
    container_url = module.containers.lambda_repository_url
}

but wouldn't that recreate the resources on the shared modules each time the environment is applied?


问:
Disabled React-Query is fetching on a `onFocus` Event
I have the following query:

```<code>const [isPolling, setPolling] = useState(false);

const { data, error } = useQueryHook({
 {<query options>},
 {
   enabled: isPolling,
   refetchInterval: (data) => { return isPolling ? 5000 : false },
   refetchOnWindowFocus: false,
 }
}
</code>```

What I'm seeing is that this query is still fetching during onFocus but I can't figure out why or how to disable this?

Body:
I have the following query:

const [isPolling, setPolling] = useState(false);

const { data, error } = useQueryHook({
 {<query options>},
 {
   enabled: isPolling,
   refetchInterval: (data) => { return isPolling ? 5000 : false },
   refetchOnWindowFocus: false,
 }
}

What I'm seeing is that this query is still fetching during onFocus but I can't figure out why or how to disable this?


问:
ELK (Eclipse Layout Kernel) Layered layerChoiceConstraint Force Same Layer
I'm new to ELK, but wondering if there's any way to force nodes to be on the same level without actually specifying the level number.

Essentially, I want to make sure nodes a,b,c are on the same level, but don't care which level the algorithm assigns to them.


问:
callback Url error: site can't be reached
I am making an android app and i want to login with Auth0 and the login works(i can see that in the logs from Auth0) but the callback url after the login gives an error.
this is the error i get:

The callback url is:demo://hogentdevops09.eu.auth0.com/android/be.hogent.g09.virtualit/
this shoul be correct.
when i tried to do the same thing with another laptop it gave the error: demo link is blocked

i tried to change demo to https but that didn't help, i tried upgrading gradle but that was not good either.


问:
Remove html bottom space, main scroll and make scrollable content with div
I'm trying to make layout using flexbox, but y cant' achieve my goal.

My current result

I would like remove html bottom space, and remove main scroll, then make content with two scrollable divs.

somenthing what i'm expecting is:

What i'm expecting

This my [code.]   https://codepen.io/adolfome9/pen/XWBbPxv.

```<code>>
</code>```

html {
  height: 100%;
  background-color: aquamarine;
  padding: 0;
  margin: 0;
}

body {
  height: 100%;
  background-color: red;
  font-size: 11px;
  overflow-x: hidden;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.app-toolbar {
  background-color: #fbfafa;
  width: 100%;
  /*height: 40px;*/
  flex: 0 0 40px;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: visible;
  z-index: 999;
  padding: 1px 12px 1px 12px;
}

.app-toolbar .left-side {
  flex: 1 1 auto;
  background-color: #fbfafa;
}

.app-toolbar .midle {
  flex: 0 0 100px;
  background-color: #fbfafa;
}

.app-toolbar .right-side {
  flex: 0 0 120px;
  background-color: #fbfafa;
}

.app-info {
  width: 100%;
  display: flex;
}

.app-info-title {
  width: 100%;
  color: #333;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 14px;
}

.app-info-subTitle {
  width: 100%;
  color: #aaa;
  font-size: 12px;
  text-overflow: ellipsis;
}

.project-tab .nav-link:hover {
  color: #299296;
}

.nav-tabs .nav-link.active-menu {
  border-bottom: 3px solid !important;
  font-size: 12px;
  font-family: ProximaNova, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.nav-tabs .nav-link.active-menu {
  color: #0d838e;
  background-color: #fff;
  height: 100%;
}

.content-wrapper {
  height: 100%;
  min-height: 100%;
  z-index: 800;
  position: relative;
  display: flex;
  flex-direction: column;
}

.content-main {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 15px 15px 15px 15px;
  display: flex;
  flex-direction: column;
  background-color: rebeccapurple;
}

.info-main {
  width: 70%;
  position: relative;
}

.app-workspace {
  min-height: 100%;
  display: flex;
  position: relative;
}

.inner-content {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.info-rel {
  border-left: 0;
  border-bottom: 0;
  padding: 0 10px 0 0;
  margin: 0 0 0 6px;
  width: 30%;
  display: flex;
  flex-direction: column;
}

.info-rel-header {
  flex: 0 0 40px;
}

.info-rel-content {
  flex: 1;
  overflow-y: auto;
}```
<pre class="snippet-code-html lang-html prettyprint-override"><code><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">

<div class="content-wrapper">
  <div class="app-toolbar">
    <div class="left-side">
    </div>
    <div class="midle">
      HEADER
    </div>
    <div class="right-side">
    </div>
  </div>

  <section class="content-main">
    <div class="app-info">
      <div id="divContent" class="agrupador" style="width:80%">
        <div id="imgIconoEmpresa" style="margin-top:4px">
        </div>
        <div id="infoSalesPlan">
          <div class="app-info-title posicion-left-Titulo" id="txtTitulo">
            <div class="row">
              <div id="txtTitulo" style="width: 100%;">
                TITLE
              </div>
            </div>
          </div>
          <div class="app-info-subTitle posicion-left-subTitle" id="txtSubTitulo">
            SUB-TITLE
          </div>
        </div>
      </div>
      <div style="width:20%">
        <div style="text-align:right" id="txtEstadoServicio">
          NEW
        </div>
      </div>
    </div>
    <div class="app-workspace">
      <div class="info-main">
        <section id="tabs" class="project-tab mb-1">
          <ul class="nav nav-tabs nav-justified">
            <li class="nav-item">
              Home
            </li>
          </ul>
        </section>
        <div class="inner-content">
          <p>MAIN CONTENT</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
        </div>
      </div>
      <nav class="info-rel">
        <div class="info-rel-header">
          <p>RIGHT SIDE</p>
        </div>
        <div class="info-rel-content">
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
          <p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
        </div>
      </nav>
    </div>
  </section>
</div></code>```

Body:
I'm trying to make layout using flexbox, but y cant' achieve my goal.

My current result

I would like remove html bottom space, and remove main scroll, then make content with two scrollable divs.

somenthing what i'm expecting is:

What i'm expecting

This my [code.]   https://codepen.io/adolfome9/pen/XWBbPxv.

>

html {
  height: 100%;
  background-color: aquamarine;
  padding: 0;
  margin: 0;
}

body {
  height: 100%;
  background-color: red;
  font-size: 11px;
  overflow-x: hidden;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.app-toolbar {
  background-color: #fbfafa;
  width: 100%;
  /*height: 40px;*/
  flex: 0 0 40px;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: visible;
  z-index: 999;
  padding: 1px 12px 1px 12px;
}

.app-toolbar .left-side {
  flex: 1 1 auto;
  background-color: #fbfafa;
}

.app-toolbar .midle {
  flex: 0 0 100px;
  background-color: #fbfafa;
}

.app-toolbar .right-side {
  flex: 0 0 120px;
  background-color: #fbfafa;
}

.app-info {
  width: 100%;
  display: flex;
}

.app-info-title {
  width: 100%;
  color: #333;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 14px;
}

.app-info-subTitle {
  width: 100%;
  color: #aaa;
  font-size: 12px;
  text-overflow: ellipsis;
}

.project-tab .nav-link:hover {
  color: #299296;
}

.nav-tabs .nav-link.active-menu {
  border-bottom: 3px solid !important;
  font-size: 12px;
  font-family: ProximaNova, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.nav-tabs .nav-link.active-menu {
  color: #0d838e;
  background-color: #fff;
  height: 100%;
}

.content-wrapper {
  height: 100%;
  min-height: 100%;
  z-index: 800;
  position: relative;
  display: flex;
  flex-direction: column;
}

.content-main {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 15px 15px 15px 15px;
  display: flex;
  flex-direction: column;
  background-color: rebeccapurple;
}

.info-main {
  width: 70%;
  position: relative;
}

.app-workspace {
  min-height: 100%;
  display: flex;
  position: relative;
}

.inner-content {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.info-rel {
  border-left: 0;
  border-bottom: 0;
  padding: 0 10px 0 0;
  margin: 0 0 0 6px;
  width: 30%;
  display: flex;
  flex-direction: column;
}

.info-rel-header {
  flex: 0 0 40px;
}

.info-rel-content {
  flex: 1;
  overflow-y: auto;
}

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">

      HEADER

                TITLE

            SUB-TITLE

          NEW

              Home

MAIN CONTENT

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

RIGHT SIDE

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.


问:
Why ursina didn't detect the .gltf?
Well, I'm trying to do a Minecraft like game using Ursina game engine. I have Ursina installed, I imported the "dirt_texture.png" and the "block.gltf" from Blockbench into the PyCharm. I wrote the following code (btw, I'm on Linux Ubuntu):

```<code>from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController

app = Ursina()

class Voxel(Button):
    def __init__(self, position = (0, 0, 0)):
        super().__init__(
            parent = scene,
            position = position,
            model = 'block.gltf',
            origin_y = 0.5,
            texture = 'dirt_texture.png',
            color = color.white)

    def input(self, key):
        if self.hovered:
            if key == 'right mouse down':
                voxel = Voxel(position = self.position + mouse.normal)
            if key == 'left mouse down':
                destroy(self)

for z in range(20):
    for x in range(20):
        voxel = Voxel(position = (x,0,z))
player = FirstPersonController()

app.run()
</code>```

Then I got this weird error that I don't understand:

```<code>:prc(warning): Invalid integer value for ConfigVariable win-size: 840.0
:prc(warning): Invalid integer value for ConfigVariable win-size: 1344.0
Known pipe types:
  glxGraphicsPipe
(4 aux display modules not yet loaded.)
:device(warning): /dev/input/event12 is not readable, some features will be unavailable.
Traceback (most recent call last):
  File "/home/alex2012/PycharmProjects/Minecraft/main.py", line 4, in <module>
    app = Ursina()
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/main.py", line 51, in __init__
    camera.set_up()
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/camera.py", line 74, in set_up
    self.overlay = Entity(parent=self.ui, model='quad', scale=99, color=color.clear, eternal=True, z=-99)
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/entity.py", line 114, in __init__
    setattr(self, key, kwargs[key])
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/entity.py", line 210, in __setattr__
    m = load_model(value, application.asset_folder)
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/mesh_importer.py", line 42, in load_model
    for filename in path.glob(f'**/{name}{filetype}'):
  File "/usr/lib/python3.6/pathlib.py", line 1100, in glob
    for p in selector.select_from(self):
  File "/usr/lib/python3.6/pathlib.py", line 559, in _select_from
    for starting_point in self._iterate_directories(parent_path, is_dir, scandir):
  File "/usr/lib/python3.6/pathlib.py", line 549, in _iterate_directories
    for p in self._iterate_directories(path, is_dir, scandir):
  File "/usr/lib/python3.6/pathlib.py", line 549, in _iterate_directories
    for p in self._iterate_directories(path, is_dir, scandir):
  File "/usr/lib/python3.6/pathlib.py", line 549, in _iterate_directories
    for p in self._iterate_directories(path, is_dir, scandir):
  [Previous line repeated 4 more times]
  File "/usr/lib/python3.6/pathlib.py", line 545, in _iterate_directories
    entries = list(scandir(parent_path))
KeyboardInterrupt
</code>```

The .png is an image without errors, and the .gltful is this:

```<code>{"asset":{"version":"2.0","generator":"Blockbench 4.5.2 glTF exporter"},"scenes":[{"nodes":[1],"name":"blockbench_export"}],"scene":0,"nodes":[{"name":"cube","mesh":0},{"children":[0]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":288,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":192,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":768,"byteLength":72,"target":34963}],"buffers":[{"byteLength":840,"uri":"data:application/octet-stream;base64,AAAAPwAAgD8AAAA/AAAAPwAAgD8AAAC/AAAAPwAAAAAAAAA/AAAAPwAAAAAAAAC/AAAAvwAAgD8AAAC/AAAAvwAAgD8AAAA/AAAAvwAAAAAAAAC/AAAAvwAAAAAAAAA/AAAAvwAAgD8AAAC/AAAAPwAAgD8AAAC/AAAAvwAAgD8AAAA/AAAAPwAAgD8AAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAvwAAAAAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAgD8AAAA/AAAAPwAAgD8AAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAPwAAgD8AAAC/AAAAvwAAgD8AAAC/AAAAPwAAAAAAAAC/AAAAvwAAAAAAAAC/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAgD8AAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAAACAAEAAgADAAEABAAGAAUABgAHAAUACAAKAAkACgALAAkADAAOAA0ADgAPAA0AEAASABEAEgATABEAFAAWABUAFgAXABUA"}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[0.5,1,0.5],"min":[-0.5,0,-0.5],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"max":[1,1],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"max":[23],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]}]}
</code>```

When I open it in PyCharm, there is not displayed any error.

I tried a .obj, don't work, a .json, neither, AND WHAT SHOULD I DO?

Title: Why ursina didn't detect the .gltf?

Body:
Well, I'm trying to do a Minecraft like game using Ursina game engine. I have Ursina installed, I imported the "dirt_texture.png" and the "block.gltf" from Blockbench into the PyCharm. I wrote the following code (btw, I'm on Linux Ubuntu):

from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController

app = Ursina()

class Voxel(Button):
    def __init__(self, position = (0, 0, 0)):
        super().__init__(
            parent = scene,
            position = position,
            model = 'block.gltf',
            origin_y = 0.5,
            texture = 'dirt_texture.png',
            color = color.white)

    def input(self, key):
        if self.hovered:
            if key == 'right mouse down':
                voxel = Voxel(position = self.position + mouse.normal)
            if key == 'left mouse down':
                destroy(self)

for z in range(20):
    for x in range(20):
        voxel = Voxel(position = (x,0,z))
player = FirstPersonController()

app.run()

Then I got this weird error that I don't understand:

:prc(warning): Invalid integer value for ConfigVariable win-size: 840.0
:prc(warning): Invalid integer value for ConfigVariable win-size: 1344.0
Known pipe types:
  glxGraphicsPipe
(4 aux display modules not yet loaded.)
:device(warning): /dev/input/event12 is not readable, some features will be unavailable.
Traceback (most recent call last):
  File "/home/alex2012/PycharmProjects/Minecraft/main.py", line 4, in <module>
    app = Ursina()
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/main.py", line 51, in __init__
    camera.set_up()
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/camera.py", line 74, in set_up
    self.overlay = Entity(parent=self.ui, model='quad', scale=99, color=color.clear, eternal=True, z=-99)
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/entity.py", line 114, in __init__
    setattr(self, key, kwargs[key])
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/entity.py", line 210, in __setattr__
    m = load_model(value, application.asset_folder)
  File "/home/alex2012/PycharmProjects/Minecraft/venv/lib/python3.6/site-packages/ursina/mesh_importer.py", line 42, in load_model
    for filename in path.glob(f'**/{name}{filetype}'):
  File "/usr/lib/python3.6/pathlib.py", line 1100, in glob
    for p in selector.select_from(self):
  File "/usr/lib/python3.6/pathlib.py", line 559, in _select_from
    for starting_point in self._iterate_directories(parent_path, is_dir, scandir):
  File "/usr/lib/python3.6/pathlib.py", line 549, in _iterate_directories
    for p in self._iterate_directories(path, is_dir, scandir):
  File "/usr/lib/python3.6/pathlib.py", line 549, in _iterate_directories
    for p in self._iterate_directories(path, is_dir, scandir):
  File "/usr/lib/python3.6/pathlib.py", line 549, in _iterate_directories
    for p in self._iterate_directories(path, is_dir, scandir):
  [Previous line repeated 4 more times]
  File "/usr/lib/python3.6/pathlib.py", line 545, in _iterate_directories
    entries = list(scandir(parent_path))
KeyboardInterrupt

The .png is an image without errors, and the .gltful is this:

{"asset":{"version":"2.0","generator":"Blockbench 4.5.2 glTF exporter"},"scenes":[{"nodes":[1],"name":"blockbench_export"}],"scene":0,"nodes":[{"name":"cube","mesh":0},{"children":[0]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":288,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":192,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":768,"byteLength":72,"target":34963}],"buffers":[{"byteLength":840,"uri":"data:application/octet-stream;base64,AAAAPwAAgD8AAAA/AAAAPwAAgD8AAAC/AAAAPwAAAAAAAAA/AAAAPwAAAAAAAAC/AAAAvwAAgD8AAAC/AAAAvwAAgD8AAAA/AAAAvwAAAAAAAAC/AAAAvwAAAAAAAAA/AAAAvwAAgD8AAAC/AAAAPwAAgD8AAAC/AAAAvwAAgD8AAAA/AAAAPwAAgD8AAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAvwAAAAAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAgD8AAAA/AAAAPwAAgD8AAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAPwAAgD8AAAC/AAAAvwAAgD8AAAC/AAAAPwAAAAAAAAC/AAAAvwAAAAAAAAC/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAgD8AAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAAACAAEAAgADAAEABAAGAAUABgAHAAUACAAKAAkACgALAAkADAAOAA0ADgAPAA0AEAASABEAEgATABEAFAAWABUAFgAXABUA"}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[0.5,1,0.5],"min":[-0.5,0,-0.5],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"max":[1,1],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"max":[23],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]}]}

When I open it in PyCharm, there is not displayed any error.

I tried a .obj, don't work, a .json, neither, AND WHAT SHOULD I DO?


问:
Getting MaxListenersExceededWarning NodeJS - Need help troubleshooting
I'm still new to NodeJS and am getting a MaxListenersExceededWarning: Possible EventEmitter memory leak detected message when I call the following function:

```<code>function zipUpFile() {
  const folderPath = "./dist";
  const zip = zlib.createGzip();
  const zipWriteStream = fs.createWriteStream("signature-templates.zip");

  fs.readdir(folderPath, (error, files) => {
    if (error) {
      console.error(error);
      return;
    }

    const htmlFiles = files.filter((file) => file.endsWith(".html"));

    // loop through the HTML files and pipe each one to the zip file
    htmlFiles.forEach((htmlFile) => {
      fs.createReadStream(`${folderPath}/${htmlFile}`)
        .pipe(zip)
        .pipe(zipWriteStream);
    });
  });
}
</code>```

I'm trying to understand how event emitters work but am still having trouble finding the cause. Any help is greatly appreciated!

Body:
I'm still new to NodeJS and am getting a MaxListenersExceededWarning: Possible EventEmitter memory leak detected message when I call the following function:

function zipUpFile() {
  const folderPath = "./dist";
  const zip = zlib.createGzip();
  const zipWriteStream = fs.createWriteStream("signature-templates.zip");

  fs.readdir(folderPath, (error, files) => {
    if (error) {
      console.error(error);
      return;
    }

    const htmlFiles = files.filter((file) => file.endsWith(".html"));

    // loop through the HTML files and pipe each one to the zip file
    htmlFiles.forEach((htmlFile) => {
      fs.createReadStream(`${folderPath}/${htmlFile}`)
        .pipe(zip)
        .pipe(zipWriteStream);
    });
  });
}

I'm trying to understand how event emitters work but am still having trouble finding the cause. Any help is greatly appreciated!


问:
How to avoid caching in freeswitch mod_python3?
developing python applications for freeswitch I'm currently struggling with the python cache feature. In my dailplan I'm calling a python script using mod_python3. That script imports further modules which I want to modify and test with the next call. Currently my only option is to restart freeswitch what gives me a moment to take the next coffee break.
When I've got it right the problem is that mod_python starts the python application for the entire running time of the freeswitch application. So once the modules for an application are loaded with the first call they stays active.

Do you have any advice or good solution how I can deal with the cache as a developer.

One solution would be to reload this particular python mod on fs_cli, but it seems to be unloadable for robustness reason when in production use:

```<code>freeswitch@freeswitch> reload mod_python3
+OK Reloading XML
-ERR unloading module [Module is not unloadable]
-ERR loading module [Module already loaded]
</code>```

The other option I've tried is to reload the modules using the importlib and the reload function in my start script at the beginning. But this does not help and I have still to restart freeswitch.

```<code>import demoPy.module as module.  #demoPy is the project containing a module named module :)

import importlib
importlib.reload(module)
</code>```

Last option I've tried is to clean up the cache files from the local storage by using pyclean in my project folder. That cleaned up all the cache files from the storage but takes no effect on the already loaded modules in mod_python.

Body:
developing python applications for freeswitch I'm currently struggling with the python cache feature. In my dailplan I'm calling a python script using mod_python3. That script imports further modules which I want to modify and test with the next call. Currently my only option is to restart freeswitch what gives me a moment to take the next coffee break.
When I've got it right the problem is that mod_python starts the python application for the entire running time of the freeswitch application. So once the modules for an application are loaded with the first call they stays active.

Do you have any advice or good solution how I can deal with the cache as a developer.

One solution would be to reload this particular python mod on fs_cli, but it seems to be unloadable for robustness reason when in production use:

freeswitch@freeswitch> reload mod_python3
+OK Reloading XML
-ERR unloading module [Module is not unloadable]
-ERR loading module [Module already loaded]

The other option I've tried is to reload the modules using the importlib and the reload function in my start script at the beginning. But this does not help and I have still to restart freeswitch.

import demoPy.module as module.  #demoPy is the project containing a module named module :)

import importlib
importlib.reload(module)

Last option I've tried is to clean up the cache files from the local storage by using pyclean in my project folder. That cleaned up all the cache files from the storage but takes no effect on the already loaded modules in mod_python.