How to print in xml form an array that does not contain any HTML tags, just text?

42
January 09, 2019, at 03:40 AM

``I have an array that has the name of the rooms in a building categorized by floors. And I need to print them so they look like the pictures below.

I really do not know what to try in order to solve this since I did not encounter such a problem before.

static void printInXml(Object[] objs, String indent) {
        // TODO
        for (Object obj : objs) {
        }
    }

This is the input

This is the output

READ ALSO
The requested route has not been mapped in Spark?

The requested route has not been mapped in Spark?

I have simple restfull api in Java SparkUnit test which is getting single user passes sucesfully as expected instead of failure case with non existing user

46
Have a Queue subscribed to multiple Queues, programmaticaly

Have a Queue subscribed to multiple Queues, programmaticaly

I have two Virtual Topics: T1, T2I have a consumer named FOO

65
Java get keyboard key typed in a function

Java get keyboard key typed in a function

So I am making a game in java, and I am currently working with keyboard inputI have a keylistener class setup called KeyboardManager and in it a static function that detects if a key is being held down

24
PHP Date Format returning incorrect suffix ('S')

PHP Date Format returning incorrect suffix ('S')

I have a Unix Timestamps such as 1423389830 and 1511367992I'm using a simple date() function: date( 'M nS, Y', $timestamp ); and it seems like it's returning the wrong date, with the appropriate suffix - which output some rather silly results

50