M
miztaken
Hi there,
I need a help on making Xpaht for following xml file
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/
relationships">
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/
officeDocument/2006/relationships/extended-properties"
Target="docProps/app.xml" />
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/
package/2006/relationships/metadata/core-properties" Target="docProps/
core.xml" />
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/
officeDocument/2006/relationships/officeDocument" Target="word/
document.xml" />
</Relationships>
I need to develop a xpath based on Type attribute so that i can fetch
value in Target attribute.
I have loaded the document in XmlDocument and how want to select the
node using SelectNodes() method.
I have used following XPath query but its not working?
XmlElement element = doc.DocumentElement;
XmlNodeList nodes = element.SelectNodes("/Relationships/
Relationship[@Type=\"http://schemas.openxmlformats.org/officeDocument/
2006/relationships/officeDocument\"]");
Please help me
thankYou
miztaken
I need a help on making Xpaht for following xml file
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/
relationships">
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/
officeDocument/2006/relationships/extended-properties"
Target="docProps/app.xml" />
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/
package/2006/relationships/metadata/core-properties" Target="docProps/
core.xml" />
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/
officeDocument/2006/relationships/officeDocument" Target="word/
document.xml" />
</Relationships>
I need to develop a xpath based on Type attribute so that i can fetch
value in Target attribute.
I have loaded the document in XmlDocument and how want to select the
node using SelectNodes() method.
I have used following XPath query but its not working?
XmlElement element = doc.DocumentElement;
XmlNodeList nodes = element.SelectNodes("/Relationships/
Relationship[@Type=\"http://schemas.openxmlformats.org/officeDocument/
2006/relationships/officeDocument\"]");
Please help me
thankYou
miztaken