Internal+External Data In One Digital Signature

Is it possible to generate a single digital signature for both external data (a file) and internal data (XML metadata relevant to the file)? From the Java Digital Signature API documentation, it would appear that "detached" can handle external data OR internal "sibling" data but not both. And it would appear that both "enveloping" and "enveloped" are strictly internal. If the answer is "yes", a link to sample code would be greatly appreciated.

[454 byte] By [Frank_Natolia] at [2007-11-27 9:46:59]
# 1
Yes, you just have to create more than one Reference when generating the signature.One of the references should point to the external file (probably using a file URI) and theother reference URI should point to the internal data.
smullana at 2007-7-12 23:58:22 > top of Java-index,Security,Cryptography...