Search results for query: *

  1. M

    XmlPath case insensitive search

    Hi, I've tried this to search for the word 'apple' within 'DESCRIPTION' of all 'PRODUCT' elements in an xml document: Dim fruit As XmlNodeList = doc.SelectNodes("//PRODUCT[translate(., 'ABCDEFGHJIKLMNOPQRSTUVWXYZ', 'abcdefghjiklmnopqrstuvwxyz') = contains(DESCRIPTION,'apple')]") This...
  2. M

    Button click submit to new page

    Hi, I have a procedure that is called when I click on a button. The result of the procedure is an XmlElement and from it I want to pass the values of each "name" element to a new page. This new page will display a list of products, which will be retrieved by looking up from a database the list...
  3. M

    Search for string in XML file

    Thanks, it was an error relating to the code you posted, not a separate problem. Still relating to above, if my XML file is structured as follows: <Category> <Product> <Description></Description> </Product> <Category> Do I need to alter the code or will myXMLDoc...<product> still...
  4. M

    Search for string in XML file

    Hi Ian, I'm getting the following error and can't figure out why: BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types. Thanks
  5. M

    Search for string in XML file

    Thanks guys for the responses. Will try these and see how it goes.
  6. M

    Search for string in XML file

    Hi, I need to search for a specific word in an XML file, entered by a user into a search box. For example: <products> <product id="123"> <description>This is a product and it's great</description> </product> <product id="124"> <description>This is another product and it's also...
  7. M

    Xpath

    Hi, Need help using Xpath to firstly look at every CATEGORY node using the "id" attribute passed over to the webpage in a querystring, and then once found to assign the "name" attribute to a variable. Getting in a muddle trying to use MoveToFirstAttribute(), not working. <?xml...
  8. M

    How to select data from XML files

    Hi, Thanks for the help. I have now figured out using XPath how to load an XML file and select only child nodes ("products") from a category with an attribute ("id") matching whatever I want. I can then loop through the child nodes and assign to variables. What I cannot do is loop through the...
  9. M

    How to select data from XML files

    Hi, I have the following XML file (sample): <CATEGORY name="cat1" id="1"> ---<PRODUCT ITEM="100"> ------<WEIGHT>0.15</WEIGHT> ------<NAME>A Product</NAME> ------<PRICE>10.00</PRICE> ---</PRODUCT> </CATEGORY> <CATEGORY name="cat2" id="2"> ---<PRODUCT ITEM="200"> ------<WEIGHT>0.15</WEIGHT>...
Back
Top