Ticket #57 (new defect)

Opened 6 months ago

Last modified 5 months ago

XML Parser

Reported by: knowknowledge Owned by:
Priority: minor Milestone: 0.4.0
Component: File Version:
Keywords: xml, parser Cc:

Description

The Parser template class that is used by Alliances, Engines, Models, Planets, Weapons and more expected xml descriptions, cannot handle a document depth of more than 3.

The current model gets the root, then creates an object for each node inside the root (subsection), then creates an object attribute for each node inside the subsection (subKey). If the level three attributes are not this key-value style, the Parser does not properly handle it.

Note that the xml Parser is not related to XmlFile? that is used to parse the options.xml file. This is a problem by itself since the relationship is assumed.

Change History

Changed 5 months ago by chris

Let's go ahead and make the parser use XMLFile, e.g. XMLFile is the only class that touches libxml2.

Note: See TracTickets for help on using tickets.