Hi,
can somebody help me, please? I'm new
in libxml and i need create tree (like MIB tree) from DTD. What functions and
structures are the right for this?
Thanks
Pava
example:
DTD
<!ELEMENT NEWSPAPER
(ARTICLE+)>
<!ELEMENT ARTICLE (HEADLINE, BYLINE, LEAD, BODY, NOTES)> <!ELEMENT HEADLINE (#PCDATA)> <!ELEMENT BYLINE (#PCDATA)> <!ELEMENT LEAD (#PCDATA)> <!ELEMENT BODY (#PCDATA)> <!ELEMENT NOTES (#PCDATA)> <!ATTLIST ARTICLE AUTHOR CDATA
#REQUIRED>
<!ATTLIST ARTICLE EDITOR CDATA #IMPLIED> <!ATTLIST ARTICLE DATE CDATA #IMPLIED> <!ATTLIST ARTICLE EDITION CDATA #IMPLIED> tree
NEWSPAPER
ARTICLE+ (AUTHOR CDATA
#REQUIRED, EDITOR CDATA #IMPLIED, DATE CDATA #IMPLIED, EDITION CDATA
#IMPLIED)
HEADLINE
(#PCDATA)
BYLINE
(#PCDATA)
LEAD
(#PCDATA)
BODY
(#PCDATA)
NOTES
(#PCDATA)
|