Re: [xml] xmlValidGetValidElements on root Node
- From: Sylvain Duval <duvals jouve fr>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] xmlValidGetValidElements on root Node
- Date: Tue, 16 Nov 2004 11:36:21 +0100
Any way:
I don't see, if the function xmlValidGetValidElements (...) will work
proprerly on a tree just built.
Imagine I have the node root whith this declaration in the DTD:
<!ELEMENT root(to,from,header)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT header (#PCDATA)>
My tree is currently:
<root>
<to>data</to>
I want to know which are valid elements to insert under root:
I call xmlValidGetValidElements which fails because internally a call to
xmlValidateOneElement is done on root element
and because root is not valid (because all needed elements are not yet
present, of course that's why I call xmlValidGetValidElements )...
It seems there is something stange in the algorithm or something I just
don't understant :o)...
Am I missing something?
Thanks again.
Sylvain.
At 04:06 16/11/2004 -0500, Daniel Veillard wrote:
On Tue, Nov 16, 2004 at 10:01:45AM +0100, Sylvain Duval wrote:
> It seems not to be the good way to know possible children of the root.
>
> How can I do?
Sounds like a bug. Bugzilla it.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://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]