Re: [xml] namespaces in the dtd (xmlHasNsProp)
- From: Daniel Veillard <veillard redhat com>
- To: Uwe Fechner <uwe fechner 4commerce de>
- Cc: Libxml2 <xml gnome org>
- Subject: Re: [xml] namespaces in the dtd (xmlHasNsProp)
- Date: Thu, 7 Mar 2002 17:13:56 -0500
On Thu, Mar 07, 2002 at 05:05:22PM +0100, Uwe Fechner wrote:
Hello Daniel,
hi Uwe,
attr := xmlHasNSProp(xmlElement, pchar('attr'), pchar('http://abc.org'));
// the fixed attribute is not found
Damn another API bug, fixed in my tree now:
import libxml2
doc = libxml2.parseDoc(
... """<?xml version="1.0" encoding="iso-8859-1"?>
... <!DOCTYPE test [
... <!ELEMENT test (#PCDATA) >
... <!ATTLIST test xmlns:abc CDATA #FIXED "http://abc.org" >
... <!ATTLIST test abc:attr CDATA #FIXED "def" >
... ]>
... <test />
... """)
elem = doc.getRootElement()
attr = elem.hasNsProp('attr', 'http://abc.org')
print attr
<xmlAttr (attr) object at 0x811c0c0>
print attr.serialize()
<!ATTLIST test abc:attr CDATA #FIXED "def">
Any comments?
Keep reporting API bugs, I will fix them, and now that I have scripting
capabilities I add regression tests at each step, so the status should
improve, I fixed xmlReconciliateNs() too.
thanks !
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]