S
S
solaris772014-02-25 14:00:45
XML
solaris77, 2014-02-25 14:00:45

XML: how to force browser to wrap lines as in element text?

Tell me, pliz, how to make it so that when opening an XML file in the browser, line breaks that are in the text of the element are displayed, and the text is not solid.
That is, so that the element is displayed approximately the same as below.
A much more time-consuming option is to make an html page, load the XML with JavaScript and do the output manually.
At least direct where to dig. The second day I sit, but I do not move. :(

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<forum_hist>
    <message>
        <date>date</date>
        <site>site</site>
        <forum>forum</forum>
        <from>from</from>
        <subject>subject</subject>
        <text>text</text>
    </message>
    <message>
        <date>38372.1048611111</date>
        <site>opennet.ru</site>
        <forum>Форум</forum>
        <from>vasya</from>
        <subject>ipfw rules. чего не хватает. </subject>
        <text>Прочёл тучу всяких док (man, handbook, инет) и получили вот такие правила.
Наверняка, что-нибудь упустил, а что-нибудь сделал не так. Ткните. ;-)
1. И ещё не очень понятно с frag - одни убивают такие пакеты, другие, наоборот, разрешают? А как лучше?
2. Некоторые добавляют в правила established и setup. Не очень понятно, в какие правила стоит их добавить.

локалка: iif - inside if, inet - inside net
интернет: oif - outside if, onet - outside net

    # Check dynamic rules
${fwcmd} add check-state

    # Stop spoofing
${fwcmd} add deny ip from ${inet} to any in via ${oif}
${fwcmd} add deny ip from ${onet} to any in via ${iif}
</text>
    </message>
</forum_hist>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question