>> it is best to stick to the JAXP factory mechanism 
>> does not become dependent on ...

Rob, you make my head spin, but you are filling me with hope :-) 
Could not agree more with you and I need to keep it as simple possible so I can 
understand what I am doing :-) 

I know how I want my XML representation to look.  I can easily (?:-)  craft it 
by StringBuffer, but... would really like to take advantage of DOM and Restlet. 
 

What is the best way to build, manipulate and return representation like the 
following (all, other comments also welcome): 

<?xml version="1.0" encoding="ASCII"?>
<service>
  <Types name="typeA" description="typeA description">
    <attributeNames>Name</attributeNames>
  </Types>
  <Types name="type2" description="type2">
    <attributeNames>Name</attributeNames>
    <attributeNames>ContainerName</attributeNames>
    <relationshipNames>Contains</relationshipNames>
    <relationshipNames>ContainedIn</relationshipNames>
  </Types>
</service>

Reply via email to