 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
crusoe Guest
|
Posted: Mon Feb 19, 2007 6:29 am Post subject: How can I get the href-attribute? |
|
|
Hi, I want to read the href-attribute in:
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet href="mystyle.css" type="text/css"?>
This is what I try:
parentNode := XMLDoc.DocumentElement.ParentNode;
for i := 0 to parentNode.childNodes.count - 1 do begin
childNode := parentNode.childNodes[i];
if (childNode.nodeName = 'xml-stylesheet') then begin
attNode := childNode.attributeNodes.findNode('href');
I don't understand this, I get here:
attNode = nil, childNode.attributeNodes.count = 0
Otherwise, I see that the childNodeValue is correct:
childNode.nodeValue = 'href="mystyle.css" type="text/css"'
What's going on here? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|