fix attribute/reference encoding

This commit is contained in:
REAndroid 2023-01-03 15:59:15 -05:00
parent fe3fd1b6c0
commit 1b9ed9c291

View File

@ -106,7 +106,11 @@ public class XMLFileEncoder {
String valueText=attribute.getValue(); String valueText=attribute.getValue();
if(ValueDecoder.isReference(valueText)){ if(ValueDecoder.isReference(valueText)){
if(valueText.startsWith("?")){
xmlAttribute.setValueType(ValueType.ATTRIBUTE);
}else {
xmlAttribute.setValueType(ValueType.REFERENCE); xmlAttribute.setValueType(ValueType.REFERENCE);
}
xmlAttribute.setRawValue(materials.resolveReference(valueText)); xmlAttribute.setRawValue(materials.resolveReference(valueText));
continue; continue;
} }