Valuation Request: How Valex parses phone numbers for RelatedParty sections

Are you doing the RelatedPartySegment of a valuation request? A little confused by the XSD?

Parsing RelatedParty phones

For instance, a HomePhone is a collection of Phones, with a PreferredContactMethod attribute.

But when you look further down the tree, you can see that the Mobile and Fax nodes also have a PreferredContactMethod attribute. Further, FixedPhone doesn't. So which do you use?

Valex will by default assume that WorkPhone is the most important contact information. It will first look for HomePhone information, then override it with WorkPhone information. It will ignore any PreferredContactMethod attributes applied to a WorkPhone or HomePhone node.

Valex will honor the PreferredContactMethod on the individual phone items (Fax, Mobile) and add those into the notes for that particular contact.

For reference, here's an example RelatedPartySegment

  <RelatedPartySegment>
    <RelatedParty RelPartyType="Lender">
      <Identifier Type="LenderAssigned" UniqueID="RelatedParty-Lender"/>
      <PersonName>
        <FirstName>Job</FirstName>
        <Surname>Orderer</Surname>
      </PersonName>
      <WorkPhone PreferredContactMethod="Yes">
        <Phone>
	  <!-- The '03' can also be put in the AreaCode attribute, but should be excluded from the Phone number -->
          <FixedPhone>03 9675 3477</FixedPhone>
        </Phone>
      </WorkPhone>
    </RelatedParty>
    <RelatedParty RelPartyType="Other" RelPartyDescription="Applicant">
      <Identifier Type="LenderAssigned" UniqueID="RelatedParty-Party-1"/>
      <PersonName>
        <FirstName>Borrower</FirstName>
        <Surname>Name</Surname>
      </PersonName>
    </RelatedParty>
    <RelatedParty RelPartyType="Other" RelPartyDescription="Access Provider">
      <Identifier Type="LenderAssigned" UniqueID="RelatedParty-Access-1"/>
      <PersonName>
        <FirstName>Inspection</FirstName>
        <Surname>Contact</Surname>
      </PersonName>
      <WorkPhone>
        <Phone>
          <FixedPhone AreaCode="03">123456</FixedPhone>
        </Phone>
      </WorkPhone>
      <WorkPhone>
        <Phone>
          <Mobile PreferredContactMethod="Yes">0413 153 105</Mobile>
        </Phone>
      </WorkPhone>
    </RelatedParty>
  </RelatedPartySegment>