Update PraserState.java
Issue #26: XMLParser doesn't read Binary content from XML. Binary content is discarded during xml parsing, because attribute check of ID is missing in BinaryResourceState.attributeValue(...)
This commit is contained in:
parent
13dd6d5e11
commit
b380a8f797
|
@ -741,7 +741,13 @@ class ParserState<T> {
|
|||
|
||||
@Override
|
||||
public void attributeValue(String theName, String theValue) throws DataFormatException {
|
||||
if ("contentType".equals(theName)) {
|
||||
if ("id".equals(theName)) {
|
||||
if (myInstance instanceof IIdentifiableElement) {
|
||||
((IIdentifiableElement) myInstance).setElementSpecificId((theValue));
|
||||
} else if (myInstance instanceof IResource) {
|
||||
((IResource) myInstance).setId(new IdDt(theValue));
|
||||
}
|
||||
} else if ("contentType".equals(theName)) {
|
||||
myInstance.setContentType(theValue);
|
||||
} else if (myJsonMode && "value".equals(theName)) {
|
||||
string(theValue);
|
||||
|
|
Loading…
Reference in New Issue