Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2007, 02:21 AM
Registered User
 
Join Date: Mar 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML Parsing Still Struggling

Firstly thanks to joefawcett and mhkay for responding to my XML parsing problem. Unfortunately I'm still struggling. The problem is with the following line of code:

objParameterNodes = objDom.SelectNodes("/StoredProcedures/StoredProcedure[@name=usp_Get_Authors_By_States]/Parameters/Parameter")

This statement does not populate my XmlNodeList and I get an error message warning me that the stotedprocedure expects a parameter which was not suppled. however if I enter this XmlNodeList gets instantiated and off it goes.

objDom.SelectNodes("/StoredProcedures/StoredProcedure/Parameters/Parameter")

If convinced the problem lies with the XPath expression.



 
Old March 13th, 2007, 03:59 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Perhaps usp_Get_Authors_By_States should be in quotes. Is it supposed to be the name of an element, or a character string to be compared with @name?

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing the xml which is having vikkiefd XML 14 July 28th, 2008 05:21 AM
XML parsing denzil_cactus Perl 0 June 11th, 2007 02:34 AM
XML Parsing SCADA_Monkey XML 2 March 11th, 2007 03:20 PM
Struggling with Configuration RPG SEARCH ASP.NET 1.0 and 1.1 Basics 3 September 29th, 2004 03:06 AM
XML Parsing tgopal Javascript 2 July 27th, 2004 08:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.