[opencms-dev] Sorting of XML-Content-Nodes (not of different files)

Mario Jäger m.jaeger at alkacon.com
Mon Aug 2 09:01:58 CEST 2010


Hi Marc,

I still don't understand your problem. In which procedure do you want to sort the nodes of a XML content - when you open 
the XML content editor or when you give out the content of a single Xml file? But, in both cases I don't know what you 
want to sort, when you have two elements of type "OpenCmsString" and "OpenCmsDateTime". And in both cases you are able 
to decide yourself the order in which the Xml content elements are displayed. Because, the subject of your mail is 
"Sorting of XML-Content-Nodes (not of different files)" I exclude, that you want to sort the entries in a Xml content list.

-- 
Kind Regards,
Mario.
 
-------------------
Mario Jäger
 
Alkacon Software GmbH  - The OpenCms Experts                    
http://www.alkacon.com - http://www.opencms.org


Marc Johnen schrieb:
> Hello everyone,
>
> is it possible it possible to sort the nodes of the XML-Content.
> E.g. I have a simple XSD with two elements of the the type
> "OpenCmsString" and "OpenCmsDateTime". I'd like them to
> be sorted by String or Date instead of the order in the content-file.
>
> I know how to write my own my own CmsResourceCollector, but
> I have no startingpoint on how to sort the nodes of a single file
> and also couldn't find anything on that in the forum.
>
> Any hints highly appreciated.
>
> Marc Johnen
> http://www.johnen.biz
>   



More information about the opencms-dev mailing list