the schema design's question which contains Non xml data

 
Hi everyone,
I want to design a schema that contains Non xml data, e.g.a entity names people, which contains four elements ,such as name ,Id,  photo and project paper, and the photo is store in *.jpg format , progect paper is store in *.pdf format.I should search the photo and project paper base in people Id. Each people has his owner's phota and project paper.
The schema is designed like this :

<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition">
  <xs:annotation>
    <xs:appinfo>
      <tsd:schemaInfo name = "people">
        <tsd:doctype name = "information">
          <tsd:logical>
            <tsd:content>closed</tsd:content>
          </tsd:logical>
        </tsd:doctype>
        <tsd:doctype name = "photo">
          <tsd:logical>
            <tsd:content>closed</tsd:content>
          </tsd:logical>
          <tsd:physical></tsd:physical>
        </tsd:doctype>
        <tsd:doctype name = "projectPaper">
          <tsd:logical>
            <tsd:content>closed</tsd:content>
          </tsd:logical>
        </tsd:doctype>
      </tsd:schemaInfo>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name = "information">
    <xs:complexType>
      <xs:sequence>
        <xs:element name = "name" type = "xs:string"></xs:element>
        <xs:element name = "id" type = "xs:string"></xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>


 



However, Basic this schema , I don’t know how to associate photo and paper to people’s id,that is to say how can i query the photo bases in people’s id??

Whether there is somethings wrong with the schema’s design??

And another question is how can i get the non xml data result, and execute program to open the result in web appication?

thank you ,
lisa