My bad....I didn't explain it very well. I don't have an example, the customer has simply indicated that sometimes they will need to attach a word Doc, sometimes an XML and sometimes a PDF. It has to be embedded within the same document as all the other filing information (not a separate document). The only use of Base 64 is to convert the attachment to a string so it can be included in the XML document. The XML document itself does Not have to be Base 64.
The requirement is like this in part
<xs:sequence>
<xs:element name="schema_version" type="xs:string" nillable="true"/>
<xs:element name="company_id" type="xs:string" nillable="true"/>
<xs:element name="tariff_id" type="xs:integer" nillable="true"/>
<xs:element name="filing_type" type="xs:integer" nillable="true"/>
<xs:element name="attachment_data" minOccurs="1" maxOccurs="unbounded">
Then the Base64 string version of the attachment would follow.
Obviously I have NO clue about Base 64 before last Friday, so I'm not sure if I'm giving the information you need or not.