Most voted "xml" questions
Extensible Markup Language (XML) or extensible markup language is a structured document format that defines human and machine-readable encoding rules. It is defined by the XML 1.0 Specification produced by the W3C (World Wide Web Consortium).
Learn more…1,028 questions
Sort by count of
-
1
votes1
answer3097
viewsHow to create a Parser in Python?
For a project with file handling, I wanted to convert from "CFG" to "XML", and I believe that in Python I have no support for either of these two types. There was a colleague who made the…
-
1
votes1
answer362
viewsResize image in a square while keeping the original PHP image aspect ratio
What happens is this: I’m pulling some product photos from an XML link, and the images come in different sizes. Currently I use a code that takes the image and resizes to 200x200, but images with…
-
1
votes1
answer199
viewsSelective reading of an XML
I’m able to read an XML but there’s more stuff I don’t need. The problem is that my XML source file has repeated tags in such a hierarchy (see the PLAN tag that repeats): <explain>…
-
1
votes0
answers53
viewsError in order details in Brazilian
Hello. I have an error in Maxgento that I could not resolve in any way. The order details page is being displayed this way: I tried several solutions, such as replacing the core of Malta, changing…
-
1
votes1
answer607
viewsHow to create a Listview in a Navigation Drawer?
1 My goal is this: instead of these items that come by default in Navigation Drawer I would like to put a series of Lists that will change as I create, delete and edit these lists. I tried to create…
-
1
votes2
answers1974
viewsRead specific XML tags?
I need to do the reading of tags specifics of that file XML: <?xml version="1.0" encoding="UTF-8"?> <EnviarLoteRpsEnvio xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"…
-
1
votes1
answer478
viewsRead Tags with the same name in XML
I am with the following example XML file: <?xml version="1.0" encoding="UTF-8"?> <EnviarLoteRpsEnvio xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"…
-
1
votes1
answer393
viewsEncoding treatment in XML
I’m trying to make a request for a URL that contains a return on XML with the function simplexml_load_file('url') and all I get is falsewhen I debug using var_dump. $xml =…
-
1
votes0
answers834
viewsLogin Webservice PHP + SOAP + CURL + XML + certificate
Good afternoon, I have the following code trying to access the ISS webservice of the city of Curitiba: <?php $xml_data = '<?xml version="1.0" encoding="utf-8"?> <soap:Envelope…
-
1
votes0
answers198
viewsAndroid Retrofit 2 Simple XML Converter Response
I am using Retrofit 2.2.0 and Retrofit Simplexml Converter 2.2.0. I added the simplexmlconverter at the time of the retrofit with the addConverterFactory method. The problem is that when I get the…
-
1
votes1
answer632
viewsError in android xml page
I am very beginner on android and strictly following the example provided by my teacher and using a College PC I copied and pasted and had no problems, using my notebook I’m with the following…
-
1
votes1
answer365
viewsConsume php Web Api
I need to consume the following XML: <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"> <NewDataSet> <CarregaMunicipioFranqueados>…
-
1
votes0
answers77
viewsCompare childnode with C# and XML variable (Xpath)
I have an xml file with several structures. I have a structure called Product who has a field ProductCode and I have a structure called SalesInvoice, inside of it I have a field Invoice, within the…
-
1
votes0
answers34
viewsHow to read icon information from an XML
I’m trying to extract some information from a xml and I’m not getting, what I can get is the date that’s on the node weather, but icon and text I can’t seem to get them in sequence. The previous…
-
1
votes1
answer274
viewsJava - Add information in XML file with Jdom
In this code an xml file is created and an element is inserted: comentarios = new Element("comentarios"); myDocument = new Document(comentarios); comentario = new Element("comentario");…
-
1
votes0
answers294
viewsNF-e in Delphi accessing WSDL
NF-e in Delphi accessing WSDL. I am not experienced in accessing WSDL servers, nor Nfe. I have available some encapsulated methods informed to be used in Delphi. The method I’m trying to access is…
-
1
votes1
answer550
viewsDelphi XML signing "Unregistered class"
I’m trying to sign a XML with the Delphi, to TAG Signature. For this I am using ready-made routines that all of these have a common point. **xmlDoc := CoDOMDocument50.Create;** While running Windows…
-
1
votes1
answer201
viewsAnnotation or method to ignore field (Xstream 1.3.1)
I have a Circularreferenceexception problem when I try to do this: XStream xstream = new XStream(new JettisonMappedXmlDriver()); xstream.setMode(XStream.NO_REFERENCES); xstream.alias("resultList",…
-
1
votes0
answers233
viewssimplexml_load_file does not work with large XML file - Request Time Out
I’m using the simplexml_load_file to parse in an XML document, however, the file has more than 100 Mb and instead of loading only part of the nodes, what is happening is that the whole document is…
-
1
votes1
answer371
viewsHow to encrypt data in App.config
I would like to encrypt the Keys (Apikey and Secret) below in App.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0"…
-
1
votes1
answer64
viewsSwitching screens with the same XML file
I am developing an educational application (with various exercises about java and explanations) for Android, but I have a question: the application becomes very heavy if I create a Activity (with an…
-
1
votes1
answer219
viewsremove attribute from a node in Nexxmldocument in DELPHI
I created an XML Document when creating the 2nd. Node 'Header' comes with the attribute from the previous Node. The Node is created as <Header xmlns=""> how can I remove xmlns="" from Node I…
-
1
votes1
answer318
views -
1
votes0
answers76
viewssimplexml_load_file does not return any record
I have the following routine for reading XML file: $arquivo_geral = "xml_categ_1.xml"; if (file_exists($arquivo_geral)) { $xml = simplexml_load_file($arquivo_geral); foreach($xml->categoria as…
-
1
votes1
answer259
viewsDeclare XML namespaces in classes imported by WSDL (Jax-Ws)
I’m developing a Webservice application using Jax-Ws. In this model after importing the WSDL the IDE generates the classes that will be used in the information exchanges. But when creating the…
-
1
votes1
answer160
viewsBuild XML File Tip Using xml Serializer - More Efficient Way
I am mounting an XML file whose structure should be have nested tags as the image below: The image above is the output for the code below: public class Feeder { public string Name { get; set; }…
-
1
votes1
answer771
viewsXML Serialization, how to do
I need to generate XML in the TISS standard of the ANS. I got the schemas available on website, and by xsd2Code generated tissV3_03_02 classes. I installed an object of the type ctm_guiaLote and now…
-
1
votes3
answers2363
viewsEnable 'Access-Control-Allow-Origin' in jQuery [xml]
I don’t have access to .htaccess server and need to enable Cors on jQuery The code to access Webservice is: $(document).ready(function(){ jQuery.support.cors = true; $.ajax({ url:…
-
1
votes1
answer1165
viewsxml error eSocial: Invalid event signature. Only one 'Keyinfo/X509data' Element is required/allowed
I have the error: Invalid event signature. Only one 'Keyinfo/X509data' Element is required/allowed Before that I received the error that should change the signature method Transform to:…
-
1
votes2
answers1176
viewsGenerate a JSON from a converted XML with Javascript
I was able to convert an xml to json using a solution that I found on the Internet and served me perfectly, it stores all the json in a string and shows on the screen, but I don’t know how to play…
-
1
votes1
answer87
viewsHow to write data from an excel to an xml file
I would like to be developing a program that has to read excel files and write to an xml file but I don’t know how to write the data to the xml file. I’m reading the excel file like this : var…
-
1
votes1
answer133
viewsHow to return a table from xml in sql server
My xml is similar to this: <Operacao Id="1"> <Contatos> <Contato Id="2013"> <Emails> <Email Id="40"/> <Email Id="41"/> </Emails> </Contato>…
-
1
votes1
answer44
viewsBrowse and replace based on the <name> property using php
I’m a beginner in php and I’m having trouble realizing the following logic: I have this code in xml (part of the code) and need to change the property Icon based on occurrences in name. For example…
-
1
votes0
answers694
viewsHow to show and hide bookmarks in Google Maps with Mysql?
I made a site with Google Maps that used each position of an array for each marker... var map; var markers = []; function initMap() { var uluru = {lat: -23.9651447, lng: -46.3838347}; map = new…
-
1
votes1
answer68
viewsRetrieve data from an XML file using Xpath and C#
I have the following document XML, and I intend to do a search/filter by name Givenname using Xpath. How to do? XML <bloodonors> <donor> <Number>1</Number>…
-
1
votes1
answer660
viewsWeb Service consumption in SOAP standard with XML sending as parameter in PHP
I am developing an application of integration between the city of my city and a system for a company, to optimize the generation of NFS-e. It consists of using the city’s Web Service to send, using…
-
1
votes0
answers17
viewsDistinct constraint generation for element and its attribute - XSD
Good morning! I have the following element in an XML: <estcivil unestavel="S">C</estcivil> It turns out that my attribute can only receive "S" or "N" values, but the element has other…
-
1
votes0
answers263
viewsHow to change the prefix and name of an attribute in an XML tag in an NFS-e?
Hello, I’m beginner in NFS-e development and I’m not able to change the prefix and attribute name below, I put in the code so that it was xsi, but regardless of what I put it generates the xml with…
-
1
votes0
answers44
viewsHow to recognize a phone number using xml grammar?
I’m using nuance to recognize voice in calls, I need to pick up the person’s phone to validate the registration, how to do? For example, if the person says 95 (ninety-five) - I’m getting 90 - 5 and…
-
1
votes1
answer1662
viewsEsocial - Error signing XML
Good afternoon. I am trying to sign the XML, but I have the error below: Error generating System.Security.Cryptography.Cryptographicexception file: Poorly formed Reference Element. Searching, I saw…
-
1
votes1
answer428
viewsHow to check if an XML node is null?
I have a WS which has a method in which a list of Nodes with some data is inserted. I receive this data as Xmldocument, ride the knot Parameters reading the content inside it, after that I take the…
-
1
votes2
answers999
viewsProblem with eSocial digital signature - Invalid signature
I’m having trouble validating the eSocial xml signature. We have already made several attempts, but in all the return of the event processing is the same: "Invalid event subscription. Suggested…
-
1
votes1
answer1038
viewsXML printing Object(Simplexmlelement)#1 (0) { }
How to transform a xml in a array or object? I make a request that returns to me the following xml: xmlteste.xml <?xml version="1.0" encoding="utf-8"?> <DataSet…
-
1
votes0
answers185
viewsAndroid app with colorful background on buttons and text
I’ve been playing with an android app, and I don’t know how it started to give problems...it didn’t start at all, as soon as the message appeared saying that the app crashed and if it wanted to…
-
1
votes0
answers122
viewsCollapsingtoolbarlayout equal to Nubank
Hello, I would like to know how to make the design of Collapsingtoolbarlayout the same as Nubank. The one below: The code below is what I tried to do, but it does not work collapse properly.…
-
1
votes1
answer123
viewsChanging the xml by java
I was wondering if there’s a way I could change the layout="@layout/app_bar_main" of <include> by java <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout…
-
1
votes2
answers114
viewsForeach implementation
<?php $busca = $_GET['genero']; $xml_string = file_get_contents("livros.xml"); $xml_object = simplexml_load_string($xml_string); for ($i=0; $i < count($xml_object->livro); $i++) { for…
-
1
votes1
answer46
viewsClass structure for
I have the following XML returned by a service: <?xml version="1.0" encoding="iso-8859-1" ?> <mensagem tipo="0000" version="1.0"> <registro tipo="0000" version="1.0">…
-
1
votes1
answer193
viewsHow to access attributes of a JSON that has been converted with special characters?
I am consuming the API of microsoft translation, they work with the return in XML(Because it is, MICROSOFT returns XML in its API’S), I managed to run everything right, but as I hate working with…
-
1
votes0
answers673
viewsHow to use a Figma layout in Android Studio?
I have a project in Figma with some screens, for example the image below: Figma generates the XML or SVG code of each component, such as the "screen": <!-- layout/*.xml --> <RelativeLayout…