Re: [xml] Potential allowed elements at an element tree node
- From: Daniel Veillard <veillard redhat com>
- To: Li Ning <lining mail bitmate com>
- Cc: xml gnome org
- Subject: Re: [xml] Potential allowed elements at an element tree node
- Date: Tue, 21 Aug 2001 05:03:58 -0400
On Tue, Aug 21, 2001 at 10:26:34AM +0800, Li Ning wrote:
Dear freind,
I am going to develop a DTD guided XML file composer using libxml.
What I need is to let libxml tell me what kind of potential elements
are allowed to insert at a particular XML element tree node according
to DTD. I would be grateful to you if you can provide me a complete
piece of code. Many thanks.
There is a bit of code in xmllint.c doing this
see also
http://xmlsoft.org/html/libxml-valid.html#XMLVALIDGETVALIDELEMENTS
and
http://xmlsoft.org/html/libxml-valid.html#XMLVALIDGETPOTENTIALCHILDREN
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
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]