Re: [xml] Ordering of attributes: xmlGetDtdElementDesc()

On Tue, Feb 11, 2003 at 09:54:34AM -0800, Mark S Petrovic wrote:

dtdPtr DTD;
xmlChar *N;
xmlElementPtr E;
xmlAttributePtr A;

   E = xmlGetDtdElementDesc(DTD,N);
   A = E->attributes;

is the list of attributes A ordered exactly as those same attributes
are ordered in the DTD for the element named N?

  No, because there is no such ordering !
In general there is no attribute ordering in XML.
For attribute declarations, some may be done in the internal subset or
the external subset, and possibly in different ATTLIST declarations in
both, so basically there is no order in the DTD either.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]