Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 23rd, 2006, 08:23 AM
Authorized User
Points: 285, Level: 5
Points: 285, Level: 5 Points: 285, Level: 5 Points: 285, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2005
Location: , , .
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Text String to XML

Hi folks,

The problem I have got is.....A user input some string i.e. "sp_list, anne, cook"

Format being <stored procedure name>, <parm1>, <parm2>.

Then they click submit and I need to be able to parse this into an xml document.

Anyone got any ideas?

Thanks

Reply With Quote
  #2 (permalink)  
Old November 27th, 2006, 06:26 AM
Authorized User
Points: 285, Level: 5
Points: 285, Level: 5 Points: 285, Level: 5 Points: 285, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2005
Location: , , .
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have got the program to accept an xml string into a text box. It then takes the string and puts it into an xml document.

Code:
<API_REQUEST>
<NAME>SP_TEST</NAME>
<PARAMETERS>
<param1>1</param1>
<param2>2</param2>
<param3>3</param3>
</PARAMETERS>
</API_REQUEST>
Above is what the XML document looks like.

Now what I need to do is to read through the document and pull out the NAME, and ParamX. I can pull out the NAME without a problem, but I need to be able to loop through the PARAMETERS and pull out all the different parameters and create a varible for each paramter. Unfortunately the amount of parameters is going to change.

If anyone has got any ideas or code snippets that would be great.

Thanks!!!!

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing from a text string jroxit Classic ASP Basics 5 November 18th, 2008 05:08 PM
Creating XML doc ; writing string(xml format) into KamalRaturi XML 5 May 28th, 2008 05:51 AM
Text String to XML testsubject XML 1 November 26th, 2006 06:50 PM
Parsing a text string medix_911 Access 8 November 21st, 2006 01:37 PM
Finding a string in the text muki XSLT 5 November 15th, 2005 11:20 PM



All times are GMT -4. The time now is 01:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.