473,383 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

in .NET, how to manipulate xml like this? thanks!

<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f4010-65b3-11d1-a29f-00aa00c14882/"
xmlns:c="xml:" xmlns:a="DAV:">
<a:response>
<a:href>http://????/log.doc</a:href>
<a:propstat>
......

they all have prefix, What I had tried is this:

xdRequestBody=new XmlDocument();
xdRequestBody.Load(httpRequest.InputStream);

XmlNodeList nodeList=xdRequestBody.SelectNodes("/multistatus
/response/href/*");

but it returns nothing, what is the right to handle xml like that?
Thanks!
Nov 12 '05 #1
1 969
davidw wrote:
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f4010-65b3-11d1-a29f-00aa00c14882/"
xmlns:c="xml:" xmlns:a="DAV:">
<a:response>
<a:href>http://????/log.doc</a:href>
<a:propstat>
.....

they all have prefix, What I had tried is this:

xdRequestBody=new XmlDocument();
xdRequestBody.Load(httpRequest.InputStream);

XmlNodeList nodeList=xdRequestBody.SelectNodes("/multistatus
/response/href/*");

but it returns nothing, what is the right to handle xml like that?


Take a look at SelectNodes(string, XmlNamespaceManager) method.

--
Oleg Tkachenko [XML MVP, MCP]
http://blog.tkachenko.com
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Paul | last post by:
This method: static void swap(int a, int b) { int c = a; a = b; b = c; } does not swap the values of a and b over. It doesn't work for String variables either. However the following method...
3
by: Isaac Rodriguez | last post by:
Does anyone know of a Python API to manipulate CAB files? Thanks, -- Isaac Rodriguez SWE Autodesk. ======================================== There are 10 types of people. Those who...
1
by: R Reyes | last post by:
Hi, what is the best way to manipulate MSOffice programs? i understand that regular web pages do not have the permissions (because of safety measures) to open up MS word/excel programs, for...
1
by: Dave | last post by:
Hello all, It is unclear to me from reading my references on streams if anything that can be done with a standard manipulator can also be done without manipulators. Is the set of operations...
2
by: jrefactors | last post by:
I want to use javascript to manipulate XML files. The following code works in IE but it won't work in Mozilla. var xml = new ActiveXObject("Microsoft.XMLDOM"); Any way to make it work in cross...
1
by: Andreas Palm | last post by:
I have the problem that when I write XML from a dataset I get certain columns that are empty not as empty elements, rather not at all. To avoid that I thought I can go to the dataset and easily...
8
by: Steve Jorgensen | last post by:
Hi all, I was wondering if anyone has been able to find a way to read layout information and manipulate the layout in the Relationships window. I've tried a few different angles, but couldn't...
2
by: Jeff | last post by:
Can I manipulate the properties of pure HTML controls (i.e. not server side controls) from my aspx.cs Page_Load event? If so, I don't see the control listed by intellisense. I gave the control a...
2
by: Guogang | last post by:
Is it possible to manipulate client computer's direcotries through an ASP.NET page? For example: user click "Down Load Package To Temporary Directory", then a whole package with proper directory...
2
by: SamIAm | last post by:
I have a international web app and need to change the page title at runtime. I was going to create a function to get the name and call it from the page. Is there perhaps a another way to manipulate...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.