I have an XPathNavigator object pointing to an XML element. I want to rename the element to another name (and also rename the associated end element). Can this be done using the XPathNavigator?
(I have a work-around, which is to Delete the element and re-insert it under a different name, but this may cause a performance issue, because...
Hello all...
I am trying to parse an XML document in C++. I do not have any form of metadata associated with the document. Since i am a novice with XML's i wanted to understand the best way to parse this xml. I am using libxml2 to achive this.
What i am doing currently is
1) walking the complete tree node by node , using pointers of ...
So, I have a list of nodes in a dynamic XML that is cached on a server. Using Ajax, I loop through the particular nodes to return a string each time:
XML:
<?xml version="1.0"?>
<Products>
<Product>
<ItemName>String</ItemName>
</Product>
<Product>
<ItemName>String</ItemName>
</Product>
<Product>
...
Has anybody found any documentation on comments in jaxb.index files? I've searched the web, but couldn't find any information.
Using "# comment" style lines does work, but is this actually specified anywhere?
Thanks for your help.
...
I am doing an xslt transform inside my c# program. When I run the xslt on its own it outputs just fine, but when I run it from within my c# program it always leaves off the:
<?xml version="1.0" encoding="UTF-8"?>
At the top of the resulting xml document. My XSLT file looks like:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet ...
Hi,
I want to create a form (flash or java/ajax) that allows selection data to be pulled from an xml file.
Example:
A ring builder application - the user selects the ring setting in one dropdown and then they select a diamond in another drop down. But the prices of the diamonds changes every day based upon the market, so we would need...
HI,
I have a string value returned from a servlet code. I want to parse the string into XML and show the XML in a GWT window.
I tried with google.xml.client.* package but was not successful. Can you please tell how to accomplish this task.
...
Hi All,
I m fairly new to SOAP based web services. I m looking for a good open source testing tool , that will help me automate regression testing.
I found webinject.
Was wondering , if there are any other tools.
thanks.
...
I'd like to slurp the following data about historical inventions into a convenient Ruby data structure:
http://yootles.com/outbox/inventions.xml
Note that all the data is in the XML attributes.
It seems like there should be a quick solution with a couple lines of code.
With Rails there'd be Hash.from_xml though I'm not sure that would...
Hi all ,That's my code .
import fl.controls.*;
var MyText:TextArea = info_txt;
var score:XML = new XML(<score/>);
score.PlayerName = "Maged";
trace(score);
Here I create a new XML date , I want to write these data to an external text file to use it by PHP but I don't have much information about it .
Note i want to append to the tex...
I'm trying to build an XML representation of some data. I've followed other examples, but I can't get it working. I've commented code down to this basic bit, and still nothing. This code compiles and runs OK, but the resulting output is empty. A call to dDoc.getDocumentElement() returns null. What am I doing wrong?
Please help me, Stack...
I'm creating an XML hierarchy that looks something like this:
element A
0+ element B
0+ element C (has PCDATA)
(more complex hierarchy below this one, not really relevant)
0+ element D
0+ element E
0+ element F
0-1 element G (has PCDATA)
0-1 element H (has PCDATA)
As a result, it's starting to look a little "crow...
Hello Stack Overflow,
I'm working on an Umbraco XSL Stylesheet and I am pretty stuck.
Basically, I have a parameter that I test and use it's value if it's present, otherwise I use the default parameter $currentPage.
Here are the parameters
<xsl:param name="source" select="/macro/sourceId" />
<xsl:param name="currentPage" />
Here's ...
I'm attempting to read the content of a XML file, using XmlTextReader in C#, that has the following structure:
<root>
<person id="0">
<a1>val</a1>
<a2>val</a2>
</person>
<person id="1">
<a1>val</a1>
<a2>val</a2>
</person>
</root>
I'm looking to read the file into a nested dictionary:
Dictionary<string, Diction...
I have this XML (Flash/AS3):
<channel>
<title>...</title>
<description>...</description>
<item><summary>...</summary><detail>...</detail></item>
<item><summary>...</summary><detail>...</detail></item>
...
</channel>
I want to create a DataProvider containing the elements (for use in a datagrid).
I thought this would work:
va...
I'm getting hung up on how to handle the data for an app I'm designing. I want to pull a list of items from the net. The data is updated routinely, and I think it would be good to store all the data on the device so the app can load quickly and refresh the data in a background thread rather than have to wait for the network on every st...
I'm parsing an XML file which is quite simple:
<?xml version="1.0" encoding="utf-8"?>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre><price>44.95</price><publish_date>2000-10-01</publish_date>
<description>An in-depth look at creati...
My Google sitemap renders well through XSLT fine without the xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" in the < urlset > element, however when included, my foreach statement doesn't work and nothing renders in the template. My code's below. Thanks for your help.
XML
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&...
I have 2 text boxes and a radio button. When the user clicks submit I it to generate a XML file with the fallowing format.
<object>
<string1>$string1</string1>
<string2>$string2</string2>
<bool>$myBoolean</bool>
</object>
After that I want to be able to read through the file and display it.
...
I'd like to store some relatively simple stuff in XML in a cascading manner. The idea is that a build can have a number of parameter sets and the Python scripts creates the necessary build artifacts (*.h etc) by reading these sets and if two sets have the same parameter, the latter one replaces the former.
There are (at least) two diffe...