Daniel Burrell wrote:
Hi,
How can I extract the information enclosed in this tag?
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "
http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
hasAttributes and hasChildren both returns false. getNodeName returns svg on
this node, but that's trivial to find anyway since the root node should
match this.
Really I'm stuck on getting the two optional paramaters that follow.
Those values are not attributes or children. The class DOMDocumentType
has the following accessor functions:
getPublicId()
getSystemId()
which will return strings with those values.
Dave