You would get a friendlier node name if you supplied a ":nameHint" parameter when you created the node. If no name hint is supplied it just uses a random number for the node name.
On Jul 26, 2010 9:44 AM, "Tony Giaccone" <[email protected]> wrote: I've been playing around with generating XML outputs based on the data that's passed in, and I'm curious about how Sling decides what to use as the tag for the stanza of xml.. I used this curl to insert a document into my repository... curl -D - -F"sling:resourceType=mjb/blog" -F"seq=105" -F"firstName=Roberta" -F"lastName=Chambers" "http://admin:ad...@localhost :8080/sling/content/blog/*" And got this data: <_x0033__1280162305912 jcr:primaryType="nt:unstructured" firstName="Roberta" lastName="Chambers" seq="105" sling:resourceType="mjb/blog" xmlns:ocm=" http://jackrabbit.apache.org/ocm" xmlns:fn=" http://www.w3.org/2005/xpath-functions" xmlns:fn_old=" http://www.w3.org/2004/10/xpath-functions" xmlns:xs=" http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:sv=" http://www.jcp.org/jcr/sv/1.0" xmlns:sling=" http://sling.apache.org/jcr/sling/1.0" xmlns:rep="internal" xmlns:nt=" http://www.jcp.org/jcr/nt/1.0"/> That tag <_ x0033__1280162305912 is really not what I want there. What i'd like to see is <blog blog_id=033__1280162305912 Is there a way to change how that tag is generated? Tony
