Package com.jme3.export.xml
Class XMLUtils
java.lang.Object
com.jme3.export.xml.XMLUtils
Utilities for reading and writing XML files.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetAttribute(int version, Element element, String name) Fetches the named attribute from the element.static booleanhasAttribute(int version, Element element, String name) Tests if the element contains the named attribute.static voidsetAttribute(Element element, String name, String attribute) Sets the attribute in the element under the name.
- 
Field Details- 
PREFIXPrefix for every jme xml attribute for format versions 3 and up.This prefix should be appended at the beginning of every xml attribute name. For format versions 3 and up, every name to access an attribute must append this prefix first. - See Also:
 
 
- 
- 
Method Details- 
setAttributeSets the attribute in the element under the name.Automatically appends PREFIXto the beginning of the name before assigning the attribute to the element.- Parameters:
- element- element to set the attribute in
- name- name of the attribute (without prefix)
- attribute- attribute to save
 
- 
getAttributeFetches the named attribute from the element.Automatically appends PREFIXto the beginning of the name before looking up the attribute for format versions 3 and up.- Parameters:
- version- format version of the xml
- element- XML element to get the attribute from
- name- name of the attribute (without prefix)
- Returns:
- named attribute
 
- 
hasAttributeTests if the element contains the named attribute.Automatically appends PREFIXto the beginning of the name before looking up the attribute for format versions 3 and up.- Parameters:
- version- format version of the xml
- element- element to test
- name- name of the attribute (without prefix)
- Returns:
- true if the element has the named attribute
 
 
-