[xml] Finding the root node from a DTD



Hi all. I've been tearing hair for a couple days now
trying to solve this (seemingly) simple problem;
hopefully someone here can point out what I'm
overlooking...

I'm trying to fill in 'root_node' in the following
code fragment:

xmlCreateIntSubset(docpDocument, root_node, NULL,
(xmlChar*) chpFileName);

If I parse the DTD file beforehand (with xmlParseDtd()
), is there any way for me to determine what the
name/root element is for that DTD?

I would -think- that there would be a solution to this
problem that is more generic than hard-coding
'root_node' or asking the user for the root element
every run, but I am just not seeing it.

Your time and comments are appreciated,

-- Quandary

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]