Questions tagged as 'xml'

1
answer

Invalid "required" attribute

I took a project and it is showing compilation error because it is not recognizing the "required" attribute in the following section: @XmlElementRef(name = "Nome", namespace = "http://schemas.datacontract.org/teste/teste/teste", type = JAXBEle...
asked by 21.02.2017 / 15:00
0
answers

Rename XML nodes and subnodes from an array

I have an array, which I want to transform into an xml document, I already have it created but I can not change the names of some nodes and sub-nodes, here's an example of an array to be transformed, the code that does the transformation and an...
asked by 16.02.2017 / 15:08
1
answer

How to get the first 5 records of xml?

<?php $xml = simplexml_load_file('http://g1.globo.com/dynamo/economia/rss2.xml') or die("erro carregar arquivo"); foreach ($xml->channel->item as $noticia) { $n...
asked by 22.02.2017 / 20:43
1
answer

How to make selector next and prev on XML elements

I'm having a hard time eluting XML elements on flow control prev / next , what I have is: Code function mostrar(i) { var txt, parser, xmlDoc; txt = "<carta>" + "<para>Marcos</para>" + "<de>Luciana&...
asked by 03.02.2017 / 02:51
0
answers

Consuming XML data via Ajax

I need to consume the data of an XML via AJAX but Firefox always returns an "incorrect formatting" error and does not print anything on the screen. The same AJAX runs seamlessly in Chrome, but other browsers do not load anything. $.ajax({...
asked by 10.01.2017 / 19:19
1
answer

Regular expression in XML string

Hello, I'm using a PHP library to generate a few words with some parameters. The library is PHPWord, when I load a file (DOCX) it opens the document.xml file inside the compressed DOCX file.    Example: <?php $phpWord = new PHPWord('...
asked by 04.02.2017 / 20:35
2
answers

XML returning empty in PHP

Good afternoon, I am running queries on a central bank webservice and am encountering some difficulties. The return of the query is in XML and I must send the authentication to receive this data, so far so good. The problem is in return if I...
asked by 27.12.2016 / 17:28
1
answer

Incremental number in PHP [closed]

I have a system that issues an XML. It was done in PHP. In XML it has a tag which is a random number, but has to be incremental. That is, in tag it has the number 1000. The next tag must have the number 1001. This is easy to do in PHP...
asked by 06.01.2017 / 21:26
0
answers

Problem in managerengine xml

Hello, <operation name="GET_REQUESTS"> <result> <status>Failed</status> <message>POST_ONLY_URL</message> <error_code>4001</error_code> </result> </operation> link Does anyone...
asked by 08.12.2016 / 16:57
0
answers

XML Delphi - Mismatch in datapacket

I'm evaluating a system made in Delphi 6, which basically uses a TClientDataSet to open xml files. This system has been running for a long time and is Ok, only an xml file is indicating the "Mismatch in datapacket" error when I try to open it...
asked by 29.11.2016 / 13:17