mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
fix stringValue for attribute nodes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34524 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d0a8f14c4a
commit
cedbac254f
1 changed files with 6 additions and 1 deletions
|
@ -687,7 +687,12 @@ void clearPrivatePointers(xmlNodePtr aNode)
|
||||||
|
|
||||||
- (NSString*) stringValue
|
- (NSString*) stringValue
|
||||||
{
|
{
|
||||||
return StringFromXMLStringPtr(MY_NODE->content);
|
xmlNodePtr node = MY_NODE;
|
||||||
|
if (node->type == XML_ATTRIBUTE_NODE)
|
||||||
|
{
|
||||||
|
node = node->children;
|
||||||
|
}
|
||||||
|
return StringFromXMLStringPtr(node->content);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString*) URI
|
- (NSString*) URI
|
||||||
|
|
Loading…
Reference in a new issue