Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of libdom.
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef dom_utils_namespace_h_
  9. #define dom_utils_namespace_h_
  10.  
  11. #include <dom/functypes.h>
  12. #include <dom/core/exceptions.h>
  13. #include <dom/core/string.h>
  14.  
  15. struct dom_document;
  16.  
  17. /* Ensure a QName is valid */
  18. dom_exception _dom_namespace_validate_qname(dom_string *qname,
  19.                 dom_string *namespace);
  20.  
  21. /* Split a QName into a namespace prefix and localname string */
  22. dom_exception _dom_namespace_split_qname(dom_string *qname,
  23.                 dom_string **prefix, dom_string **localname);
  24.  
  25. /* Get the XML prefix dom_string */
  26. dom_string *_dom_namespace_get_xml_prefix(void);
  27.  
  28. /* Get the XMLNS prefix dom_string */
  29. dom_string *_dom_namespace_get_xmlns_prefix(void);
  30.  
  31. #endif
  32.  
  33.