Home
TeamSite
TeamSite, LiveSite and OpenDeploy
<root> element in XML pages - removable?
System
Hello all,
I'm trying to create a page which can be used as a google sitemap. To match the xsd, the root of the document must be . The component is working just fine. However, when I put it on an XML page, there appears a element.
I understand why this might be necessary if you had multiple XML components. However, I see no way to get rid of this, or to change the qname of the element. I'm investigating possible fixes, here are the ideas, in order of desirability:
1) Make an XML fixed layout which specifies no root node.
2) Make an XML fixed layout which specifies a root node.
3) Use a post-controller to strip the erroneous root node (this feels hacky to me, but has been proposed as a possible fix).
4) Create a servlet-jsp pair to make the sitemap.xml (this is so far down the list in desirability that I'm willing to hack in every other way to avoid this - I can't afford to divorce this item from CCPro, as my SEO dept will be maintaining it, and I'm terrified of giving them any real back-end ownership).
Any help would be much appreciated!
Find more posts tagged with
Comments
There are no comments yet