You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Daniel Burrell <da...@gmail.com> on 2008/08/09 16:11:27 UTC
Extract Doctype info
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.
Re: Extract Doctype info
Posted by Daniel Burrell <da...@gmail.com>.
David Bertoni wrote:
> 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
thanks, i did find them :)
Re: Extract Doctype info
Posted by David Bertoni <db...@apache.org>.
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