Extract CSS using javaXPCOM

said <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <42e1037d-8dc2-42e5-92a1-3806ff9983a4@d14g2000yql.googlegroups.com>
Hello,

I'm using javaXPCOM in my application and I want to retreive the CSS
(both inline and linked)

I managed retreiving the inline CSS unsing the nsIDOMDocumentStyle
Interface, but I couldn't get the CSS of a linked file here is my code
trunk for retreiving inline CSS :

for (int i = 0; i < documentStyle.getStyleSheets().getLength(); i++) {
					System.out.println(getSerializer().serializeToString(
							(documentStyle.getStyleSheets().item(i)
									.getOwnerNode())));
				}
}

when I use a linked CSS the getOwnerNode() method has only the link
value to the CSS document, and I don't know how I could do to have the
actual value

thank you for your help

regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.