Questions tagged as 'xml'

1
answer

Format xml in php to write to MySQL?

I need to format a xml in php to write to MySQL , but I'm having difficulty understanding and even doing it. Today I have this xml: <?xml version='1.0' encoding='UTF-8'?> <api> <response vers...
asked by 06.04.2017 / 16:23
1
answer

Change 2 attributes of an XML with XSLT

I have the following XML: <?xml version="1.0" encoding="WINDOWS-1252"?> -<NewDataSet> -<xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="" id="NewDataSet"> -&l...
asked by 11.04.2017 / 18:06
0
answers

How to make two xml file calls in the same document

I would like to know if you can generate two XML files in the same document. This is the code I have so far: downloadUrl("connect_xml.php", function (data) { var xml = data.responseXML; var markers = xml.documentElement.getElementsB...
asked by 11.04.2017 / 16:44
0
answers

(JAXB) Retrieve XML file in the input fields of a JSwing form with Unmarshalling

I am new and I started to learn these days XML because of an implementation that should have in my application, I did some tests with marshall and unmarshall in the main class first (see at the end) to understand better, I am making a form that...
asked by 11.04.2017 / 09:26
1
answer

ID Comparison in XML Elements

I'm doing a check between 2 ids of 2 different elements in XML , but when I make the comparison the result is always false even though gettype is the same result and the number is also the same result. To perform th...
asked by 02.04.2017 / 22:45
1
answer

Class 'SimpleXMLElement' not found

As debug of cakephp in Snippet below: p.error { font-family: Monaco, Consolas, Courier, monospace; font-size: 140%; padding: 0.8em; margin: 1em 0; } .success, .message, .cake-error, p.error, .error-messa...
asked by 24.03.2017 / 13:36
1
answer

This operation would create an incorrectly structured document. XDocument

I'm trying to create an XML, but I can not. I want it to have this format: <item> <linktext></linktext> <etc..></etc...> </item> I can add an item, but when I go through the loop again, it g...
asked by 21.03.2017 / 14:21
1
answer

Custom purchase button on pagseguro

I want to use a custom button to purchase, without being what the pagseguro offers. Does anyone know how to generate the redirect code obtained through the PagSeguro Payments API? Example of code taken from the pagseguro site: PagSeguroLig...
asked by 09.03.2017 / 14:52
1
answer

Change an attribute of an XML element

I have the following XML: <?xml version="1.0" encoding="WINDOWS-1252"?> -<NewDataSet> -<xs:schema xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="" id="NewDataSe...
asked by 09.03.2017 / 16:26
1
answer

Error reading XML with JAXB: all null items after Unmarshal

I have a simple stock XML file with the following format: <?xml version="1.0" encoding="UTF-8"?> <estoque> <item Nome="Impressora XL2N" Peso="13 kg" Armazem="8" Quantidade="12" Preco="R$ 8505,00" /> <item Nome="Sca...
asked by 10.03.2017 / 03:58