|
I don't have time to work up your approach but why are you using XPathNavigator rather than the DOM?
"When your argument falls apart...resort to name-calling." Red Stateler aka (D)espeir in the Soapbox
Whereas "liberal" is just a moron. Red Stateler aka (D)espeir in the Soapbox
led mike
|
|
|
|
|
I tried with DOM also
node.ParentNode.removeChildNode(node);
still not deleting everything, somehow it skips some nodes
|
|
|
|
|
So you did this:
XmlNodeList list = doc.SelectNodes("//book[@title='test']");
foreach (XmlNode node in list)
node.ParentNode.RemoveChild(node);
doc.Save("myfile.xml");
and stepped through the loop in debug mode watching all the nodes get deleted but then after the file was saved some of the nodes where still there? I would need to see that happen to believe it.
led mike
|
|
|
|
|
Recently I made a project,in the project I need to transfer a big string(about 80MB) in WebService,but it give an exception,the message in the application log is:
"aspnet_wp.exe (PID: 3324) was recycled because memory consumption exceeded the 287 MB (60 percent of available RAM)."
How to fix the problem?
many thanx!
Bright Zhang
|
|
|
|
|
o,no reply
|
|
|
|
|
Folks,
Background
Because WiX has some outstanding bugs I need to create a custom action in VBScript to edit a previously installed web.config.
Problem
I have googled quite hard for a better understanding of the "Microsoft.XMLDOM" object but I am having real trouble getting my head around creating nodes, elements etc. My code finds stuff through XPath but never seems to be able to add anything
Help
Can anyone let me have some good links to some sites that give examples of either vbscript sites with examples or some advice in this regard
JBW
You can please some of the people all of the time and all of the people some of the time but not all of the people all of the time.
|
|
|
|
|
|
|
How do i capture double click event on the record displayed using XSL from database. I want to get the value in the cell on double click. Plz help
Srini
|
|
|
|
|
I assume you are talking about transforming an XML document into HTML using XSLT. I am also assuming that the values are displayed in a HTML table. In that case, you can use DHTML/Javascript to do what you want. In short, you are in the wrong forum to obtain what you want.
|
|
|
|
|
Hi,
This is my first XML experience so I need to ask a simple question. I created a test Studio.net webform with a sample XML file that has the following in it.
- xmlns:api="http://www.somesite.com/someapi
- xmlns:xsi="http://www.w3......
My question is when I run this project does the "xmlns:api" statement get called automatically? I'm trying to understand how the request starts and what you get back. Does someone know where I can find simple code that takes an XML file, gets the data from www.somesite.com for example, and returns back an XML reply?
Thank You
zxcvbnm
|
|
|
|
|
vfhgujaqwe wrote: - xmlns:api="http://www.somesite.com/someapi
- xmlns:xsi="http://www.w3......
These are just namespaces that usually refer to a schema.
vfhgujaqwe wrote: My question is when I run this project does the "xmlns:api" statement get called automatically? I'm trying to understand how the request starts and what you get back. Does someone know where I can find simple code that takes an XML file, gets the data from www.somesite.com for example, and returns back an XML reply?
I think you are looking for AJAX (XMLHTTP).
|
|
|
|
|
Hi,
I am having a lot of trouble trying to create an xml doc with a specific layout as it will be used by a flash file so needs to have a specific layout. So im just wondering if anyone has help or ideas of how to go about creating a file like this one
http://www.geocities.com/liverpool_anfieldreds/data.xml
I would really appreciate thanks in advance
Tim
|
|
|
|
|
Did you try Notepad?
led mike
|
|
|
|
|
I need to define 2 rules in my schema .
The validated xml is of the form
<root>
<vegetable>
<class>root</radish>
<type>A</type>
<value>moderate</value>
</vegetable>
<vegetable>
...
...
</vegetable>
..
..
</root>
Condition 1: When class is 'seed' - element 'type' is optional else mandatory.
Condition 2: Atleast one 'vegetable' should have 'value' as 'benficial'.
How do i define these conditions in the schema?
|
|
|
|
|
|
I have a structure like this
<book>
...
<content>
......
</content>
...
</book>
I would like to use all HTML elements in <content> without declaring them again!
How to do that?
|
|
|
|
|
I am not sure of what you want here?
If you do the following:
<html xmlns="http://www.w3.org./1999/xhtml">,
you are getting the schema of xhtml but you won't have the physical xhtml elements created for you.
|
|
|
|
|
I am basically using .net web services for application to application communication on the web. Now I need to transfer simple xml files from a web application to another.My ultimate target is to update the xml files into a SQL Server database at the other end.What would be the best way to transfer the xml file?
I am envisioning to read the xml file into a dataset and then send the dataset as parameter to a web service call.The dataset will finally be loaded into database by remote web application.
Will this solution give me the best performance.Or I need to transmit the xml file as it is and then read the xml file into dataset before updating into the database?
Suggestion/Comments or alternative ideas are sought.
Thanks for your time and consideration.
Rabindra
|
|
|
|
|
rabing wrote: Will this solution give me the best performance
No. Opening a database connection and inserting the data using a "bulk insert" type operation would give the best performance.
led mike
|
|
|
|
|
Thanks for your reply,,,, I will give it a 'thought'.
Rabidnra
|
|
|
|
|
I use a schema to create a structure like this
<book>
...
<content>
<p>....</p>
</content>
</book>
<p> tag is the paragraph like normal, but when I try to create another tag, <big> for example, then I put it in schema in this order
<book>
...
<content>
<big>...</big>
<p>....</p>
</content>
</book>
I would like to use big like the tag <b> in HTML, but when I try to put <big> tag after <p> tag, it is said that "element p expected" (I use XMLSpy to edit my files). How can I make <big> used any where (no matter where <big> is after or before <p>)?
The second question is: how can I make a child tag, <italic> for example, inside <p>, that can be use any where inside <p>?
|
|
|
|
|
The schemas for all versions of HTML (I may be wrong here) are written in DTD. Doing what you can be expressed using a DTD. However, XML schemas cannot do everything a DTD can (and the reverse is true!)
Go to http://www.w3.org/[^] for more information.
Unfortunately, I don't have an answer for you but I think what you want cannot not be 100% implemented in a XML schema.
|
|
|
|
|
|
I have never before used xml, so please go easy on me. I am creating a game for which the rules, will be stored in an xml file. These rules will vary from city to city, so it's important I can easily and quickly add support for a new variation. My xml file looks something like this
<?xml version="1.0" encoding="utf-8" ?>
<!-- Root Node -->
<WinningHands>
<!-- List of regions -->
<Region Country="" Province="" City="">
<!-- List of winning hand types -->
<Hand>
<!-- Single hand attributes -->
<Name></Name>
<Score></Score>
</Hand>
</Region>
</WinningHands>
In the final product there would be a list of maybe 10 to 15 Hand elements, and a few hundred Region elements. With my current design, the file size is going to bloated with repeated Hand elements. If I do it the other way around, creating Region as a child of Hand, there would be a large list of Regions to parse.
Overall, either way is going to be slow to parse and load. So I'm asking for some suggestions as to the best way to accomplish the task.
|
|
|
|