I have simplified my question a bit and limited the code. I don't know how to attach the subnodes to the existing object class objPet.
code
Imports System.IO
Imports System.Xml
Imports System.Xml.XPath
Imports Microsoft.Office.InfoPath
Imports System.Data.SqlClient
Imports System.Xml.Xsl
Imports System.Xml.Serialization
Imports ConvertXMLandBase64toFiles.Pets
Public Class pets1
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim petXML As XmlDocument = New XmlDocument()
petXML.Load("-------- insert path to pets.xml ---------")
Dim objPet As Pets = New Pets()
Dim petPath As String = "/Pets"
If petXML.HasChildNodes Then
For Each petNode As XmlNode In petXML
objPet.PetNumber = petXML.SelectSingleNode(petPath &am ...
Go to the complete details ...