You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This is a simple XML parser that can load XML files very quickly. The new FFastXml class has a single static method ParseXmlFile() for loading XML files. The parser is designed to load files efficiently, but may not support all XML features or be resilient to malformed data. Unlike the FXmlFile class, FFastXml does not generate an XML node tree. Instead, you must supply a callback class using IFastXmlCallback and respond to elements and attributes as they are parsed. Call the ParseXmlFile() function and pass in either the full path to the XML file to parse (XmlFilePath parameter), or load the file yourself and pass the contents using the XmlFileContents parameter. One of either XmlFilePath or XmlFileContents must be valid for ParseXmlFile() to work. To process the XML data, create your own class that implements the IFastXmlCallback interface. This class will be responsible for processing the XML elements as they are loaded by FFastXml::ParseXmlFile(). You'll receive a ProcessElement() call for every XML element that is encountered, along with a corresponding ProcessClose() when that element's scope has ended. ProcessAttribute() will be called for any attributes found within the scope of the current element. Remember to add a module dependency on "XmlParser" in order to be able to call FFastXml::ParserXmlFile(). This XML parser based on John W. Ratcliff's "FastXml". (FastXml.tps included, with more info.) [CL 2535797 by Mike Fricker in Main branch]
60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
<?xml version="1.0" encoding="utf-8"?>
|
|
<TpsData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<Name>FastXml by John W. Ratcliff</Name>
|
|
<Location>//depot/UE4/Engine/Source/Runtime/XmlParser</Location>
|
|
<Date>2015-05-01T15:17:27.1200533-04:00</Date>
|
|
<Function>Loads XML files more quickly than other XML loading libraries (but with minimal features and low tolerance for malformed files</Function>
|
|
<Justification>To load XML data into the engine as fast as possible</Justification>
|
|
<Platforms>
|
|
<Platform>PC</Platform>
|
|
<Platform>Max</Platform>
|
|
<Platform>Xbox One</Platform>
|
|
<Platform>Playstation 4</Platform>
|
|
<Platform>Android</Platform>
|
|
<Platform>iOS</Platform>
|
|
<Platform>HTML 5</Platform>
|
|
<Platform>Windows 8</Platform>
|
|
<Platform>Linux</Platform>
|
|
</Platforms>
|
|
<Products>
|
|
<Product>UE4</Product>
|
|
</Products>
|
|
<TpsType>Source Code</TpsType>
|
|
<Eula>MIT License (https://code.google.com/p/fastxml/)</Eula>
|
|
<RedistributeTo>
|
|
<EndUserGroup>Licensees</EndUserGroup>
|
|
<EndUserGroup>Git</EndUserGroup>
|
|
<EndUserGroup>P4</EndUserGroup>
|
|
</RedistributeTo>
|
|
<Redistribute>false</Redistribute>
|
|
<IsSourceAvailable>true</IsSourceAvailable>
|
|
<NoticeType>Copyright Notice</NoticeType>
|
|
<Notification>Copyright (c) 2010 by John W. Ratcliff mailto:jratcliffscarab@gmail.com
|
|
|
|
Skype ID: jratcliff63367
|
|
Yahoo: jratcliff63367
|
|
AOL: jratcliff1961
|
|
email: jratcliffscarab@gmail.com
|
|
|
|
|
|
The MIT license:
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is furnished
|
|
to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
</Notification>
|
|
<LicenseFolder>FastXml</LicenseFolder>
|
|
</TpsData> |