OK I have:
VB Code:
  1. Public Type gtypStructureProps
  2.     IsNew           As Boolean
  3.     IsDirty         As Boolean
  4.     IsDeleted       As Boolean
  5.     Key             As String * 36
  6.     ID              As Long
  7.     Description     As String * 30
  8. End Type
  9.  
  10. Public Type gtypStructureData
  11.     Data            As String * 72
  12. End Type
Which are the UDTs for my table tblStructures...
Now, in the load event I have:
VB Code:
  1. Set adoRec = New Recordset
  2.     With adoRec
  3.         .Open strSQL, DB_CONN, adOpenForwardOnly, adLockReadOnly
  4.         Do While Not .EOF
  5.        
  6.             Set objRoot = objDOM.createElement("Structure")
  7.            
  8.             udtProps.ID = .Fields("ID").Value
  9.             udtProps.Description = .Fields("Description").Value
  10.             udtProps.Key = vbNullString
  11.             udtProps.IsNew = False
  12.             udtProps.IsDirty = False
  13.             udtProps.IsDeleted = False
  14.             LSet udtData = udtProps
  15.                    
  16.             Set objProp = objDOM.createElement("UDT")
  17.             objProp.Text = "Q" & udtData.Data & "P"
  18.             Debug.Print objProp.Text
  19.             Debug.Print udtData.Data
  20.             objRoot.appendChild objProp
  21.             Set objProp = Nothing
My udtData.Data is a string and contains the data from the props UDT, and the debug.print statement proves that it contains the correct data...HOWEVER! When I assign this string to the text property of an XML node all the data vanishes!!!
The debug.Print objProp.Text just prints "Q" to the immediate window...the trailing "P" AND all the data vanishes!!!
Is there something up with XML that stops me doing this???

Woka