|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLParser
Describe an xml parser, which is able to perform save and load operations. Example of use:
import static com.b3dgs.lionengine.File.FILE; XMLParser parser = FILE.createXMLParser(); XMLNode root = FILE.createXMLNode("game"); root.writeInteger("state", 1); XMLNode children = FILE.createXMLNode("sub"); children.writeBoolean("active", true); root.add(children); parser.save(root, "output.xml");
Method Summary | |
---|---|
XMLNode |
load(java.lang.String file)
Load an xml file. |
void |
save(XMLNode root,
java.lang.String file)
Save an xml tree to a file. |
Method Detail |
---|
XMLNode load(java.lang.String file)
file
- xml file name.
void save(XMLNode root, java.lang.String file)
root
- xml root node.file
- output file name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |