I have two XML files located in res/xml/. One file is a normal XML file located in that directory called myfile.xml and I can access it normally as R.xml.myfile.
Eclipse allows you to link files in from other locations. I have another XML file that is linked in from another drive. No matter what I do, i can not access this file by R.xml...
Need to xpath xml data based on greater than date attribute. The dashes in the date below prevent the greater than symbol from working. Is there a way to remove the dashes in the xml on the fly?
XML
<revisions>
<revision date="2010-07-12">blah</revision>
<revision date="2010-06-12">blah</revision>
</revisions>
PHP
$rdate = 2010-...
Hi,
I use xmlBeans library for handling xml files.
Suppose I have a xml like below:
<exDoc>
<A name="a1">
<B name="b1">
<c name="c11"/>
<c name="c12"/>
</B>
</A>
<A name="a2">
<B name="b2">
<c name="c21"/>
<c name="c22"/>
</B>
</A>
</exDoc>
I want to get only the entire element A with name a2 instead of loading the entire document in...
Consider simple XML document:
<html><body>
<table>
<tr><td> Item 1</td></tr>
<tr><td> Item 2</td></tr>
</table>
</body></html>
Using XPath "/html/body/table/tr/td/text()" we will get [" Item 1", " Item 2"].
Is it possible to trim white space for example using normalize-space() function to get ["Item 1", "Item 2"]?
"normalize-...
How can I have XSLT wrap input XML within a parent node, only if it doesn't already exist?
For example, if my input is:
<Project>...</Project>
I want to wrap it with a prefix and a suffix:
<?xml version "1.0" encoding="utf-8">
<Site>
<Project>...</Project>
</Site>
If however, <Project> is not the root node of the input, I'd like...
I am loading in an XML document with multiple photos in it, via ajax.
The process my function goes through is this:
Open a UL
Open a LI
Open an img tag
set the src to = the url in the xml document (see below)
close img tag
close LI
open a LI
open an img tag
set the src to = the url in the xml document (see below)
close img tag
close LI
...
I have a cricket based portal check here cricket scores
This site has near to millions pages.
But is it advisable to have a multiple sitemaps in the website or not?
if Yes, what Name shall we give for the second site map? sitemap2.xml does this work?
Some where in the blog i have read that each sitemap should not have more than 1000 l...
My xml:
<Scenes>
<Scene Index="0" Channel="71" Name="Scene1" />
<Scene Index="1" Channel="71" Name="Scene2" />
<Scene Index="2" Channel="71" Name="Scene3" />
</Scenes>
My code:
var elements = new List<List<string>>();
var attributtes = new List<string>();
XPathExpression expr1 = nav.Compile("//Scene/@*");
XPathN...
I'm attempting to convert a soap query written for C# into a gSoap query in Visual C++.
The C# query adds an XML node's to the query call, in order to pass parameters to the query:
XmlNode queryOpts = xmlDoc.CreateNode(XmlNodeType.Element, "QueryOptions", "");
queryOpts.InnerXml = "<DateInUtc>TRUE</DateInUtc>";
Here's the C# query, p...
Hello,
say I have XML:
<root>
<nodeA />
<nodeA />
<nodeA />
<nodeC />
<nodeC />
<nodeC />
</root>
How do I insert "nodeB" between As and Cs? In PHP, preferably via SimpleXML? Like:
<root>
<nodeA />
<nodeA />
<nodeA />
<nodeB />
<nodeC />
<nodeC />
<nodeC />
</root>
...
Hi! I have some xml files, and I keep them in raw folder. Now, the problem is that I have to use them with variable name according to my application condition. But I don't know how to fetch them. The main thing is that I am not getting that how to give the path of my xml file in application.
For example:
My file application.xml is sto...
Hello guys,'
may be i am going to ask some stupid question but i don't have any idea about php
that's why i want to know it i never worked in php and now i have to do it so please provide me some useful tips,
i have XML file that is coming from a different URL and i want to save it on the server then i have to read it and extract it to...
since i'm new to xml, i tried out the code over here, to insert data into xml, which works. But I would like to insert multiple data into xml. how would i achieve that? for example:
<root>
<no>1</no>
<activity>swimming</activity>
<date>29/7/2010</date>
<others>
<data1>data1</data1>
<data2>data2</data2>
<data3>data3</data3>
s...
how do i check using php dom, if an xml file exists, and if not create it.
<?php
header("Location: index.php");
$xmldoc = new DOMDocument();
$xmldoc->load('sample.xml');
$newAct = $_POST['activity'];
$root = $xmldoc->firstChild;
$newElement = $xmldoc->createElement('activity');
$root->appendChild($newElemen...
My program needs to start auditing saved XML data for users. Whenever the user clicks 'Save'; I'll need to insert his current data (serialized to XML) and save it somewhere. What is the better option between:
1) Creating a text file and dropping all the xml in there. (Creating a new text file per save)
2) Using a table in MS Access
...
Hello,
I am trying to canonicalize an xml node by using System.Security.Cryptography.Xml.XMLDsigC14nTransform class of c# .net Framework 2.0.
The instance expects three different input types, NodeList, Stream and XMLDocument. I try the transform with all of these input types but I get different results.
What I really want to do is to ...
i'm inserting the data into an xml file using php domdocument. however when i open the xml file, the data is displayed in a single line:
<?xml version="1.0"?>
<root><activity>swimming</activity><activity>jogging</activity></root>
how do i align it programmatically like this?
<?xml version="1.0"?>
<root>
<activity>swimming</activity...
So I have decided to use XDocument to create a XML file, which was working great until I came across a part where I have to find all the selected items in a ListBox. I am unsure how I should format this.
XDocument xmlDoc = new XDocument(
new XDeclaration("1.0", "utf-8", "yes"),
new XComment("...
If I add two documents to a BaseX DB, let's say normal.xml and normal2.xml, is there a way to refer to each one individually?
I know about the doc() function, but it looks at the filesystem for their location, rather than in the database itself.
For instance, if I query with this: doc("normal.xml")/name, then I will get an error about ...
Hi.
I have some plain text file (.xls extension) with next markup (attached below). It's opening in excel 2003 without any error.
Now I need to know what is the name of technology, when I could create excel file through html markup?
Becouse I need to fix this file to open correctly in Excel 2007 and earlier. (I see "file in the diffe...