3 Replies Latest reply on Sep 12, 2011 3:03 AM by jaikiran

    Testing line breaks in xml

    jaikiran
      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      
      
        <!-- Model Version -->
        <modelVersion>4.0.0</modelVersion>
      
        <!-- Artifact Configuration -->
        <groupId>blah</groupId>
        <artifactId>blah</artifactId>
        <version>1.0.0-SNAPSHOT</version>
      
      
      </project>
        • 1. Re: Testing line breaks in xml
          jaikiran

          That worked. Now let's try the same with code:xml wiki markup syntax:

           

           

           

          {code:xml}
          <?xml version="1.0" encoding="UTF-8"?>
          <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">


            <!-- Model Version -->
            <modelVersion>4.0.0</modelVersion>

            <!-- Artifact Configuration -->
            <groupId>blah</groupId>
            <artifactId>blah</artifactId>
            <version>1.0.0-SNAPSHOT</version>


          </project>
          {code}

          • 2. Re: Testing line breaks in xml
            jaikiran

            Now that proves that the wiki markup code:xml eats up the newline characters

            (I know a workaround, but  that's irrelevant for this post)

            • 3. Re: Testing line breaks in xml
              jaikiran

              Testing copy/paste of xml content from a file to see if it (unnecessarily) auto creates a table.

               

               

               

                  <subsystem xmlns="urn:jboss:domain:logging:1.0">
                      <console-handler name="CONSOLE" autoflush="true">
                          <level name="INFO"/>
                          <formatter>
                              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                          </formatter>
                      </console-handler>
                      <periodic-rotating-file-handler name="FILE" autoflush="true">
                          <level name="INFO"/>
                          <formatter>
                              <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                          </formatter>
                          <file relative-to="jboss.server.log.dir" path="server.log"/>
                          <suffix value=".yyyy-MM-dd"/>
                      </periodic-rotating-file-handler>
                      <logger category="com.arjuna">
                          <level name="WARN"/>
                      </logger>
                      <logger category="org.apache.tomcat.util.modeler">
                          <level name="WARN"/>
                      </logger>
                      <logger category="sun.rmi">
                          <level name="WARN"/>
                      </logger>
                      <root-logger>
                          <level name="INFO"/>
                          <handlers>
                              <handler name="CONSOLE"/>
                              <handler name="FILE"/>
                          </handlers>
                      </root-logger>
                  </subsystem>