Questions tagged as 'xml'

1
answer

How do I configure Apache Log4J to write to the Bank via Hibernate?

I'm starting to use Apache's Log4J and would like to know how to configure it by the XML file to write the logs to the bank using hibernate?     
asked by 26.08.2015 / 20:05
2
answers

PHP Ordering

I have a PHP code that pulls an XML and plays on the screen however I would like it to run in random order and not the order that is in XML. Is this possible? Code that I'm using. PHP $xml = simplexml_load_file('produtos.xml'); foreac...
asked by 02.10.2015 / 16:06
1
answer

How to determine which HTML file should be displayed as input in Jersey?

I'm trying to find a way to provide a correct entry page in Jersey. A login page when there is no user logged in, otherwise I should display another home page that will call RESTful services developed with Jersey and that will change the home pa...
asked by 14.02.2014 / 20:14
1
answer

What is the best way to read an XML in PHP and insert it in the Database?

I am reading XML files of about 50M of information (about a hundred thousand records, may be more), and I have two classes read XML read from a DOM and another SAX. I'm having a problem in terms of runtimes, take me longer than 10 minutes, ma...
asked by 17.06.2014 / 15:34
0
answers

Load XML file stream into XRRichText

In my application, I get an array from bytes from an XML file. With it I create a stream , but when I try to load it and insert it into XRRichText , nothing happens. However, if I write the stream into a file on the user's compute...
asked by 04.06.2018 / 16:46
7
answers

Capture year that is outside the regex

I'm working with a text file using sublime I want to replace some strings where: I have several strings like this: EMISSAO="2016-04-18 00:00:00" I need a regex that captures where the year is invalid, eg: In some registers it...
asked by 02.03.2017 / 18:21
1
answer

REST - Http x Json

I did some research and I have some questions about REST: Http is Rest? Is JSON and XML just the return format of a Rest operation? REST x Web Services: are the same things? SOAP would be the opposite of HTTP? Thank you for helping...
asked by 28.03.2016 / 14:34
2
answers

Return xml to asp.net mvc browser view

I have the following situation, I need to make an XML file available to be viewed in browser , without the user having to download the file, I do this by saving the file in a directory and then I send the directory of this file and the browse...
asked by 10.04.2017 / 22:25
1
answer

What is the prefix attribute for the html element?

Why is the prefix attribute used in html elements? And in HTML5, can I also use it? Thank you! <html prefix="og: http://ogp.me/ns#">     
asked by 23.03.2016 / 01:36
2
answers

How to center a TextView?

How to center the horizontal text in TextView , ie center in the top and bottom line. <TextView android:id="@+id/txt" android:layout_width="match_parent" android:layout_height="match_parent" and...
asked by 31.01.2016 / 12:57