Announcement

Collapse
No announcement yet.

[C4:AC] - Forum problem with XML files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [C4:AC] - Forum problem with XML files

    I tried to copy and paste a section of an XML file for discussion but the forum software interprets the tags as formatting and messes the display up horribly.

    Any suggestions?

  • #2
    You can use the "code" tag I think. Or attaching it.
    I love being beaten by women - Lorizael

    Comment


    • #3
      Testing:

      Code:
      [!-- Sid Meier's Civilization 4 --]
      [!-- Copyright Firaxis Games 2005 --]
      [!-- --]
      [!-- Global Defines Schema --]
      [Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes"]
      	[ElementType name="DefineName" content="textOnly"/]
      	[ElementType name="iDefineIntVal" content="textOnly" dt:type="int"/]
      	[ElementType name="fDefineFloatVal" content="textOnly"/]
      	[ElementType name="DefineTextVal" content="textOnly"/]
      	[ElementType name="Define" content="eltOnly"]
      		[element type="DefineName"/]
      		[element type="iDefineIntVal" minOccurs="0"/]
      		[element type="fDefineFloatVal" minOccurs="0"/]
      		[element type="DefineTextVal" minOccurs="0"/]
      	[/ElementType]
      	[ElementType name="Civ4Defines" content="eltOnly"]
      		[element type="Define" minOccurs="0" maxOccurs="*"/]
      	[/ElementType]
      [/Schema]
      Last edited by Zoid; April 18, 2006, 07:42.
      I love being beaten by women - Lorizael

      Comment


      • #4
        Nope, doesn't work. The only solution seems to be replacing the "<" and ">" tags with another character.
        He who knows others is wise.
        He who knows himself is enlightened.
        -- Lao Tsu

        SMAC(X) Marsscenario

        Comment


        • #5
          So it seems. Thank God for "search and replace" in Wordpad
          I love being beaten by women - Lorizael

          Comment


          • #6
            He who knows others is wise.
            He who knows himself is enlightened.
            -- Lao Tsu

            SMAC(X) Marsscenario

            Comment


            • #7
              heh... there is actually another tag a bit like the 'code' tag.

              It's called the 'xml' tag.

              Unfortunately, I think it either needs to be activated by an admin, or vBulletin doesn't support it.

              In the meantime, there is 1 way to solve the problem:
              Use HTML special characters (remove the spaces to make them work)
              '& lt;' = <
              '& gt;' = >

              Code:
              <test>
                  <blah>
                      XML is fun!
                  </blah>
              &lt/blah>
              Ceeforee v0.1 - The Unofficial Civ 4 Editor -= Something no Civ Modder should ever be without =- Last Updated: 27/03/2009
              "Just because I'm paranoid doesn't mean there's no conspiracy"

              Comment

              Working...
              X