8,013
edits
m (restoring the Divhide around the "Working with XML files" section; moved up XML database to make it quicker to find and click on; wording) |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 13: | Line 13: | ||
[[Image:Visual Studio collapsed code.png|thumb|right|Code folding in Visual Studio 2019.]] | [[Image:Visual Studio collapsed code.png|thumb|right|Code folding in Visual Studio 2019.]] | ||
[[Image:Xcode collapsed code.png|thumb|right|Xcode 12. If you don't see the code folding ribbon, see Preferences… > Text Editing > Display > Code folding ribbon.]] | [[Image:Xcode collapsed code.png|thumb|right|Xcode 12. If you don't see the code folding ribbon, see Preferences… > Text Editing > Display > Code folding ribbon.]] | ||
[[wikipedia:XML|E'''X'''tensible '''M'''arkup '''L'''anguage]] is a plain-text file format designed to be both human-readable and machine-readable. It stores data in-between tags, e.g. <tt><nowiki>< | [[wikipedia:XML|E'''X'''tensible '''M'''arkup '''L'''anguage]] is a plain-text file format designed to be both human-readable and machine-readable. It stores data in-between tags, e.g. <tt><nowiki><TagName>Some data here</TagName></nowiki></tt>, and these tags can be arranged in a hierarchy to keep things organized. The only technical difference between a normal text file and an XML file is that the file name ends in ".xml" instead of ".txt" and that it typically begins with the string <tt><?xml version="1.0" encoding="UTF-8" ?></tt>. You can thus edit an XML file in any text editor, such as Notepad in Windows and TextEdit on the Mac. | ||
* '''See the tutorials''' below to learn how to extract game data as XML, modify it, and get it back into Oni. | * '''[[#Starter_tutorials|See the tutorials]]''' below to learn how to extract game data as XML, modify it, and get it back into Oni. | ||
* '''Capitalization matters''': OniSplit is case-sensitive when it processes the XML. | * '''Capitalization matters''': OniSplit is case-sensitive when it processes the XML. | ||
* '''Text indentation''': Most tags have some indentation (tabs). It is not required by OniSplit but it helps one get an understanding of the hierarchy. Two examples: | * '''Text indentation''': Most tags have some indentation (tabs). It is not required by OniSplit but it helps one get an understanding of the hierarchy. Two examples: |
edits