Browse by Tags

Related Posts

  • xpath using DOM object to get the MAx Rule ID

    <?xml version="1.0" encoding="utf-8"?> <Rules> <Rule> <RuleId>7</RuleId> <Name>as</Name> <Description>as</Description> </Rule> <Rule> <RuleId>10</RuleId> <Name>h</Name> <Description>h<...
    Posted to XML and XmlDataSource Control (Forum) by vivek_cs on 06-14-2009, 12:00 AM
    Filed under: xpath, DOM
  • Re: Distinct select in XPath

    Can you tell us which attribute or child element of the 'mod' element you want to use for the comparison? Assuming the attribute is named 'foo' you would use e.g. .XPath = "xml/ahp/rooms/room[@t= '" & room & "']/mod[not(@foo = preceding-sibling::mod/@foo...
    Posted to XML and XmlDataSource Control (Forum) by Martin_Honnen on 06-09-2009, 12:00 AM
    Filed under: distinct, xpath
  • Distinct select in XPath

    I have found several posts on how to do a distinct select using XPath, but I can't seem to make them work in my scenario. Dim xds As XmlDataSource = New XmlDataSource With xds .DataFile = X10.AHCONFIG .ID = "XML_Rooms_DataSource" .XPath = "xml/ahp/rooms/room[@t= '" & room...
    Posted to XML and XmlDataSource Control (Forum) by rockinthesixstring on 06-09-2009, 12:00 AM
    Filed under: distinct, xpath, unique
  • Re: need help with this XML file

    Once you have manipulated the XML as shown earlier and you now want to create the output you describe in your first post you can achieve that as follows: Dim doc As New XmlDocument() doc.Load( "file.xml" ) For Each nodeEl as XmlElement In doc.SelectNodes( "xmlRoot/nodeInfo/node" ...
    Posted to XML and XmlDataSource Control (Forum) by Martin_Honnen on 06-07-2009, 12:00 AM
    Filed under: SelectNodes, DOM, xpath
  • Re: need help with this XML file

    If you want to manipulate the document in memory then pseudo code would look as follows: Dim doc As New XmlDocument() doc.Load( "file.xml" ) For Each nodeEl As XmlElement In doc.SelectNodes( "xmlRoot/nodeInfo/node" ) Dim oldId As String = nodeEl.GetAttribute( "id" ) Dim...
    Posted to XML and XmlDataSource Control (Forum) by Martin_Honnen on 06-07-2009, 12:00 AM
    Filed under: SelectNodes, DOM, xpath
  • XPath("pubDate") formatting problems

    Hi all Sorry if this has been posted before, and answered, but I'm having trouble formatting the pubDate using XPath from an XML feed (www.emtwo.co.uk/syndication.axd) I have this: Posted: <%#XPath("pubDate", "dd mm yyyy")%> but on my site it comes out as: Posted: dd mm...
    Posted to XML and XmlDataSource Control (Forum) by markasquith on 05-19-2009, 12:00 AM
    Filed under: xpath, pubdate, date time formatting
  • iterating an XML file

    I'm stuck... I'm trying to use an XML file to store email address and passwords for a simple login screen... I know there are easier ways, but I'd really like to use this as a learning exercize in XML.... I have two textboxes and a submit button... can anyone tell me what is wrong either...
    Posted to XML and XmlDataSource Control (Forum) by Eugene1968 on 04-03-2009, 12:00 AM
    Filed under: xml data, xpath, XPath XmlDataSource, xml
  • Re: xml file updation in win forms(xpath) To retrive attributes

    To retrieve all the attributes string strXMLUrl = Server.MapPath("~/Data/Customers.xml"); XPathDocument doc = new XPathDocument(strXMLUrl); XPathNavigator navigator = doc.CreateNavigator(); string strXpath = "descendant::Customer[CustomerID='" + "BLONP" + "'...
    Posted to XML and XmlDataSource Control (Forum) by sridhar.a on 03-25-2009, 12:00 AM
    Filed under: xpath
  • Re: xml file updation in win forms(xpath)

    To retrive the selected node, here is the following code. If you still donot understand, let me know clearly your requirement. string strXMLUrl = Server.MapPath("~/Data/Customers.xml"); XPathDocument doc = new XPathDocument(strXMLUrl); XPathNavigator navigator = doc.CreateNavigator(); XPathNavigator...
    Posted to XML and XmlDataSource Control (Forum) by sridhar.a on 03-25-2009, 12:00 AM
    Filed under: xpath
  • Re: xml file updation in win forms(xpath)

    To retrive the selected node, here is the following code. If you still donot understand, let me know clearly your requirement. string strXMLUrl = Server.MapPath("~/Data/Customers.xml"); XPathDocument doc = new XPathDocument(strXMLUrl); XPathNavigator navigator = doc.CreateNavigator(); XPathNavigator...
    Posted to XML and XmlDataSource Control (Forum) by sridhar.a on 03-25-2009, 12:00 AM
    Filed under: xpath
Page 1 of 8 (71 items) 1 2 3 4 5 Next > ... Last »