XMLReader: Parsing a !DOCTYPE
Posted: Sun Apr 05, 2009 10:10 pm
Hey everyone,
I have a fairly simple question. Is it possible to parse a doctype via the xml reader (as in get all the values from it).
If my doctype is:
then through the reader I can tell that its of type XMLReader::DOC_TYPE and that the node name is html, but I can't seem to find out how to pull down all the properties such as PUBLIC, "-//W3C//DTD XHTML 1.0 Strict//EN" etc.
Any "getAttribute" method doesn't work, readString, readInnerXml, nothing try seems to work.
Any thoughts? Is this even possible?
Thanks a million,
Aaj
I have a fairly simple question. Is it possible to parse a doctype via the xml reader (as in get all the values from it).
If my doctype is:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">Any "getAttribute" method doesn't work, readString, readInnerXml, nothing try seems to work.
Any thoughts? Is this even possible?
Thanks a million,
Aaj