rootElement = document.createElementNS(null, "browser");
document.appendChild(rootElement);
Iterator profileIter = theProfile.iterator();
while (profileIter.hasNext()) {
ProfileAttribute p = (ProfileAttribute)profileIter.next();
attributeNode = document.createElementNS(null, p.getAttribute());
rootElement.appendChild(attributeNode);
Vector attributeValue = p.get();
if (attributeValue != null)
{
Iterator complexValueIter = attributeValue.iterator();
if (p.getCollectionType().equals("Simple")) {
// Simple attribute
String value = (String)complexValueIter.next();
text = document.createTextNode(value);
attributeNode.appendChild(text);
} else {