Normalize xml processing
[anna.git] / include / anna / xml / Node.hpp
index a8579b7..7050a81 100644 (file)
@@ -458,10 +458,15 @@ private:
 
   static const Attribute* find(const char* attrName, const_attribute_iterator, const_attribute_iterator) throw();
 
+  // Allow sort in compiler
+  attribute_iterator attribute_begin() throw() { return a_attributes.begin(); }
+  attribute_iterator attribute_end() throw() { return a_attributes.end(); }
+
   friend class Parser;
   friend class Allocator<Node>;
   friend class XPath;
   friend class Decompressor;
+  friend class Compiler;
 };
 
 }