Certainly...
I am trying to retrieve all the attributes and element data(id, label, and content) and assign that data to a variable.
BTW, I had a little typo in the code I posted before. ActivityNode should be reNode.
I do get data, but it's just duplicate rows of this(which happens to be the first row in the XML file):
Here is a sample of the XML:Code:node Id: 2009040710585662 node Title: Start your case here node Content: MS.Internal.Xml.XPath.CompiledXpathExpr
Thanks!Code:<?xml version="1.0" encoding="utf-8"?> <reModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.er.org/remodel/v1/ ermodel.xsd" xmlns="http://ns.er.org/remodel/v1/"> <reNodes> <NodeSection id="90c2fba4-a8cb-4273-bdb4-78bcc732f8c9" label="XML Test Case"> <reNode id="2009040710585662" label="Start your case here"> <Content>/DataAvailabilityModel/DAMNode[@id = 'd14']</Content> </reNode> <reNode id="2009040711003882" label="Space...the final frontier"> <Content>/DataAvailabilityModel/DAMNode[@id = 'd15']</Content> </reNode> <reNode id="9050810371006880" label="MCQ Node # 3"> <Content>/DataAvailabilityModel/DAMNode[@id = 'd32']</Content> </reNode> <reNode id="9050810442203492" label="Buying a Mac"> <Content>/DataAvailabilityModel/DAMNode[@id = 'd33']</Content> </reNode> <reNode id="9050810442403804" label="Buying a PC"> <Content>/DataAvailabilityModel/DAMNode[@id = 'd34']</Content> </reNode> <reNode id="9050810442605996" label="Buying an iPhone"> <Content>/DataAvailabilityModel/DAMNode[@id = 'd35']</Content> </reNode> <reNode id="9050810442905058" label="Buying a Blackberry"> <Content>/DataAvailabilityModel/DAMNode[@id = 'd36']</Content> </reNode> </NodeSection> </reNodes> </reModel>




Reply With Quote