예제 #1
0
 @Override
 public String getPayloadAttributeValue(QName attName) {
   if (lazySource.isPayloadStreamReader()) {
     XMLStreamReader reader = lazySource.readPayload();
     if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) {
       return reader.getAttributeValue(attName.getNamespaceURI(), attName.getLocalPart());
     }
   }
   return null;
 }
예제 #2
0
 @Override
 public String getPayloadAttributeValue(String attName) {
   if (lazySource.isPayloadStreamReader()) {
     XMLStreamReader reader = lazySource.readPayload();
     if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) {
       return reader.getAttributeValue(null, attName);
     }
   }
   return null;
 }